# 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), e='linux-2.6.29.y'>linux-2.6.29.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/mm/page_vma_mapped.c
AgeCommit message (Expand)Author
2023-06-19mm: ptep_get() conversionRyan Roberts
2023-06-19mm/page_vma_mapped: pte_offset_map_nolock() not pte_lockptr()Hugh Dickins
2023-06-19mm/page_vma_mapped: reformat map_pte() with less indentationHugh Dickins
2023-06-19mm/page_vma_mapped: delete bogosity in page_vma_mapped_walk()Hugh Dickins
2023-06-19mm: use pmdp_get_lockless() without surplus barrier()Hugh Dickins
2023-01-18mm/hugetlb: introduce hugetlb_walk()Peter Xu
2022-09-26mm/swap: add swp_offset_pfn() to fetch PFN from swap entryPeter Xu
2022-07-17mm/page_vma_mapped.c: use helper function huge_pte_lockMiaohe Lin
2022-07-03mm/page_vma_mapped.c: check possible huge PMD map with transhuge_vma_suitable()Yang Shi
2022-04-28mm: pvmw: add support for walking devmap pagesMuchun Song
2022-04-07mm/rmap: Fix handling of hugetlbfs pages in page_vma_mapped_walkzhenwei pi
2022-03-21mm: Convert page_vma_mapped_walk to work on PFNsMatthew Wilcox (Oracle)
2021-07-01mm: device exclusive memory accessAlistair Popple
2021-07-01mm: remove special swap entry functionsAlistair Popple
2021-06-24mm/thp: another PVMW_SYNC fix in page_vma_mapped_walk()Hugh Dickins
2021-06-24mm/thp: fix page_vma_mapped_walk() if THP mapped by ptesHugh Dickins
2021-06-24mm: page_vma_mapped_walk(): get vma_address_end() earlierHugh Dickins
2021-06-24mm: page_vma_mapped_walk(): use goto instead of while (1)Hugh Dickins
2021-06-24mm: page_vma_mapped_walk(): add a level of indentationHugh Dickins
2021-06-24mm: page_vma_mapped_walk(): crossing page table boundaryHugh Dickins
2021-06-24mm: page_vma_mapped_walk(): prettify PVMW_MIGRATION blockHugh Dickins
2021-06-24mm: page_vma_mapped_walk(): use pmde for *pvmw->pmdHugh Dickins
2021-06-24mm: page_vma_mapped_walk(): settle PageHuge on entryHugh Dickins
2021-06-24mm: page_vma_mapped_walk(): use page for pvmw->pageHugh Dickins
2021-06-16mm/thp: fix vma_address() if virtual address below file offsetHugh Dickins
2021-06-16mm/thp: try_to_unmap() use TTU_SYNC for safe splittingHugh Dickins
2021-05-07mm: fix typos in commentsLu Jialin
2020-12-15mm/page_vma_mapped.c: add colon to fix kernel-doc markups error for check_pteAlex Shi
2020-08-14mm: replace hpage_nr_pages with thp_nr_pagesMatthew Wilcox (Oracle)
2020-08-14mm: add thp_sizeMatthew Wilcox (Oracle)
2020-01-31mm/page_vma_mapped.c: explicitly compare pfn for normal, hugetlbfs and THP pageLi Xinhai
2019-09-24mm: introduce page_size()Matthew Wilcox (Oracle)
2018-10-31mm/rmap: map_pte() was not handling private ZONE_DEVICE page properlyRalph Campbell