public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: fche@redhat.com (Frank Ch. Eigler)
To: Avi Kivity <avi@scylladb.com>
Cc: systemtap@sourceware.org
Subject: Re: Systemtap kernel backtraces not working on 4.14.14
Date: Wed, 24 Jan 2018 19:01:00 -0000	[thread overview]
Message-ID: <87a7x3f5df.fsf@redhat.com> (raw)
In-Reply-To: <4e07a614-b734-8d91-b18d-d6313981c191@scylladb.com>


avi wrote:

> I have a centos installation with 4.14.14 installed [...]
>   at:       8483   to: rcu_sched
>  0xffffffffa0335150 : 0xffffffffa0335150
> [stap_fc3e91a0b756c0a804d73b3d051959b6__1891+0xd150/0x0]
>  0xffffffffa0336476 : 0xffffffffa0336476
> [...]

Ouch.

> Is there something in the kernel configuration I need to turn on
> (.config taken from elrepo's -ml kernel)? Or a missing dependency
> while building systemtap? 

Shouldn't be the case.

> Maybe systemtap can't cope with retpolines?

systemtap's backtrace engine uses dwarf unwind information.  In
principle, retpolines should be representable properly, but in practice,
there may be some problems with some compilers [1] or some kernel-side
asm .cfi annotations.  I don't currently anticipate systemtap having to
change, but these tools do need to produce correct output.

[1]  https://gcc.gnu.org/ml/gcc/2018-01/msg00160.html

As your kernel seems to be hand-built, and we don't have retpoline
kernels already in circulation, so it'll be tricky to reproduce the
problem here.  Running stap with -DDEBUG_UNWIND=3 would let us see its
point of view.  Try also backtracing from other probe points to see how
systemic the problem is.  It may also help to let us get hold of your
kernel & its build vitals (esp. gcc version).

- FChE

  reply	other threads:[~2018-01-24 19:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-24  8:49 Avi Kivity
2018-01-24 19:01 ` Frank Ch. Eigler [this message]
2018-01-25  8:23   ` Avi Kivity
2018-01-24 19:04 ` Florian Weimer

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=87a7x3f5df.fsf@redhat.com \
    --to=fche@redhat.com \
    --cc=avi@scylladb.com \
    --cc=systemtap@sourceware.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).