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


Groups > linux.kernel > #1664773

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-13 14:00 +0200
Message-ID <tRSEh-7vV-1@gated-at.bofh.it> (permalink)
References <tNvwB-1jB-1@gated-at.bofh.it> <tQrmN-1vk-3@gated-at.bofh.it> <tRwaJ-1Dv-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Ravi,

On Mon, 2017-06-12 at 17:28 +0530, Ravi Bangoria wrote:
> So, I tested this patch along with Mark's patch[1] on elfutils an looks
> like it's not working. Steps on what I did:
> 
> After applying Mark's patch on upstream elfutils:
> 
>   $ aclocal
>   $ autoheader
>   $ autoconf
>   $ automake --add-missing
>   $ ./configure
>   $ make
>   $ make install DESTDIR=/home/ravi/elfutils-git
> 
> After applying your patch on upstream perf:
> 
>   $ make
>   $ ./perf record --call-graph=dwarf ls
>   $ LD_LIBRARY_PATH=/home/ravi/elfutils-git/usr/local/lib:\
>     /home/ravi/elfutils-git/usr/local/lib/elfutils/:$LD_LIBRARY_PATH \
>     ./perf script
> 
>     ls 44159  1800.878468:     191408 cycles:u:
> 
>     ls 44159  1800.878673:     419356 cycles:u:
>                        8a97c hpte_need_flush (/usr/lib/debug/lib/modules/4.11.0-3.el7.ppc64le/vmlinux)
>                        835f4 flush_hash_page (/usr/lib/debug/lib/modules/4.11.0-3.el7.ppc64le/vmlinux)
>                        8acec hpte_need_flush (/usr/lib/debug/lib/modules/4.11.0-3.el7.ppc64le/vmlinux)
>                       3468f4 ptep_clear_flush (/usr/lib/debug/lib/modules/4.11.0-3.el7.ppc64le/vmlinux)
>                       328b10 wp_page_copy (/usr/lib/debug/lib/modules/4.11.0-3.el7.ppc64le/vmlinux)
>                       32ebe4 do_wp_page (/usr/lib/debug/lib/modules/4.11.0-3.el7.ppc64le/vmlinux)
>                       33434c __handle_mm_fault (/usr/lib/debug/lib/modules/4.11.0-3.el7.ppc64le/vmlinux)
>                       335040 handle_mm_fault (/usr/lib/debug/lib/modules/4.11.0-3.el7.ppc64le/vmlinux)
>                        7bf94 do_page_fault (/usr/lib/debug/lib/modules/4.11.0-3.el7.ppc64le/vmlinux)
>                        1a4f8 handle_page_fault (/usr/lib/debug/lib/modules/4.11.0-3.el7.ppc64le/vmlinux)
> 
>     ls 44159  1800.878961:     430876 cycles:u:
> 
>     ls 44159  1800.879195:     423785 cycles:u:
> 
>     ls 44159  1800.879360:     427359 cycles:u:
> 
> Here I don't see userspace callchain getting unwound. Please let me know
> if I'm doing anything wrong.

I see the same on very short runs. But when doing a slightly longer run,
even just using ls -lahR, which does some more work, then I do see user
backtraces. They are still missing for some of the early samples though.
It is as if there is a stack/memory address mismatch when the probe is
"too early" in ld.so.

Could you do a test run on some program that does some more work to see
if you never get any user stack traces, or if you only not get them for
some specific probes?

Thanks,

Mark

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