aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2024-03-19 05:51:02 +0000
committerArnaldo Carvalho de Melo <[email protected]>2024-03-21 13:41:28 +0000
commit4f903455befa257c50422a4570c4dca0020a1fc8 (patch)
tree3f18fd28eb88028e918440d4b98f6a2ea2e1e353 /tools/perf/builtin-annotate.c
parentperf annotate-data: Maintain variable type info (diff)
downloadkernel-4f903455befa257c50422a4570c4dca0020a1fc8.tar.gz
kernel-4f903455befa257c50422a4570c4dca0020a1fc8.zip
perf annotate-data: Add update_insn_state()
The update_insn_state() function is to update the type state table after processing each instruction. For now, it handles MOV (on x86) insn to transfer type info from the source location to the target. The location can be a register or a stack slot. Check carefully when memory reference happens and fetch the type correctly. It basically ignores write to a memory since it doesn't change the type info. One exception is writes to (new) stack slots for register spilling. 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