aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.h
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2024-01-17 06:26:53 +0000
committerNamhyung Kim <[email protected]>2024-01-22 20:08:20 +0000
commit83bfa06d08050d03d35004e8579df9718a614100 (patch)
treee3de2dd23ca479481dad56f139b954e4fb9bff8b /tools/perf/util/annotate.h
parentperf annotate-data: Add stack operation pseudo type (diff)
downloadkernel-83bfa06d08050d03d35004e8579df9718a614100.tar.gz
kernel-83bfa06d08050d03d35004e8579df9718a614100.zip
perf annotate-data: Handle PC-relative addressing
Extend find_data_type_die() to find data type from PC-relative address using die_find_variable_by_addr(). Users need to pass the address for the (global) variable. The offset for the variable should be updated after finding the type because the offset in the instruction is just to calcuate the address for the variable. So it changed to pass a pointer to offset and renamed it to 'poffset'. First it searches variables in the CU DIE as it's likely that the global variables are defined in the file level. And then it iterates the scope DIEs to find a local (static) variable. Reviewed-by: Ian Rogers <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Masami Hiramatsu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.h')
0 files changed, 0 insertions, 0 deletions