# system call counts # (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 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 syscall_name usage = "perf script -s syscall-counts.py [comm]\n"; for_comm = None if len(sys.argv) > 2: sys.exit(usage) if len(sys.argv) > 1: 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 is not None: if common_comm != for_comm: return try: syscalls[id] += 1 except TypeError: syscalls[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:\n\n", print "%-40s %10s\n" % ("event", "count"), print "%-40s %10s\n" % ("----------------------------------------", \ "-----------"), for id, val in sorted(syscalls.iteritems(), key = lambda(k, v): (v, k), \ reverse = True): print "%-40s %10d\n" % (syscall_name(id), val), 21.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/include/net/sctp
AgeCommit message (Expand)Author
2023-08-10sctp: Remove unused declaration sctp_backlog_migrate()Yue Haibing
2023-08-02sctp: Remove unused function declarationsYue Haibing
2023-04-21sctp: delete the nested flexible array peer_initXin Long
2023-04-21sctp: delete the nested flexible array skipXin Long
2023-04-21sctp: delete the nested flexible array paramsXin Long
2023-04-17sctp: delete the obsolete code for the host name address paramXin Long
2023-03-09sctp: add weighted fair queueing stream schedulerXin Long
2023-03-09sctp: add fair capacity stream schedulerXin Long
2023-02-23sctp: add a refcnt in sctp_stream_priorities to avoid a nested loopXin Long
2022-12-01sctp: delete free member from struct sctp_sched_opsXin Long
2022-11-29Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski
2022-11-29sctp: fix memory leak in sctp_stream_outq_migrate()Zhengchao Shao
2022-11-18sctp: add dif and sdif check in asoc and ep lookupXin Long
2022-11-18sctp: add skb_sdif in struct sctp_afXin Long
2022-11-17sctp: move SCTP_PAD4 and SCTP_TRUNC4 to linux/sctp.hXin Long
2022-11-17sctp: change to include linux/sctp.h in net/sctp/checksum.hXin Long
2022-10-20sctp: remove unnecessary NULL check in sctp_association_init()Alexey Kodanev
2022-04-12net: remove noblock parameter from recvmsg() entitiesOliver Hartkopp
2022-01-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski
2022-01-02sctp: hold endpoint before calling cb in sctp_transport_lookup_processXin Long
2021-12-30Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski
2021-12-25sctp: use call_rcu to free endpointXin Long
2021-12-23sctp: move hlist_node and hashent out of sctp_ep_commonXin Long
2021-11-25sctp: make the raise timer more simple and accurateXin Long
2021-11-03security: pass asoc to sctp_assoc_request and sctp_sk_cloneXin Long
2021-10-29sctp: subtract sctphdr len in sctp_transport_pl_hlenXin Long
2021-10-29sctp: reset probe_timer in sctp_transport_pl_updateXin Long
2021-10-15sctp: fix transport encap_port update in sctp_vtag_verifyXin Long
2021-07-25sctp: send pmtu probe only if packet loss in Search Complete stateXin Long
2021-07-25sctp: improve the code for pmtu probe send and recv updateXin Long