# 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, common_callchain, 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 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\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), option> Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/fs/autofs
AgeCommit message (Expand)Author
2026-02-21Convert 'alloc_obj' family to use the new default GFP_KERNEL argumentLinus Torvalds
2026-02-21treewide: Replace kmalloc with kmalloc_obj for non-scalar typesKees Cook
2025-12-05Merge tag 'vfs-6.19-rc1.fixes' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds
2025-12-05Merge tag 'pull-persistency' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds
2025-12-04autofs: fix per-dentry timeout warningIan Kent
2025-12-01Merge tag 'vfs-6.19-rc1.fd_prepare.fs' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds
2025-11-28autofs: convert autofs_dev_ioctl_open_mountpoint() to FD_ADD()Christian Brauner
2025-11-19autofs: dont trigger mount if it cant succeedIan Kent
2025-11-16convert autofsAl Viro
2025-11-16autofs_{rmdir,unlink}: dentry->d_fsdata->dentry == dentry thereAl Viro
2025-06-10new helper: set_default_d_op()Al Viro
2025-04-08VFS: rename lookup_one_len family to lookup_noperm and remove permission checkNeilBrown
2025-03-24Merge tag 'vfs-6.15-rc1.async.dir' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds
2025-03-24Merge tag 'vfs-6.15-rc1.mount' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds
2025-03-18VFS/autofs: try_lookup_one_len() does not need any locksNeilBrown
2025-02-27Change inode_operations.mkdir to return struct dentry *NeilBrown
2025-02-12fs: support O_PATH fds with FSCONFIG_SET_FDChristian Brauner
2024-10-28autofs: fix thinko in validate_dev_ioctl()Ian Kent
2024-08-30autofs: add per dentry expire timeoutIan Kent
2024-08-19autofs: fix missing fput for FSCONFIG_SET_FDAleksa Sarai
2024-07-15Merge tag 'vfs-6.11.mount.api' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds
2024-07-02autofs: Convert to new uid/gid option parsing helpersEric Sandeen
2024-05-28fs: autofs: add MODULE_DESCRIPTION()Jeff Johnson
2024-01-11Merge tag 'pull-dcache' of git://git.kernel.org/pub/scm/linux/kernel/git/viro...Linus Torvalds
2023-11-25dentry: switch the lists of children to hlistAl Viro
2023-11-20autofs: add: new_inode check in autofs_fill_super()Ian Kent
2023-10-30Merge tag 'vfs-6.7.ctime' of gitolite.kernel.org:pub/scm/linux/kernel/git/vfs...Linus Torvalds
2023-10-24autofs: fix add autofs_parse_fd()Ian Kent
2023-10-18autofs: convert to new timestamp accessorsJeff Layton