All of lore.kernel.org
 help / color / mirror / Atom feed
* perf kernel module symbols
@ 2015-02-18 14:27 Martin Sherburn
  2015-02-23 13:26 ` 王金浦
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Sherburn @ 2015-02-18 14:27 UTC (permalink / raw)
  To: linux-kernel

Hello,

I’m having some trouble getting perf to load symbols for my kernel
module. If I do a system wide capture for example with “perf record -g
fp -a sleep 15” followed by “perf report | head” it tells me the
following:

No kallsyms or vmlinux with build-id
3b4704f9bcec1645cd1041286dd5125af061ca95 was found
[mymodule] with build id 3b4704f9bcec1645cd1041286dd5125af061ca95 not
found, continuing without symbols

The module does show up in the list when I do “perf buildid-list”,
however it is not present in “~/.debug/.build-id”. I tried to manually
add it with “perf buildid-cache -a /lib/modules/`uname
-r`/extra/mymodule”. However then when I do “perf report” I get a
Segmentation fault.

I did manage to partly work-around the issue by typing “perf report
–symfs=/”. I still get the error “build id not found, continuing
without symbols” but the symbols do get resolved correctly as I can
see function names rather than just hex addresses in the report. But I
still cannot annotate functions, I get the following error:

objdump: '[mymodule]': No such file

If I statically link my driver into the kernel instead of using
modules then everything works fine, however I’d rather not do this. I
am using perf version 3.10.40-ltsi. Any help regarding this issue
would be greatly appreciated.

Regards,

Martin.

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

* Re: perf kernel module symbols
  2015-02-18 14:27 perf kernel module symbols Martin Sherburn
@ 2015-02-23 13:26 ` 王金浦
  0 siblings, 0 replies; 2+ messages in thread
From: 王金浦 @ 2015-02-23 13:26 UTC (permalink / raw)
  To: martin.sherburn; +Cc: LKML

Hi Martin,

Did you receive something useful, or figure out how to fix it, I also
have same problem.

Regards,
Jack

2015-02-18 15:27 GMT+01:00 Martin Sherburn <martin.sherburn@gmail.com>:
> Hello,
>
> I'm having some trouble getting perf to load symbols for my kernel
> module. If I do a system wide capture for example with "perf record -g
> fp -a sleep 15" followed by "perf report | head" it tells me the
> following:
>
> No kallsyms or vmlinux with build-id
> 3b4704f9bcec1645cd1041286dd5125af061ca95 was found
> [mymodule] with build id 3b4704f9bcec1645cd1041286dd5125af061ca95 not
> found, continuing without symbols
>
> The module does show up in the list when I do "perf buildid-list",
> however it is not present in "~/.debug/.build-id". I tried to manually
> add it with "perf buildid-cache -a /lib/modules/`uname
> -r`/extra/mymodule". However then when I do "perf report" I get a
> Segmentation fault.
>
> I did manage to partly work-around the issue by typing "perf report
> -symfs=/". I still get the error "build id not found, continuing
> without symbols" but the symbols do get resolved correctly as I can
> see function names rather than just hex addresses in the report. But I
> still cannot annotate functions, I get the following error:
>
> objdump: '[mymodule]': No such file
>
> If I statically link my driver into the kernel instead of using
> modules then everything works fine, however I'd rather not do this. I
> am using perf version 3.10.40-ltsi. Any help regarding this issue
> would be greatly appreciated.
>
> Regards,
>
> Martin.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

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

end of thread, other threads:[~2015-02-23 13:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-18 14:27 perf kernel module symbols Martin Sherburn
2015-02-23 13:26 ` 王金浦

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.