summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2025-12-18 17:18:18 -0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-01-13 17:21:39 -0300
commitf552878a720bf765cc1616ee4a4e243cc03e4b27 (patch)
tree3156ac592768b7e521a64daddcb18c0f7fc49eac /tools/perf/scripts/python/event_analyzing_sample.py
parentb2629e7846e35dbf12de6d7b8e81f0049f6a50ea (diff)
downloadlinux-f552878a720bf765cc1616ee4a4e243cc03e4b27.tar.gz
linux-f552878a720bf765cc1616ee4a4e243cc03e4b27.zip
perf test: Use shelldir to refer perf source location
It uses tools/perf/include which assumes it's running from the root of the linux kernel source tree. But you can run perf from other places like tools/perf, then the include path won't match. We can use the shelldir variable to locate the test script in the tree. $ cd tools/perf $ ./perf test dlfilter 63: dlfilter C API : Ok 101: perf script --dlfilter tests : Ok Reviewed-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: James Clark <james.clark@linaro.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions