From: Heiko Carstens <hca@linux.ibm.com>
To: Daan De Meyer <daan.j.demeyer@gmail.com>
Cc: linux-s390@vger.kernel.org, linux-perf-users@vger.kernel.org,
"dcavalca@meta.com" <dcavalca@meta.com>,
ngompa@fedoraproject.org, Andreas Krebbel <krebbel@linux.ibm.com>,
Ilya Leoshkevich <iii@linux.ibm.com>,
Thomas Richter <tmricht@linux.ibm.com>,
Sumanth Korikkar <sumanthk@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>
Subject: Re: s390x stack unwinding with perf?
Date: Thu, 26 Oct 2023 16:56:59 +0200 [thread overview]
Message-ID: <20231026145659.7063-A-hca@linux.ibm.com> (raw)
In-Reply-To: <CAO8sHcn3+_qrnvp0580aK7jN0Wion5F7KYeBAa4MnCY4mqABPA@mail.gmail.com>
On Thu, Oct 26, 2023 at 02:30:41PM +0200, Daan De Meyer wrote:
> 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?
So, are you saying that you want to enable "-mbackchain" for whole user
space for Fedora? If that is the case, what certainly is missing is kernel
support to unwind user space stack frames from the kernel, since until now
no distribution had user space where it would be possible to unwind the
user space stack from the kernel; which is the reason why this was never
implemented.
If this (or some other compiler options) will be enabled for user space, we
need to add kernel support in order to make this work.
next prev parent reply other threads:[~2023-10-26 14:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-26 12:30 s390x stack unwinding with perf? Daan De Meyer
2023-10-26 14:56 ` Heiko Carstens [this message]
2023-10-26 14:58 ` Neal Gompa
2023-10-27 8:00 ` Daan De Meyer
2023-10-27 10:09 ` Heiko Carstens
2023-10-27 15:22 ` Neal Gompa
2023-10-30 12:35 ` Heiko Carstens
2023-10-30 13:19 ` Neal Gompa
2023-11-09 14:48 ` Heiko Carstens
2023-12-20 12:58 ` Daan De Meyer
2024-01-03 15:48 ` Heiko Carstens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231026145659.7063-A-hca@linux.ibm.com \
--to=hca@linux.ibm.com \
--cc=daan.j.demeyer@gmail.com \
--cc=dcavalca@meta.com \
--cc=gor@linux.ibm.com \
--cc=iii@linux.ibm.com \
--cc=krebbel@linux.ibm.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=ngompa@fedoraproject.org \
--cc=sumanthk@linux.ibm.com \
--cc=tmricht@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).