Linux Perf Users
 help / color / mirror / Atom feed
* Re: unresolved function names in perf output
       [not found] <201510141318.t9EDIkYW025291@d01av02.pok.ibm.com>
@ 2015-10-14 15:50 ` William Cohen
  2015-10-14 21:05   ` George Chochia
  0 siblings, 1 reply; 2+ messages in thread
From: William Cohen @ 2015-10-14 15:50 UTC (permalink / raw)
  To: George Chochia, oprofile-list, linux-perf-users@vger.kernel.org

On 10/14/2015 09:08 AM, George Chochia wrote:
> Hello,
> 
> I am profiling an MPI app using perf tool on Power 8, LE node installed with RHEL 7.2 3.10.0-316.el7.ppc64le.
> Functions from libmlx5-rdmav2.so (Mellanox library from MOFED 3.1-1.0.0.2) show up as function pointers in perf report.
> 
> On the same node installed with Ubuntu 14.04.03 and same MOFED level function names are resolved.

Hi,

It sounds like libmlx5-rdmav2.so might missing debuginfo on the RHEL7.2 version and that is why the addresses are not be mapped back to function names.  You might try the following to see if there are symbols for that library:

eu-readelf -s <path_to_library>

Where did you get libmlx5-rdmav2.so?  You might also check to see if there is an associated debuginfo rpm for that package that needs to be installed. RHEL packages typically have debug information stripped from the rpm and placed in a separate debuginfo rpm.

-Will

> RHEL 7.2
> 19.79%spark64.Linux.L libpami.so [.] _stripe_hal_writepkti
> 11.89%spark64.Linux.L libhal64_ibm.so [.] hal_ibl_rc_scq_flush
> 9.07%spark64.Linux.L libhal64_ibm.so [.] hal_ibl_rc_read_callback
> 8.40%spark64.Linux.L libpami.so [.] _stripe_hal_read_callback
> 7.65%spark64.Linux.L libpami.so [.] _stripe_hal_flush
> 5.83%spark64.Linux.L libhal64_ibm.so [.] hal_ibl_rc_scq_writepkti
> 4.48%spark64.Linux.L libpami.so [.] LapiImpl::Interconnect::SendPacketI
> 3.19%spark64.Linux.L libpami.so [.] Sam::Send
> 2.75%spark64.Linux.L libpami.so [.] _lapi_dispatcher<true>
> 2.33%spark64.Linux.L libmlx5-rdmav2.so [.] 0x0000000000010b20
> 2.02%spark64.Linux.L libpami.so [.] SamSendQueue::Process
> 1.82%spark64.Linux.L libmlx5-rdmav2.so [.] 0x0000000000010b98
> 
> 
> Ubuntu 14.04.3
> 18.09%spark64.Linux.L libpami.so [.] _Z21_stripe_hal_writepktiPvS_S_jS_
> 9.54%spark64.Linux.L libhal64_ibm.so [.] hal_ibl_rc_scq_flush
> 8.67%spark64.Linux.L libmlx5-rdmav2.so [.] mlx5_poll_cq_1
> 8.22%spark64.Linux.L libhal64_ibm.so [.] hal_ibl_rc_read_callback
> 7.70%spark64.Linux.L libpami.so [.] _Z25_stripe_hal_read_callbackPvPFiS_S_jES_P11hal_param_t
> 7.24%spark64.Linux.L libpami.so [.] _Z17_stripe_hal_flushPvS_
> 6.76%spark64.Linux.L libhal64_ibm.so [.] hal_ibl_rc_scq_writepkti
> 4.52%spark64.Linux.L libmlx5-rdmav2.so [.] get_sw_cqe
> 
> 
> Regards
> 
> 
> ------------------------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> oprofile-list mailing list
> oprofile-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oprofile-list
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: unresolved function names in perf output
  2015-10-14 15:50 ` unresolved function names in perf output William Cohen
@ 2015-10-14 21:05   ` George Chochia
  0 siblings, 0 replies; 2+ messages in thread
From: George Chochia @ 2015-10-14 21:05 UTC (permalink / raw)
  To: William Cohen; +Cc: linux-perf-users@vger.kernel.org, oprofile-list


[-- Attachment #1.1.1: Type: text/plain, Size: 3459 bytes --]


Hi Will,

eu-readelf -s libmlx5-rdmav2.so does not show symbols encountered at run
time but gdb finds them:
Breakpoint 1, 0x0000100009510ae8 in mlx5_poll_cq_1 ()
from /lib64/libmlx5-rdmav2.so .

The address does not match one in the perf output.

I noticed that there is a debug version of the same library installed in a
different directory on Ubuntu but not on Red Hat.
I found a version of libmlx5-rdmav2.so with debug info. No problems
resolving symbol names with it.

Regards



From:	William Cohen <wcohen@redhat.com>
To:	George Chochia/Poughkeepsie/IBM@IBMUS, oprofile-list
            <oprofile-list@lists.sourceforge.net>,
            "linux-perf-users@vger.kernel.org"
            <linux-perf-users@vger.kernel.org>
Date:	10/14/2015 11:50 AM
Subject:	Re: unresolved function names in perf output



On 10/14/2015 09:08 AM, George Chochia wrote:
> Hello,
>
> I am profiling an MPI app using perf tool on Power 8, LE node installed
with RHEL 7.2 3.10.0-316.el7.ppc64le.
> Functions from libmlx5-rdmav2.so (Mellanox library from MOFED
3.1-1.0.0.2) show up as function pointers in perf report.
>
> On the same node installed with Ubuntu 14.04.03 and same MOFED level
function names are resolved.

Hi,

It sounds like libmlx5-rdmav2.so might missing debuginfo on the RHEL7.2
version and that is why the addresses are not be mapped back to function
names.  You might try the following to see if there are symbols for that
library:

eu-readelf -s <path_to_library>

Where did you get libmlx5-rdmav2.so?  You might also check to see if there
is an associated debuginfo rpm for that package that needs to be installed.
RHEL packages typically have debug information stripped from the rpm and
placed in a separate debuginfo rpm.

-Will

> RHEL 7.2
> 19.79%spark64.Linux.L libpami.so [.] _stripe_hal_writepkti
> 11.89%spark64.Linux.L libhal64_ibm.so [.] hal_ibl_rc_scq_flush
> 9.07%spark64.Linux.L libhal64_ibm.so [.] hal_ibl_rc_read_callback
> 8.40%spark64.Linux.L libpami.so [.] _stripe_hal_read_callback
> 7.65%spark64.Linux.L libpami.so [.] _stripe_hal_flush
> 5.83%spark64.Linux.L libhal64_ibm.so [.] hal_ibl_rc_scq_writepkti
> 4.48%spark64.Linux.L libpami.so [.] LapiImpl::Interconnect::SendPacketI
> 3.19%spark64.Linux.L libpami.so [.] Sam::Send
> 2.75%spark64.Linux.L libpami.so [.] _lapi_dispatcher<true>
> 2.33%spark64.Linux.L libmlx5-rdmav2.so [.] 0x0000000000010b20
> 2.02%spark64.Linux.L libpami.so [.] SamSendQueue::Process
> 1.82%spark64.Linux.L libmlx5-rdmav2.so [.] 0x0000000000010b98
>
>
> Ubuntu 14.04.3
> 18.09%spark64.Linux.L libpami.so [.] _Z21_stripe_hal_writepktiPvS_S_jS_
> 9.54%spark64.Linux.L libhal64_ibm.so [.] hal_ibl_rc_scq_flush
> 8.67%spark64.Linux.L libmlx5-rdmav2.so [.] mlx5_poll_cq_1
> 8.22%spark64.Linux.L libhal64_ibm.so [.] hal_ibl_rc_read_callback
> 7.70%spark64.Linux.L libpami.so [.]
_Z25_stripe_hal_read_callbackPvPFiS_S_jES_P11hal_param_t
> 7.24%spark64.Linux.L libpami.so [.] _Z17_stripe_hal_flushPvS_
> 6.76%spark64.Linux.L libhal64_ibm.so [.] hal_ibl_rc_scq_writepkti
> 4.52%spark64.Linux.L libmlx5-rdmav2.so [.] get_sw_cqe
>
>
> Regards
>
>
>
------------------------------------------------------------------------------

>
>
>
> _______________________________________________
> oprofile-list mailing list
> oprofile-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oprofile-list
>



[-- Attachment #1.1.2: Type: text/html, Size: 4707 bytes --]

[-- Attachment #1.2: graycol.gif --]
[-- Type: image/gif, Size: 105 bytes --]

[-- Attachment #2: Type: text/plain, Size: 79 bytes --]

------------------------------------------------------------------------------

[-- Attachment #3: Type: text/plain, Size: 170 bytes --]

_______________________________________________
oprofile-list mailing list
oprofile-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-14 21:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <201510141318.t9EDIkYW025291@d01av02.pok.ibm.com>
2015-10-14 15:50 ` unresolved function names in perf output William Cohen
2015-10-14 21:05   ` George Chochia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox