lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170607232758.GE6949@kernel.org>
Date:   Wed, 7 Jun 2017 20:27:58 -0300
From:   Arnaldo Carvalho de Melo <acme@...nel.org>
To:     SeongJae Park <sj38.park@...il.com>
Cc:     peterz@...radead.org, mingo@...hat.com,
        alexander.shishkin@...ux.intel.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 5/5] perf-script-python.txt: Apply updated
 trace_unhandled() definition

Em Tue, May 30, 2017 at 08:18:27PM +0900, SeongJae Park escreveu:
> Default definition of trace_unhandled() has updated while
> perf-script-python.txt has not updated.  This commit updates the
> document for that.

Thanks, applied to perf/urgent.

- Arnaldo
 
> Signed-off-by: SeongJae Park <sj38.park@...il.com>
> 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ