perf dwarf-aux: Add die_get_cfa()
authorNamhyung Kim <namhyung@kernel.org>
Wed, 17 Jan 2024 06:26:55 +0000 (22:26 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 22 Jan 2024 20:08:20 +0000 (12:08 -0800)
commit6fed025f119d229cf345aed2207d2922ed71871d
tree71971ec6f49d6e01c10190e3014305d5ecd557ff
parent5f7cdde843dd21c7228d9ae47d985086ce165985
perf dwarf-aux: Add die_get_cfa()

The die_get_cfa() is to get frame base register and offset at the given
instruction address (pc).  This info will be used to locate stack
variables which have location expression using DW_OP_fbreg.

Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/20240117062657.985479-8-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/dwarf-aux.c
tools/perf/util/dwarf-aux.h