# system call counts # (c) 2010, Tom Zanussi # Licensed under the terms of the GNU GPL License version 2 # # Displays system-wide system call totals, broken down by syscall. # If a [comm] arg is specified, only syscalls called by [comm] are displayed. from __future__ import print_function import os import sys sys.path.append(os.environ['PERF_EXEC_PATH'] + \ '/scripts/python/Perf-Trace-Util/lib/Perf/Trace') from perf_trace_context import * from Core import * from Util import syscall_name usage = "perf script -s syscall-counts.py [comm]\n"; for_comm = None if len(sys.argv) > 2: sys.exit(usage) if len(sys.argv) > 1: for_comm = sys.argv[1] syscalls = autodict() def trace_begin(): print("Press control+C to stop and show the summary") def trace_end(): print_syscall_totals() def raw_syscalls__sys_enter(event_name, context, common_cpu, common_secs, common_nsecs, common_pid, common_comm, common_callchain, id, args): if for_comm is not None: if common_comm != for_comm: return try: syscalls[id] += 1 except TypeError: syscalls[id] = 1 def syscalls__sys_enter(event_name, context, common_cpu, common_secs, common_nsecs, common_pid, common_comm, id, args): raw_syscalls__sys_enter(**locals()) def print_syscall_totals(): if for_comm is not None: print("\nsyscall events for %s:\n" % (for_comm)) else: print("\nsyscall events:\n") print("%-40s %10s" % ("event", "count")) print("%-40s %10s" % ("----------------------------------------", "-----------")) for id, val in sorted(syscalls.items(), key = lambda kv: (kv[1], kv[0]), reverse = True): print("%-40s %10d" % (syscall_name(id), val)) x-2.6.24.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/include/scsi
AgeCommit message (Expand)Author
2024-08-16scsi: core: Fix the return value of scsi_logical_block_count()Chaotian Jing
2024-07-25Merge tag 'driver-core-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds
2024-07-15Merge tag 'for-6.11/block-20240710' of git://git.kernel.dk/linuxLinus Torvalds
2024-07-03driver core: have match() callback in struct bus_type take a const *Greg Kroah-Hartman
2024-06-20scsi: sd: Atomic write supportJohn Garry
2024-06-13scsi: core: Introduce the BLIST_SKIP_IO_HINTS flagBart Van Assche
2024-06-11scsi: mpi3mr: Fix ATA NCQ priority supportDamien Le Moal
2024-05-14Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds
2024-04-24scsi: libfc: Add some kernel-doc commentsRandy Dunlap
2024-04-24scsi: core: Don't use "proxy" headersAndy Shevchenko
2024-04-12Merge patch series "convert SCSI to atomic queue limits, part 1 (v3)"Martin K. Petersen
2024-04-11scsi: libata: Switch to using ->device_configureChristoph Hellwig
2024-04-11scsi: core: Add a device_configure method to the host templateChristoph Hellwig
2024-04-11scsi: core: Add a dma_alignment field to the host and host templateChristoph Hellwig
2024-04-11scsi: core: Add a no_highmem flag to struct Scsi_HostChristoph Hellwig
2024-04-11scsi: scsi_transport_fc: Add a max_bsg_segments field to struct fc_function_t...Christoph Hellwig
2024-04-11scsi: core: Initialize scsi midlayer limits before allocating the queueChristoph Hellwig
2024-04-08Merge patch series "scsi: documentation: clean up docs and fix kernel-doc"Martin K. Petersen
2024-04-08scsi: scsi_transport_srp: Fix a couple of kernel-doc warningsRandy Dunlap
2024-04-08scsi: scsi_transport_fc: Add kernel-doc for function returnRandy Dunlap
2024-04-08scsi: core: Add function return kernel-doc for 2 functionsRandy Dunlap
2024-04-08scsi: libfcoe: Fix a slew of kernel-doc warningsRandy Dunlap
2024-04-08scsi: iser: Fix @read_stag kernel-doc warningRandy Dunlap
2024-04-08scsi: core: Add kernel-doc for scsi_msg_to_host_byte()Randy Dunlap
2024-04-05scsi: core: Store owner from modules with scsi_register_driver()Krzysztof Kozlowski
2024-03-25Merge patch series "Add LIBSAS_SHT_BASE for libsas"Martin K. Petersen
2024-03-25scsi: libsas: Add LIBSAS_SHT_BASEJohn Garry
2024-03-25scsi: libsas: Define NCQ Priority sysfs attributes for SATA devicesIgor Pylypiv
2024-03-25scsi: sd: Fix TCG OPAL unlock on system resumeDamien Le Moal
2024-03-22Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds
2024-03-16Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds
2024-02-26scsi: scsi_proto: Add structures and constants related to I/O groups and streamsBart Van Assche
2024-02-26scsi: core: Query the Block Limits Extension VPD pageBart Van Assche
2024-02-15scsi: core: Consult supported VPD page list prior to fetching pageMartin K. Petersen
2024-02-14scsi: sd: usb_storage: uas: Access media prior to querying device propertiesMartin K. Petersen
2024-01-29Merge patch series "scsi: Allow scsi_execute users to request retries"Martin K. Petersen
2024-01-29scsi: core: Allow passthrough to request midlayer retriesMike Christie
2024-01-23scsi: core: Move autosuspend timer delay to Scsi_HostPeter Wang