# failed system call counts, by pid # (c) 2010, Tom Zanussi # Licensed under the terms of the GNU GPL License version 2 # # Displays system-wide failed system call totals, broken down by pid. # 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 * usage = "perf script -s syscall-counts-by-pid.py [comm|pid]\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_error_totals() def raw_syscalls__sys_exit(event_name, context, common_cpu, common_secs, common_nsecs, common_pid, common_comm, common_callchain, id, ret): if (for_comm and common_comm != for_comm) or \ (for_pid and common_pid != for_pid ): return if ret < 0: try: syscalls[common_comm][common_pid][id][ret] += 1 except TypeError: syscalls[common_comm][common_pid][id][ret] = 1 def syscalls__sys_exit(event_name, context, common_cpu, common_secs, common_nsecs, common_pid, common_comm, id, ret): raw_syscalls__sys_exit(**locals()) def print_error_totals(): if for_comm is not None: print "\nsyscall errors for %s:\n\n" % (for_comm), else: print "\nsyscall errors:\n\n", print "%-30s %10s\n" % ("comm [pid]", "count"), print "%-30s %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 in id_keys: print " syscall: %-16s\n" % syscall_name(id), ret_keys = syscalls[comm][pid][id].keys() for ret, val in sorted(syscalls[comm][pid][id].iteritems(), key = lambda(k, v): (v, k), reverse = True): print " err = %-20s %10d\n" % (strerror(ret), val), value='linux-2.6.35.y'>linux-2.6.35.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/mm/vmstat.c
AgeCommit message (Expand)Author
2025-06-05mm: fix vmstat after removing NR_BOUNCEKirill A. Shutemov
2025-05-31sched/numa: add statistics of numa balance taskChen Yu
2025-05-12Update Christoph's Email address and make it consistentChristoph Lameter (Ampere)
2025-04-01Merge tag 'mm-stable-2025-03-30-16-52' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds
2025-03-26Merge tag 'sysctl-6.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds
2025-03-21mm: vmscan: split proactive reclaim statistics from direct reclaim statisticsHao Jia
2025-03-21meminfo: add a per node counter for balloon driversNico Pache
2025-03-17mm: page_alloc: defrag_mode kswapd/kcompactd watermarksJohannes Weiner
2025-02-07mm: vmstat: move sysctls to mm/vmstat.cKaixiong Yu
2025-02-03x86/mm/pat: restore large ROX pages after fragmentationKirill A. Shutemov
2025-01-12vmstat: disable vmstat_work on vmstat_cpu_down_prep()Koichiro Den
2025-01-06Revert "vmstat: disable vmstat_work on vmstat_cpu_down_prep()"Linus Torvalds
2024-12-30vmstat: disable vmstat_work on vmstat_cpu_down_prep()Koichiro Den
2024-11-14memcg/hugetlb: add hugeTLB counters to memcgJoshua Hahn
2024-11-14vmstat: call fold_vm_zone_numa_events() before show per zone NUMA eventMengEn Sun
2024-11-11Merge branch 'mm-hotfixes-stable' into mm-stableAndrew Morton
2024-11-11mm: count zeromap read and set for swapout and swapinBarry Song
2024-11-06mm/vmstat: defer the refresh_zone_stat_thresholds after all CPUs bringupSaurabh Sengar
2024-11-06mm: add pcp high_min high_max to proc zoneinfoMengEn Sun
2024-09-09mm: split underused THPsUsama Arif
2024-09-01mm: print the promo watermark in zoneinfoKaiyang Zhao
2024-09-01vmstat: kernel stack usage histogramPasha Tatashin
2024-09-01mm: add node_reclaim successes to VM event countersMatthew Cassell
2024-08-15mm: don't account memmap per-nodePasha Tatashin
2024-08-15mm: add system wide stats items categoryPasha Tatashin
2024-07-24sysctl: treewide: constify the ctl_table argument of proc_handlersJoel Granados
2024-07-03mm: report per-page metadata informationSourav Panda
2024-04-15iommu: observability of the IOMMU allocationsPasha Tatashin
2024-01-08mm, treewide: rename MAX_ORDER to MAX_PAGE_ORDERKirill A. Shutemov
2024-01-08mm, treewide: introduce NR_PAGE_ORDERSKirill A. Shutemov
2024-01-05mm/vmstat: move pgdemote_* out of CONFIG_NUMA_BALANCINGLi Zhijian
2023-12-12mm: memcg: add per-memcg zswap writeback statDomenico Cerasuolo
2023-12-10mm/vmstat: move pgdemote_* to per-node statsLi Zhijian
2023-10-25mm: tune PCP high automaticallyHuang Ying
2023-10-25mm: fix draining remote pagesetHuang Ying
2023-10-04mm/vmstat: use this_cpu_try_cmpxchg in mod_{zone,node}_stateUros Bizjak
2023-08-21mm/vmstat: remove unused page_ext.h from vmstatKemeng Shi
2023-06-28Merge tag 'mm-stable-2023-06-24-19-15' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds
2023-06-19vmstat: skip periodic vmstat update for isolated CPUsMarcelo Tosatti
2023-06-06mm: Add support for unaccepted memoryKirill A. Shutemov