perf tools: Honor namespace when synthesizing build-ids
authorNamhyung Kim <namhyung@kernel.org>
Tue, 20 Sep 2022 22:28:21 +0000 (15:28 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 21 Sep 2022 19:08:00 +0000 (16:08 -0300)
commit999e4eaa4b3691acf85d094836260ec4b66c74fd
treebf14603518f8f4a8ef0e35793c7271c82b231da2
parent356edeca2e811642b5848605c2f5f9a7c6c32112
perf tools: Honor namespace when synthesizing build-ids

It needs to enter the namespace before reading a file.

Fixes: 4183a8d70a288627 ("perf tools: Allow synthesizing the build id for kernel/modules/tasks in PERF_RECORD_MMAP2")
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20220920222822.2171056-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/synthetic-events.c