Hi,
This patchset ports the new eu-stackprof tool to LoongArch, and adds an
unwinder heuristic for recovering samples whose initial frames are PLT
calls (LoongArch linkers do not synthesize FDEs for .plt). It has been
tested on a Loongson 3B6000 box running Linux 7.2: I manually verified
the output of eu-stackprof to contain real, valid profiling data.
WANG Xuerui (4):
backends/: fix typo in loongarch copyright headers
backends/: reduce loongarch frame_nregs to 64
backends/: support stack profiling on loongarch
backends/: support fallback loongarch unwinding for FP-less or PLT
code
NEWS | 7 ++
backends/Makefile.am | 5 +-
backends/libebl_PERF_FLAGS.h | 23 +++++-
backends/loongarch_cfi.c | 2 +-
backends/loongarch_init.c | 16 +++-
backends/loongarch_initreg.c | 2 +-
backends/loongarch_initreg_sample.c | 97 ++++++++++++++++++++++++
backends/loongarch_regs.c | 2 +-
backends/loongarch_unwind.c | 49 ++++++++++--
config/elfutils.spec.in | 4 +-
configure.ac | 4 +-
libdwfl_stacktrace/dwflst_sample_frame.c | 9 +++
12 files changed, 201 insertions(+), 19 deletions(-)
create mode 100644 backends/loongarch_initreg_sample.c
--
2.56.0