From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751577AbdE3LTI (ORCPT ); Tue, 30 May 2017 07:19:08 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33698 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751508AbdE3LSw (ORCPT ); Tue, 30 May 2017 07:18:52 -0400 From: SeongJae Park To: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com Cc: linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH 5/5] perf-script-python.txt: Apply updated trace_unhandled() definition Date: Tue, 30 May 2017 20:18:27 +0900 Message-Id: <20170530111827.21732-6-sj38.park@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170530111827.21732-1-sj38.park@gmail.com> References: <20170530111827.21732-1-sj38.park@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Default definition of trace_unhandled() has updated while perf-script-python.txt has not updated. This commit updates the document for that. Signed-off-by: SeongJae Park Fixes: c02514850d67b ("perf scripts python: Give field dict to unhandled callback") --- tools/perf/Documentation/perf-script-python.txt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tools/perf/Documentation/perf-script-python.txt b/tools/perf/Documentation/perf-script-python.txt index f723ce41268c..51ec2d20068a 100644 --- a/tools/perf/Documentation/perf-script-python.txt +++ b/tools/perf/Documentation/perf-script-python.txt @@ -149,10 +149,8 @@ def raw_syscalls__sys_enter(event_name, context, common_cpu, print "id=%d, args=%s\n" % \ (id, args), -def trace_unhandled(event_name, context, common_cpu, common_secs, common_nsecs, - common_pid, common_comm): - print_header(event_name, common_cpu, common_secs, common_nsecs, - common_pid, common_comm) +def trace_unhandled(event_name, context, event_fields_dict): + print ' '.join(['%s=%s'%(k,str(v))for k,v in sorted(event_fields_dict.items())]) def print_header(event_name, cpu, secs, nsecs, pid, comm): print "%-20s %5u %05u.%09u %8u %-20s " % \ @@ -548,8 +546,7 @@ def trace_end(): of common arguments are passed into it: ---- -def trace_unhandled(event_name, context, common_cpu, common_secs, - common_nsecs, common_pid, common_comm): +def trace_unhandled(event_name, context, event_fields_dict): pass ---- -- 2.13.0