All of lore.kernel.org
 help / color / mirror / Atom feed
* BTF without CONFIG_DEBUG_INFO_BTF=y
@ 2020-10-01 10:22 Kevin Sheldrake
  2020-10-01 10:33 ` Toke Høiland-Jørgensen
  0 siblings, 1 reply; 8+ messages in thread
From: Kevin Sheldrake @ 2020-10-01 10:22 UTC (permalink / raw)
  To: bpf

Hello

I've seen mention a few times that BTF information can be made available from a kernel that wasn't configured with CONFIG_DEBUG_INFO_BTF.  Please can someone tell me if this is true and, if so, how I could go about accessing and using it in kernels 4.15 to 5.8?

I have built the dwarves package from the github latest and run pahole with '-J' against my kernel image to no avail - it actually seg faults:

~/dwarves/build $ sudo ./pahole /boot/vmlinuz-5.3.0-1022-azure
btf_elf__new: cannot get elf header.
ctf__new: cannot get elf header.
~/dwarves/build $ sudo ./pahole -J /boot/vmlinuz-5.3.0-1022-azure
btf_elf__new: cannot get elf header.
ctf__new: cannot get elf header.
Segmentation fault
~/dwarves/build $ sudo ./pahole --version
v1.17

Judging by the output, I'm guessing that my kernel image isn't the right kind of file.  Can someone point me in the right direction?

Additionally, if this is possible, is there any documentation on the API so I could incorporate the functionality into my own programs directly?

Thanks

Kev


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

end of thread, other threads:[~2020-10-01 15:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-01 10:22 BTF without CONFIG_DEBUG_INFO_BTF=y Kevin Sheldrake
2020-10-01 10:33 ` Toke Høiland-Jørgensen
2020-10-01 12:50   ` Arnaldo Carvalho de Melo
2020-10-01 13:22     ` Arnaldo Carvalho de Melo
2020-10-01 13:37       ` Toke Høiland-Jørgensen
2020-10-01 13:45         ` [EXTERNAL] " Kevin Sheldrake
2020-10-01 15:03           ` Arnaldo Carvalho de Melo
2020-10-01 15:03         ` Arnaldo Carvalho de Melo

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.