]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf annotate: Treat 'call' instruction as stack operation
authorNamhyung Kim <namhyung@kernel.org>
Mon, 9 Sep 2024 21:42:50 +0000 (14:42 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 10 Sep 2024 20:32:47 +0000 (17:32 -0300)
commitc8b9358778a82534251dc93ebc4601246d5ae04e
tree4c0e0c5e242c3ff9554bebb9b79e514d28a622ea
parent332f60ac052f5d7bfc646502f377c600986f10c2
perf annotate: Treat 'call' instruction as stack operation

I found some portion of mem-store events sampled on CALL instruction
which has no memory access.  But it actually saves a return address
into stack.  It should be considered as a stack operation like RET
instruction.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240909214251.3033827-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c