[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201127194539.GA2788968@krava>
Date: Fri, 27 Nov 2020 20:45:39 +0100
From: Jiri Olsa <jolsa@...hat.com>
To: Arnaldo Carvalho de Melo <acme@...nel.org>
Cc: Jiri Olsa <jolsa@...nel.org>, lkml <linux-kernel@...r.kernel.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Ingo Molnar <mingo@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Namhyung Kim <namhyung@...nel.org>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Michael Petlan <mpetlan@...hat.com>,
Song Liu <songliubraving@...com>,
Ian Rogers <irogers@...gle.com>,
Stephane Eranian <eranian@...gle.com>,
Alexey Budankov <alexey.budankov@...ux.intel.com>,
Andi Kleen <ak@...ux.intel.com>,
Adrian Hunter <adrian.hunter@...el.com>
Subject: Re: [PATCH 09/25] perf tools: Add support to read build id from
compressed elf
On Thu, Nov 26, 2020 at 02:46:20PM -0300, Arnaldo Carvalho de Melo wrote:
> Em Thu, Nov 26, 2020 at 06:00:10PM +0100, Jiri Olsa escreveu:
> > Adding support to decompress file before reading build id.
> >
> > Adding filename__read_build_id and change its current
> > versions to read_build_id.
> >
> > Shutting down stderr output of perf list in the shell test:
> > 82: Check open filename arg using perf trace + vfs_getname : Ok
> >
> > because with decompression code in the place we the
> > filename__read_build_id function is more verbose in case
> > of error and the test did not account for that.
>
> There are two patches here, right? Also the test output shows it after,
> before is missing, showing what the test wasn't accounting for.
hum, I'm not sure I understand, the test fails because the change
introduced more terminal output, so I think it needs to be together
>
> - Arnaldo
>
> > Signed-off-by: Jiri Olsa <jolsa@...nel.org>
> > ---
> > .../tests/shell/trace+probe_vfs_getname.sh | 2 +-
> > tools/perf/util/symbol-elf.c | 37 ++++++++++++++++++-
> > 2 files changed, 36 insertions(+), 3 deletions(-)
> >
> > diff --git a/tools/perf/tests/shell/trace+probe_vfs_getname.sh b/tools/perf/tests/shell/trace+probe_vfs_getname.sh
> > index 11cc2af13f2b..3660fcc02fef 100755
> > --- a/tools/perf/tests/shell/trace+probe_vfs_getname.sh
> > +++ b/tools/perf/tests/shell/trace+probe_vfs_getname.sh
> > @@ -20,7 +20,7 @@ skip_if_no_perf_trace || exit 2
> > file=$(mktemp /tmp/temporary_file.XXXXX)
> >
> > trace_open_vfs_getname() {
> > - evts=$(echo $(perf list syscalls:sys_enter_open* 2>&1 | egrep 'open(at)? ' | sed -r 's/.*sys_enter_([a-z]+) +\[.*$/\1/') | sed 's/ /,/')
> > + evts=$(echo $(perf list syscalls:sys_enter_open* >&1 2>/dev/nul | egrep 'open(at)? ' | sed -r 's/.*sys_enter_([a-z]+) +\[.*$/\1/') | sed 's/ /,/')
and one extra 'l' missing in /dev/nul ;-) also perhaps the >&1 is superfluous
jirka
Powered by blists - more mailing lists