perf inject: Enter namespace when reading build-id
authorNamhyung Kim <namhyung@kernel.org>
Mon, 12 Oct 2020 07:02:11 +0000 (16:02 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 13 Oct 2020 13:59:42 +0000 (10:59 -0300)
commit336c95b297e8127705e590bbd25f5c627bfcb782
tree2c0e54c8ab0990ec152317c10403456860ad43b5
parent2946ecedd026ca3bb6b6415de487e2836037d06f
perf inject: Enter namespace when reading build-id

It should be in a proper mnt namespace when accessing the file.

I think this had no problem since the build-id was actually read from
map__load() -> dso__load() already.  But I'd like to change it in the
following commit.

Acked-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20201012070214.2074921-4-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-inject.c