Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Linux Kernel CONFIG_DEBUG_INFO_BTF by default
@ 2020-07-22 11:16 DanPartelly
  2020-07-22 11:22 ` luhann
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: DanPartelly @ 2020-07-22 11:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1160 bytes --]

New issue by DanPartelly on void-packages repository

https://github.com/void-linux/void-packages/issues/23723

Description:
Please consider changing the default kernel config to include BTF deduplicated type information. The flag is CONFIG_DEBUG_INFO_BTF .  The flag allow the kernel to make available type information to BPF programs, allowing those to introspect kernel structures without resorting to llvm/clang to parse kernel headers as was done in past by iovisor bcc tool for example.  This was iffy at times and broke many times.   BTF allows a lot of introspection into running kernel, making the setting usefull to all kind of ppl from developer to ops and sytem admins.  given this usefulness more and more distros are enabling it by default.  It is a relative recent addition, so the config flag should only be upaded for latest kernel serie (5.7)  and up. 

Note that when using this config, pahole utility becomes a build dependency. 

BTF type info is de-duplicated and greatly reduced in size compared to dwarf.  A primer into its usefulness can be read at:
https://facebookmicrosites.github.io/bpf/blog/2018/11/14/btf-enhancement.html


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

* Re: Linux Kernel CONFIG_DEBUG_INFO_BTF by default
  2020-07-22 11:16 [ISSUE] Linux Kernel CONFIG_DEBUG_INFO_BTF by default DanPartelly
@ 2020-07-22 11:22 ` luhann
  2020-08-12 11:47 ` leahneukirchen
  2020-08-12 11:47 ` [ISSUE] [CLOSED] " leahneukirchen
  2 siblings, 0 replies; 4+ messages in thread
From: luhann @ 2020-07-22 11:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 222 bytes --]

New comment by luhann on void-packages repository

https://github.com/void-linux/void-packages/issues/23723#issuecomment-662398282

Comment:
Currently there is a PR to implement this change for 5.7 on x86_64. See  #23534.

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

* Re: Linux Kernel CONFIG_DEBUG_INFO_BTF by default
  2020-07-22 11:16 [ISSUE] Linux Kernel CONFIG_DEBUG_INFO_BTF by default DanPartelly
  2020-07-22 11:22 ` luhann
@ 2020-08-12 11:47 ` leahneukirchen
  2020-08-12 11:47 ` [ISSUE] [CLOSED] " leahneukirchen
  2 siblings, 0 replies; 4+ messages in thread
From: leahneukirchen @ 2020-08-12 11:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 193 bytes --]

New comment by leahneukirchen on void-packages repository

https://github.com/void-linux/void-packages/issues/23723#issuecomment-672823038

Comment:
Enabled for our platforms in Linux 5.8 now.

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

* Re: [ISSUE] [CLOSED] Linux Kernel CONFIG_DEBUG_INFO_BTF by default
  2020-07-22 11:16 [ISSUE] Linux Kernel CONFIG_DEBUG_INFO_BTF by default DanPartelly
  2020-07-22 11:22 ` luhann
  2020-08-12 11:47 ` leahneukirchen
@ 2020-08-12 11:47 ` leahneukirchen
  2 siblings, 0 replies; 4+ messages in thread
From: leahneukirchen @ 2020-08-12 11:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1163 bytes --]

Closed issue by DanPartelly on void-packages repository

https://github.com/void-linux/void-packages/issues/23723

Description:
Please consider changing the default kernel config to include BTF deduplicated type information. The flag is CONFIG_DEBUG_INFO_BTF .  The flag allow the kernel to make available type information to BPF programs, allowing those to introspect kernel structures without resorting to llvm/clang to parse kernel headers as was done in past by iovisor bcc tool for example.  This was iffy at times and broke many times.   BTF allows a lot of introspection into running kernel, making the setting usefull to all kind of ppl from developer to ops and sytem admins.  given this usefulness more and more distros are enabling it by default.  It is a relative recent addition, so the config flag should only be upaded for latest kernel serie (5.7)  and up. 

Note that when using this config, pahole utility becomes a build dependency. 

BTF type info is de-duplicated and greatly reduced in size compared to dwarf.  A primer into its usefulness can be read at:
https://facebookmicrosites.github.io/bpf/blog/2018/11/14/btf-enhancement.html


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

end of thread, other threads:[~2020-08-12 11:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-22 11:16 [ISSUE] Linux Kernel CONFIG_DEBUG_INFO_BTF by default DanPartelly
2020-07-22 11:22 ` luhann
2020-08-12 11:47 ` leahneukirchen
2020-08-12 11:47 ` [ISSUE] [CLOSED] " leahneukirchen

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).