Menu

#104 oprofpp only shared library samples

closed-invalid
nobody
None
5
2003-03-30
2003-03-12
No

Sample was set up with "--separate=library". oprofpp in
oprofile CVS snapshot fails to do analysis if there are
samples for the shared libraries used by a program but
no samples for the main program. For example

ls /var/lib/oprofile/samples/*sshd*
/var/lib/oprofile/samples/}usr}sbin}sshd}}}lib}libcrypto.so.0.9.7a#0
/var/lib/oprofile/samples/}usr}sbin}sshd}}}lib}tls}libc-2.3.2.so#0

op_time finds the samples fine:

op_time |grep sshd
291 5.0945 0.0000 /usr/sbin/sshd

op_time /usr/sbin/sshd
291 100.0000 0.0000 /usr/sbin/sshd

However, oprofpp cannot:

oprofpp -l -r /usr/sbin/sshd
oprofpp: Cannot locate any samples file.

oprofpp should find the sample files for the shared
libaries.

-Will

Discussion

  • John Levon

    John Levon - 2003-03-12

    Logged In: YES
    user_id=53034

    You need -k to get shared library samples. I don't think this
    is a bug as such.

     
  • William Cohen

    William Cohen - 2003-03-12

    Logged In: YES
    user_id=542804

    My mistake, --show-shared-libs and -k works. I need to
    reread the documentation. However, it is a bit surprising to
    see samples in op_time but not in oprofpp. I wish they
    behaved in similar manner.

     
  • John Levon

    John Levon - 2003-03-30

    Logged In: YES
    user_id=53034

    Your comment is something we should consider for pp_interface,
    please ping us on this. But in the meantime, this report is
    in error.

     
  • John Levon

    John Levon - 2003-03-30
    • status: open --> closed-invalid
     

Log in to post a comment.