public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
From: Heiko Carstens <hca@linux.ibm.com>
To: Daan De Meyer <daan.j.demeyer@gmail.com>
Cc: Neal Gompa <ngompa@fedoraproject.org>,
	linux-s390@vger.kernel.org, linux-perf-users@vger.kernel.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>,
	Davide Cavalca <dcavalca@meta.com>
Subject: Re: s390x stack unwinding with perf?
Date: Wed, 3 Jan 2024 16:48:03 +0100	[thread overview]
Message-ID: <20240103154803.24509-B-hca@linux.ibm.com> (raw)
In-Reply-To: <CAO8sHcnqPojEJ7YVPzRWow5D9ELWpCaHG7kPeNoZzJb0QOOYXg@mail.gmail.com>

On Wed, Dec 20, 2023 at 01:58:36PM +0100, Daan De Meyer wrote:
> > FWIW, this is now upstream and will land in 6.7, together with a similar
> > patch which adds user stacktrace support:
> 
> > 504b73d00a55 ("s390/perf: implement perf_callchain_user()")
> > aa44433ac4ee ("s390: add USER_STACKTRACE support")
> 
> > Please let us know if there are any problems.
> 
> I've been trying out the new userspace stacktrace support on Fedora
> Rawhide but I'm having some problems getting it to work. I rebuilt
> systemd and all of its dependencies (specifically, glibc) with
> -mbackchain using copr
> (https://copr.fedorainfracloud.org/coprs/daandemeyer/fno-omit-frame-pointer/builds/),
> built a Fedora Rawhide image with the rebuilt packages and perf using
> mkosi, started an s390x virtual machine and ran "perf record -g
> journalctl --verify" followed by "perf report -g 'graph,0.5,caller'".
> On x86, this gives me a sensible perf report. On s390x, it seems a lot
> of information is still missing.
...
> To reproduce (from a s390x host system):
...
> - bin/mkosi -f qemu"

This fails with "bootctl not found".

Looking at the binaries in the copr repo it looks like the generated
code does create backchains. So in theory walking backchains should
work.

Could you please give examples what does not work, and what you would
expect? Right now I don't know what to look at.

      reply	other threads:[~2024-01-03 15:48 UTC|newest]

Thread overview: 10+ 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
2023-10-26 14:58   ` Neal Gompa
2023-10-27  8:00   ` Daan De Meyer
2023-10-27 10:09     ` Heiko Carstens
     [not found]       ` <CAEg-Je9+UnVsC9e_yDQmXTLNfZy+b42Smj3xobhTE5DiQjk_hA@mail.gmail.com>
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 [this message]

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=20240103154803.24509-B-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