aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2024-03-19 05:51:05 +0000
committerArnaldo Carvalho de Melo <[email protected]>2024-03-21 13:41:29 +0000
commitcffb7910afbdf73ca5b2fdf8a617584a7dcecf14 (patch)
treee54693e5220a8d3de1872aa3c538e4ba3d8b8d3e /tools/perf/builtin-annotate.c
parentperf annotate-data: Handle global variable access (diff)
downloadkernel-cffb7910afbdf73ca5b2fdf8a617584a7dcecf14.tar.gz
kernel-cffb7910afbdf73ca5b2fdf8a617584a7dcecf14.zip
perf annotate-data: Handle call instructions
When updating instruction states, the call instruction should play a role since it changes the register states. For simplicity, mark some registers as caller-saved registers (should be arch-dependent), and invalidate them all after a function call. If the function returns something, the designated register (ret_reg) will have the type info. Signed-off-by: Namhyung Kim <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions