# 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. 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, id, args): if for_comm is not None: if common_comm != for_comm: return try: syscalls[id] += 1 except TypeError: syscalls[id] = 1 def print_syscall_totals(): if for_comm is not None: print "\nsyscall events for %s:\n\n" % (for_comm), else: print "\nsyscall events:\n\n", print "%-40s %10s\n" % ("event", "count"), print "%-40s %10s\n" % ("----------------------------------------", \ "-----------"), for id, val in sorted(syscalls.iteritems(), key = lambda(k, v): (v, k), \ reverse = True): print "%-40s %10d\n" % (syscall_name(id), val), value='linux-2.6.22.y'>linux-2.6.22.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/drivers/hsi
AgeCommit message (Expand)Author
2023-07-31hsi: omap_ssi: Explicitly include correct DT includesRob Herring
2023-05-27HSI: omap_ssi_port: Drop error checking for debugfs_create_dirOsama Muhammad
2023-05-20HSI: fix ssi_waketest() declarationArnd Bergmann
2023-04-05of: Rename of_modalias_node()Miquel Raynal
2023-02-24Merge tag 'driver-core-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds
2023-02-09mm: replace vma->vm_flags direct modifications with modifier callsSuren Baghdasaryan
2023-01-27driver core: make struct bus_type.uevent() take a const *Greg Kroah-Hartman
2022-11-25HSI: omap_ssi_core: Fix error handling in ssi_init()Yuan Can
2022-11-17HSI: omap_ssi_core: fix possible memory leak in ssi_probe()Yang Yingliang
2022-11-14HSI: omap_ssi_core: fix unbalanced pm_runtime_disable()Yang Yingliang
2022-11-14HSI: ssi_protocol: Fix return type of ssip_pn_xmit()Nathan Chancellor
2022-09-20HSI: nokia-modem: Replace of_gpio_count() by gpiod_count()Andy Shevchenko
2022-09-20HSI: ssi_protocol: fix potential resource leak in ssip_pn_open()Jianglei Nie
2022-08-29HSI: omap_ssi_port: Fix dma_map_sg error checkJack Wang
2022-08-29HSI: cmt_speech: Pass a pointer to virt_to_page()Linus Walleij
2022-08-29HSI: omap_ssi: Fix refcount leak in ssi_probeMiaoqian Lin
2022-08-29HSI: clients: remove duplicate assignmentWang Qing
2021-11-26HSI: core: Fix return freed object in hsi_new_clientChengfeng Ye
2021-11-04Merge tag 'hsi-for-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/sre...Linus Torvalds
2021-10-13net: remove single-byte netdev->dev_addr writesJakub Kicinski
2021-10-02HSI: cmt_speech: unmark comments as kernel-docRandy Dunlap