]> git.ipfire.org Git - thirdparty/linux.git/commit
perf inject: With --convert-callchain ignore the dummy event for dwarf stacks
authorIan Rogers <irogers@google.com>
Thu, 22 Jan 2026 17:58:46 +0000 (09:58 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 23 Jan 2026 19:58:39 +0000 (16:58 -0300)
commite786a04b4a5461dd7e2829422314a5a6d5a664d9
tree6fecbfe308b6501c095b24cde0031dc84dbf719f
parentdc329efc162ac168e2a0c83d1334608371dd525b
perf inject: With --convert-callchain ignore the dummy event for dwarf stacks

On hybrid systems there is generally >1 event and a dummy event.

The perf inject --convert-callchain option is failing to convert
perf.data files on such systems reporting "--convert-callchain requires
DWARF call graph."

The failing event is the dummy event that doesn't need to be set up for
samples.

As such ignore this event when checking the evsels.

Fixes: 92ea788d2af4e65a ("perf inject: Add --convert-callchain option")
Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-inject.c