Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bf8d5a4 authored by SeongJae Park's avatar SeongJae Park Committed by Arnaldo Carvalho de Melo
Browse files

perf script python: Updated trace_unhandled() signature



Default function signature of trace_unhandled() got changed to include a
field dict, but its documentation, perf-script-python.txt has not been
updated.  Fix it.

Signed-off-by: default avatarSeongJae Park <sj38.park@gmail.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Pierre Tardy <tardyp@gmail.com>
Fixes: c0251485 ("perf scripts python: Give field dict to unhandled callback")
Link: http://lkml.kernel.org/r/20170530111827.21732-6-sj38.park@gmail.com


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 26ddb872
Loading
Loading
Loading
Loading
+3 −6
Original line number Original line Diff line number Diff line
@@ -149,10 +149,8 @@ def raw_syscalls__sys_enter(event_name, context, common_cpu,
		print "id=%d, args=%s\n" % \
		print "id=%d, args=%s\n" % \
		(id, args),
		(id, args),


def trace_unhandled(event_name, context, common_cpu, common_secs, common_nsecs,
def trace_unhandled(event_name, context, event_fields_dict):
		common_pid, common_comm):
		print ' '.join(['%s=%s'%(k,str(v))for k,v in sorted(event_fields_dict.items())])
		print_header(event_name, common_cpu, common_secs, common_nsecs,
		common_pid, common_comm)


def print_header(event_name, cpu, secs, nsecs, pid, comm):
def print_header(event_name, cpu, secs, nsecs, pid, comm):
	print "%-20s %5u %05u.%09u %8u %-20s " % \
	print "%-20s %5u %05u.%09u %8u %-20s " % \
@@ -550,8 +548,7 @@ def trace_end():
 of common arguments are passed into it:
 of common arguments are passed into it:


----
----
def trace_unhandled(event_name, context, common_cpu, common_secs,
def trace_unhandled(event_name, context, event_fields_dict):
        common_nsecs, common_pid, common_comm):
    pass
    pass
----
----