linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* perf-probe : error "Rebuild with -g, or install an appropriate debuginfo package"
@ 2016-11-30 13:49 HOUSSEN Franck
  2016-12-01  5:26 ` Masami Hiramatsu
  0 siblings, 1 reply; 3+ messages in thread
From: HOUSSEN Franck @ 2016-11-30 13:49 UTC (permalink / raw)
  To: linux-perf-users

I compiled myApp.cpp (that contains a function named myFunction) with:
~>mpic++ -O2 -ggdb -fno-omit-frame-pointer -o myApp myApp.cpp

When I try to probe a function from the myApp binary, I get:
~> sudo perf probe --exe ./myApp --add "myFunction:2"
The /home/path/to/myApp file has no debug information.
Rebuild with -g, or install an appropriate debuginfo package.
  Error: Failed to add events.

... -g has been set a t compile time and libelf (and libelf-dev) seems
to be installed:
~> dpkg -l *elf*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                  Version
Architecture            Description
+++-=====================================-=======================-===================
un  elf-binutils                          <none>
<none>                  (no description available)
un  libelf                                <none>
<none>                  (no description available)
ii  libelf-dev:amd64                      0.166-2.2
amd64                   libelf1 development libraries and header files
un  libelf0                               <none>
<none>                  (no description available)
ii  libelf1:amd64                         0.166-2.2
amd64                   library to read and write ELF files
ii  libelf1:i386                          0.166-2.2               i386
                   library to read and write ELF files
rc  libelfg0:amd64                        0.8.13-5
amd64                   an ELF object file access library
un  libelfg0-dev                          <none>
<none>                  (no description available)

I googled that without any relevant answer... Could somebody help me
on this ? What's wrong ?

Franck

PS : When I do that
~>sudo perf probe --exe ./myApp --add "myFunction"
Added new event:
  probe_myApp:myFunction (on myFunction in /home/path/to/myApp)

It works !?... I need to place the tracepoint at the second line below
the entry of myFunction => replacing "myFunction" with "myFunction:2"
does not work ! Why ?...

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

end of thread, other threads:[~2016-12-02 10:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-30 13:49 perf-probe : error "Rebuild with -g, or install an appropriate debuginfo package" HOUSSEN Franck
2016-12-01  5:26 ` Masami Hiramatsu
2016-12-02 10:40   ` HOUSSEN Franck

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 NNTP newsgroup(s).