# system call counts, by pid # (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, 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-by-pid.py [comm]\n"; for_comm = None for_pid = None if len(sys.argv) > 2: sys.exit(usage) if len(sys.argv) > 1: try: for_pid = int(sys.argv[1]) except: 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 and common_comm != for_comm) or \ (for_pid and common_pid != for_pid ): return try: syscalls[common_comm][common_pid][id] += 1 except TypeError: syscalls[common_comm][common_pid][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 by comm/pid:\n\n", print "%-40s %10s\n" % ("comm [pid]/syscalls", "count"), print "%-40s %10s\n" % ("----------------------------------------", \ "----------"), comm_keys = syscalls.keys() for comm in comm_keys: pid_keys = syscalls[comm].keys() for pid in pid_keys: print "\n%s [%d]\n" % (comm, pid), id_keys = syscalls[comm][pid].keys() for id, val in sorted(syscalls[comm][pid].iteritems(), \ key = lambda(k, v): (v, k), reverse = True): print " %-38s %10d\n" % (syscall_name(id), val), .29.y'>linux-2.6.29.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/sound/soc/txx9
AgeCommit message (Expand)Author
2012-01-17Merge branch 'next' of git://git.infradead.org/users/vkoul/slave-dmaLinus Torvalds
2011-12-23ASoC: txx9: Add .owner to struct snd_soc_cardAxel Lin
2011-11-25ASoC: Convert txx9 directory to module_platform_driverAxel Lin
2011-11-17Merge branch 'dma_slave_direction' into next_test_dirnVinod Koul
2011-10-31sound-soc: move to dma_transfer_directionVinod Koul
2011-10-27Merge branch 'topic/asoc' into for-linusTakashi Iwai
2011-10-03ASoC: txx9: Add __exit_p at necessary placeAxel Lin
2011-09-22sound: irq: Remove IRQF_DISABLEDYong Zhang
2011-07-29ASoC: Fix txx9aclc.c buildRalf Baechle
2011-06-07ASoC: core - Optimise and refactor pcm_new() to pass only rtdLiam Girdwood
2010-08-12ASoC: multi-component - ASoC Multi-Component SupportLiam Girdwood
2010-05-21Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/asy...Linus Torvalds
2010-05-17Merge branch 'ioat' into dmaengineDan Williams
2010-05-17DMAENGINE: extend the control command to include an argLinus Walleij
2010-04-30MIPS: TXx9: Add missing MODULE_ALIAS definitions for TXx9 platform devicesGeert Uytterhoeven
2010-03-30include cleanup: Update gfp.h and slab.h includes to prepare for breaking imp...Tejun Heo
2010-03-26DMAENGINE: generic slave control v2Linus Walleij
2009-06-25ASoC: txx9aclc: dynamically allocate dmaengine devnameAtsushi Nemoto
2009-06-17ASoC: Kill BUS_ID_SIZETakashi Iwai
2009-05-19ASoC: Add TXx9 AC link controller driver (v3)Atsushi Nemoto