s390x stack unwinding with perf?

Daan De Meyer
2023-10-26T12:30:56Z

Hi,

As part of enabling frame pointers system wide for Fedora to get fast
system wide stack unwinding, we're now looking to do the same for
s390x after previously enabling frame pointers for x86-64 and aarch64.
From what we can find, on s390x stack unwinding is done via the
"-mbackchain" compiler option. However, from some early experiments
rebuilding a small part of the distro, this option alone does not seem
to result in usable stack traces in perf (perf record -g => perf
report).

Are there any other compiler options that need to be enabled in order
to get usable stack traces in perf for s390x? Has anyone managed to
get this working before?

Cheers,

Daan De Meyer