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] [day] [month] [year] [list]
Message-ID: <YKzy7hjv5QbL/2lH@kernel.org>
Date:   Tue, 25 May 2021 09:51:58 -0300
From:   Arnaldo Carvalho de Melo <acme@...nel.org>
To:     Jiri Olsa <jolsa@...hat.com>
Cc:     Adrian Hunter <adrian.hunter@...el.com>,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH V3] perf script: Find script file relative to exec path

Em Mon, May 24, 2021 at 11:40:32AM +0200, Jiri Olsa escreveu:
> On Mon, May 24, 2021 at 09:57:18AM +0300, Adrian Hunter wrote:
> > Allow perf script to find a script in the exec path.
> > 
> > Example:
> > 
> > Before:
> > 
> >  $ perf record -a -e intel_pt/branch=0/ sleep 0.1
> >  [ perf record: Woken up 1 times to write data ]
> >  [ perf record: Captured and wrote 0.954 MB perf.data ]
> >  $ perf script intel-pt-events.py 2>&1 | head -3
> >    Error: Couldn't find script `intel-pt-events.py'
> >    See perf script -l for available scripts.
> >  $ perf script -s intel-pt-events.py 2>&1 | head -3
> >  Can't open python script "intel-pt-events.py": No such file or directory
> >  $ perf script ~/libexec/perf-core/scripts/python/intel-pt-events.py 2>&1 | head -3
> >    Error: Couldn't find script `/home/ahunter/libexec/perf-core/scripts/python/intel-pt-events.py'
> >    See perf script -l for available scripts.
> >  $
> > 
> > After:
> > 
> >  $ perf script intel-pt-events.py 2>&1 | head -3
> >  Intel PT Power Events and PTWRITE
> >             perf  8123/8123  [000]       551.230753986     cbr:  42  freq: 4219 MHz  (156%)                0 [unknown] ([unknown])
> >             perf  8123/8123  [001]       551.230808216     cbr:  42  freq: 4219 MHz  (156%)                0 [unknown] ([unknown])
> >  $ perf script -s intel-pt-events.py 2>&1 | head -3
> >  Intel PT Power Events and PTWRITE
> >             perf  8123/8123  [000]       551.230753986     cbr:  42  freq: 4219 MHz  (156%)                0 [unknown] ([unknown])
> >             perf  8123/8123  [001]       551.230808216     cbr:  42  freq: 4219 MHz  (156%)                0 [unknown] ([unknown])
> >  $ perf script ~/libexec/perf-core/scripts/python/intel-pt-events.py 2>&1 | head -3
> >  Intel PT Power Events and PTWRITE
> >             perf  8123/8123  [000]       551.230753986     cbr:  42  freq: 4219 MHz  (156%)                0 [unknown] ([unknown])
> >             perf  8123/8123  [001]       551.230808216     cbr:  42  freq: 4219 MHz  (156%)                0 [unknown] ([unknown])
> >  $
> > 
> > Signed-off-by: Adrian Hunter <adrian.hunter@...el.com>
> 
> Acked-by: Jiri Olsa <jolsa@...hat.com>

Thanks, applied.

- Arnaldo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ