# 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), option> Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/net/can/raw.c
AgeCommit message (Expand)Author
2021-03-29can: bcm/raw: fix msg_namelen values depending on CAN_REQUIRED_SIZEOliver Hartkopp
2021-01-06can: raw: return -ERANGE when filterset does not fit into user space bufferOliver Hartkopp
2020-10-12can: remove obsolete version stringsOliver Hartkopp
2020-10-06can: raw: add missing error queue supportVincent Mailhol
2020-09-21can: remove "WITH Linux-syscall-note" from SPDX tag of C filesMasahiro Yamada
2020-09-21can: raw: fix indentionMarc Kleine-Budde
2020-07-24net: pass a sockptr_t into ->setsockoptChristoph Hellwig
2019-09-04can: introduce CAN_REQUIRED_SIZE macroKurt Van Dijck
2019-08-13can: raw: raw_sock_no_ioctlcmd(): mark function as staticMarc Kleine-Budde
2019-08-13can: raw: raw_module_init(): use pr_err() instead of printk(KERN_ERR, ...)Marc Kleine-Budde
2019-08-13can: raw: balance braces around else statementsMarc Kleine-Budde
2019-08-13can: raw: remove unnecessary blank lines, add suggested blank linesMarc Kleine-Budde
2019-08-13can: raw: convert block comments to network style commentsMarc Kleine-Budde
2019-07-29can: fix ioctl function removalOliver Hartkopp
2019-07-24can: Add SPDX license identifiers for CAN subsystemOliver Hartkopp
2019-07-24can: remove obsolete empty ioctl() handlerOliver Hartkopp
2019-04-19net: rework SIOCGSTAMP ioctl handlingArnd Bergmann
2018-12-17net: add missing SOF_TIMESTAMPING_OPT_ID supportWillem de Bruijn
2018-11-09can: raw: check for CAN FD capable netdev in raw_sendmsg()Oliver Hartkopp
2018-06-28Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLLLinus Torvalds
2018-05-26net: convert datagram_poll users tp ->poll_maskChristoph Hellwig
2018-02-12net: make getname() functions return length rather than use int* parameterDenys Vlasenko
2018-01-05can: raw: raw_bind(): bail out if can_family is not AF_CANMarc Kleine-Budde
2017-04-04can: initial support for network namespacesMario Kicherer
2017-01-29can: Fix kernel panic at security_sock_rcv_skbEric Dumazet
2016-12-07can: raw: raw_setsockopt: limit number of can_filter that can be setMarc Kleine-Budde
2016-04-04sock: enable timestamping using control messagesSoheil Hassas Yeganeh
2015-07-12can: replace timestamp as unique skb attributeOliver Hartkopp
2015-04-01can: introduce new raw socket option to join the given CAN filtersOliver Hartkopp
2015-04-01can: fix multiple delivery of a single CAN frame for overlapping CAN filtersOliver Hartkopp
2015-03-02net: Remove iocb argument from sendmsg and recvmsgYing Xue
2015-03-02net: use common macro for assering skb->cb[] available size in protocol familiesEyal Birger
2014-12-07can: eliminate banner[] variable and switch to pr_info()Jeremiah Mahler
2014-11-24new helper: memcpy_to_msg()Al Viro
2014-11-24new helper: memcpy_from_msg()Al Viro
2014-03-03can: remove CAN FD compatibility for CAN 2.0 socketsOliver Hartkopp
2014-01-29can: Propagate SO_PRIORITY of raw sockets to skbsRostislav Lisovy
2014-01-18net: add build-time checks for msg->msg_name sizeSteffen Hurrle
2013-05-28net: pass info struct via netdevice notifierJiri Pirko
2013-04-14net: sock: make sock_tx_timestamp voidDaniel Borkmann
2013-01-28can: rework skb reserved data handlingOliver Hartkopp
2013-01-26can: add private data space for CAN sk_buffsOliver Hartkopp
2012-10-06sections: fix section conflicts in net/canAndi Kleen
2012-06-19canfd: add support for CAN FD in CAN_RAW socketsOliver Hartkopp
2012-06-15net: remove skb_orphan_try()Eric Dumazet