Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1666668

Re: [PATCH v2] perf: libdw support for powerpc [ping]

From Mark Wielaard <mark@klomp.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2] perf: libdw support for powerpc [ping]
Date 2017-06-15 13:20 +0200
Message-ID <tSAYG-1Mg-23@gated-at.bofh.it> (permalink)
References <tNvwB-1jB-1@gated-at.bofh.it> <tRSEh-7vV-1@gated-at.bofh.it> <tRWox-1oA-1@gated-at.bofh.it> <tSyDw-cv-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, 2017-06-15 at 10:46 +0200, Milian Wolff wrote:
> Just a quick question: Have you guys applied my recent patch:
> 
> commit 5ea0416f51cc93436bbe497c62ab49fd9cb245b6
> Author: Milian Wolff <milian.wolff@kdab.com>
> Date:   Thu Jun 1 23:00:21 2017 +0200
> 
>     perf report: Include partial stacks unwound with libdw
>     
>     So far the whole stack was thrown away when any error occurred before
>     the maximum stack depth was unwound. This is actually a very common
>     scenario though. The stacks that got unwound so far are still
>     interesting. This removes a large chunk of differences when comparing
>     perf script output for libunwind and libdw perf unwinding.
> 
> If not, then this could explain the issue you are seeing.

Thanks! No, I didn't have that patch (*) yet. It makes a huge
difference. With that, Paolo's patch and the elfutils libdw powerpc64
fallback unwinder patch, it looks like I get user stack traces for
everything now on ppc64le.

Cheers,

Mark

(*) It just this one-liner, but what a difference that makes:

--- a/tools/perf/util/unwind-libdw.c
+++ b/tools/perf/util/unwind-libdw.c
@@ -224,7 +224,7 @@ int unwind__get_entries(unwind_entry_cb_t cb, void *arg,
 
        err = dwfl_getthread_frames(ui->dwfl, thread->tid, frame_callback, ui);
 
-       if (err && !ui->max_stack)
+       if (err && ui->max_stack != max_stack)
                err = 0;
 
        /*

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2] perf: libdw support for powerpc [ping] Paolo Bonzini <pbonzini@redhat.com> - 2017-06-09 14:40 +0200
  Re: [PATCH v2] perf: libdw support for powerpc [ping] Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> - 2017-06-12 14:00 +0200
    Re: [PATCH v2] perf: libdw support for powerpc [ping] Mark Wielaard <mark@klomp.org> - 2017-06-13 14:00 +0200
      Re: [PATCH v2] perf: libdw support for powerpc [ping] Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> - 2017-06-13 18:00 +0200
        Re: [PATCH v2] perf: libdw support for powerpc [ping] Milian Wolff <milian.wolff@kdab.com> - 2017-06-15 10:50 +0200
          Re: [PATCH v2] perf: libdw support for powerpc [ping] Mark Wielaard <mark@klomp.org> - 2017-06-15 13:20 +0200
            Re: [PATCH v2] perf: libdw support for powerpc [ping] Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> - 2017-06-16 06:30 +0200

csiph-web