# 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. from __future__ import print_function 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" % (for_comm)) else: print("\nsyscall events by comm/pid:\n") print("%-40s %10s" % ("comm [pid]/syscalls", "count")) print("%-40s %10s" % ("----------------------------------------", "----------")) comm_keys = syscalls.keys() for comm in comm_keys: pid_keys = syscalls[comm].keys() for pid in pid_keys: print("\n%s [%d]" % (comm, pid)) id_keys = syscalls[comm][pid].keys() for id, val in sorted(syscalls[comm][pid].items(), key = lambda kv: (kv[1], kv[0]), reverse = True): print(" %-38s %10d" % (syscall_name(id), val)) n> Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/mm/slab.h
AgeCommit message (Expand)Author
2020-04-02mm: kmem: rename (__)memcg_kmem_(un)charge_memcg() to __memcg_kmem_(un)charge()Roman Gushchin
2020-04-02mm: memcg/slab: cache page number in memcg_(un)charge_slab()Roman Gushchin
2020-04-02mm: kmem: switch to nr_pages in (__)memcg_kmem_charge_memcg()Roman Gushchin
2020-04-02mm: kmem: cleanup memcg_kmem_uncharge_memcg() argumentsRoman Gushchin
2020-04-02mm: kmem: cleanup (__)memcg_kmem_charge_memcg() argumentsRoman Gushchin
2019-12-01mm: clean up and clarify lruvec lookup procedureJohannes Weiner
2019-12-01mm, slab: make kmalloc_info[] contain all types of namesPengfei Li
2019-11-06mm: slab: make page_cgroup_ino() to recognize non-compound slab pages properlyRoman Gushchin
2019-09-24mm, slab: move memcg_cache_params structure to mm/slab.hWaiman Long
2019-09-24mm, slab: extend slab/shrink to shrink all memcg cachesWaiman Long
2019-07-12mm: security: introduce init_on_alloc=1 and init_on_free=1 boot optionsAlexander Potapenko
2019-07-12mm: memcg/slab: reparent memcg kmem_caches on cgroup removalRoman Gushchin
2019-07-12mm: memcg/slab: stop setting page->mem_cgroup pointer for slab pagesRoman Gushchin
2019-07-12mm: memcg/slab: rework non-root kmem_cache lifecycle managementRoman Gushchin
2019-07-12mm: memcg/slab: unify SLAB and SLUB page accountingRoman Gushchin
2019-07-12mm: memcg/slab: generalize postponed non-root kmem_cache deactivationRoman Gushchin
2019-07-12mm: memcg/slab: rename slab delayed deactivation functions and fieldsRoman Gushchin
2019-07-12mm: memcg/slab: postpone kmem_cache memcg pointer initialization to memcg_lin...Roman Gushchin
2019-07-12mm/slab: sanity-check page type when looking up cacheKees Cook
2019-07-12mm/slab: validate cache membership under freelist hardeningKees Cook
2019-03-29mm: add support for kmem caches in DMA32 zoneNicolas Boichat
2019-03-05memcg: localize memcg_kmem_enabled() checkShakeel Butt
2019-02-21kmemleak: account for tagged pointers when calculating pointer rangeAndrey Konovalov
2019-02-21kasan, kmemleak: pass tagged pointers to kmemleakAndrey Konovalov
2018-12-28kasan, mm: change hooks signaturesAndrey Konovalov
2018-08-17mm: introduce CONFIG_MEMCG_KMEM as combination of CONFIG_MEMCG && !CONFIG_SLOBKirill Tkhai
2018-04-05slab, slub: skip unnecessary kasan_cache_shutdown()Shakeel Butt
2018-04-05slab: make usercopy region 32-bitAlexey Dobriyan
2018-04-05slab: make kmem_cache_flags accept 32-bit object sizeAlexey Dobriyan
2018-04-05slab: make kmem_cache_create() work with 32-bit sizesAlexey Dobriyan
2018-04-05slab: make create_boot_cache() work with 32-bit sizesAlexey Dobriyan
2018-04-05slab: make create_kmalloc_cache() work with 32-bit sizesAlexey Dobriyan