perf buildid-cache: Support binary objects from other namespaces
authorKrister Johansen <kjlx@templeofstupid.com>
Thu, 6 Jul 2017 01:48:11 +0000 (18:48 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 Jul 2017 02:14:11 +0000 (23:14 -0300)
commitf045b8c4b36baddcfbdd4d3d956446e688b0b3cd
tree254b370374c31a5750b9aaa2fcc0b5f87208093e
parent544abd44c7064c8a58a6bd2073d757f6b91d98c5
perf buildid-cache: Support binary objects from other namespaces

Teach buildid-cache how to add, remove, and update binary objects from
other mount namespaces.  Allow probe events tracing binaries in
different namespaces to add their objects to the probe and build-id
caches too.  As a handy side effect, this also lets us access SDT probes
in binaries from alternate mount namespaces.

Signed-off-by: Krister Johansen <kjlx@templeofstupid.com>
Tested-by: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas-Mich Richter <tmricht@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/1499305693-1599-5-git-send-email-kjlx@templeofstupid.com
[ Add util/namespaces.c to tools/perf/util/python-ext-sources, to fix the python binding 'perf test' ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
16 files changed:
tools/perf/Documentation/perf-buildid-cache.txt
tools/perf/Documentation/perf-probe.txt
tools/perf/builtin-buildid-cache.c
tools/perf/builtin-probe.c
tools/perf/tests/sdt.c
tools/perf/util/build-id.c
tools/perf/util/build-id.h
tools/perf/util/dso.c
tools/perf/util/parse-events.c
tools/perf/util/probe-event.c
tools/perf/util/probe-file.c
tools/perf/util/probe-file.h
tools/perf/util/python-ext-sources
tools/perf/util/symbol.c
tools/perf/util/util.c
tools/perf/util/util.h