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]
Date:	Fri, 15 Apr 2016 13:09:54 +0200
From:	Paolo Bonzini <pbonzini@...hat.com>
To:	Jiri Olsa <jolsa@...hat.com>
Cc:	linux-kernel@...r.kernel.org, Jiri Olsa <jolsa@...nel.org>,
	Arnaldo Carvalho de Melo <acme@...hat.com>,
	Brendan Gregg <bgregg@...flix.com>
Subject: Re: ping Re: [PATCH] perf script: Add stackcollapse.py script



On 15/04/2016 12:57, Jiri Olsa wrote:
>>> > > +# Input may be created and processed using:
>>> > > +#
>>> > > +#  perf record -a -g -F 99 sleep 60
>>> > > +#  perf script report stackcollapse > out.stacks-folded
>>> > > +#
>>> > > +# (perf script record stackcollapse works too).
> IIRC Namhyung added -g folded option recently for report
> so you could do:
> 
> perf report -g folded --stdio
> 
> however we dont seem to have it for perf script, so this might
> be useful until we add the --call-graph support into perf script

Thanks for the pointer.  I think the output of "perf script -g folded" 
would still be a bit different from what the flamegraph tool expects.  
Something like

perf 13675 51165.817380:       1921 cycles:pp: native_write_cr2; do_nmi; end_repeat_nmi; ...

rather than this

perf;native_write_cr2;do_nmi;end_repeat_nmi;... 1921

which this script produces.  The format that flamegraph expects is very
simple so that they can have converters for perf, stap, dtrace and others.

I'd be just as happy if perf looked for scripts into $HOME/.local. :)  But
since it doesn't, this script can also be useful to demonstrate script access
to callchains.

Thanks,

Paolo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ