perf tools: Automatically use guest kcore_dir if present
When registering a guest machine using machine_pid from the id index, check perf.data for a matching kcore_dir subdirectory and set the kallsyms file name accordingly. If set, use it to find the machine's kernel symbols and object code (from kcore). Signed-off-by:Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: kvm@vger.kernel.org Link: https://lore.kernel.org/r/20220711093218.10967-23-adrian.hunter@intel.com Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/util/data.c 19 additions, 0 deletionstools/perf/util/data.c
- tools/perf/util/data.h 1 addition, 0 deletionstools/perf/util/data.h
- tools/perf/util/machine.h 1 addition, 0 deletionstools/perf/util/machine.h
- tools/perf/util/session.c 2 additions, 0 deletionstools/perf/util/session.c
- tools/perf/util/symbol.c 4 additions, 2 deletionstools/perf/util/symbol.c
Loading
Please register or sign in to comment