diff options
author | Joel Fernandes (Google) <joel@joelfernandes.org> | 2019-05-15 17:35:51 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-24 14:16:01 -0400 |
commit | f7b101d33046a837c2aa4526cef28a3c785d7af2 (patch) | |
tree | 50756746345f4a6ba56994e823d5f60681eb662d /init | |
parent | a188339ca5a396acc588e5851ed7e19f66b0ebd9 (diff) |
kheaders: Move from proc to sysfs
The kheaders archive consisting of the kernel headers used for compiling
bpf programs is in /proc. However there is concern that moving it here
will make it permanent. Let us move it to /sys/kernel as discussed [1].
[1] https://lore.kernel.org/patchwork/patch/1067310/#1265969
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/init/Kconfig b/init/Kconfig index 8b9ffe236e4f..16a7540d60c8 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -579,15 +579,14 @@ config IKCONFIG_PROC | |||
579 | This option enables access to the kernel configuration file | 579 | This option enables access to the kernel configuration file |
580 | through /proc/config.gz. | 580 | through /proc/config.gz. |
581 | 581 | ||
582 | config IKHEADERS_PROC | 582 | config IKHEADERS |
583 | tristate "Enable kernel header artifacts through /proc/kheaders.tar.xz" | 583 | tristate "Enable kernel headers through /sys/kernel/kheaders.tar.xz" |
584 | depends on PROC_FS | 584 | depends on SYSFS |
585 | help | 585 | help |
586 | This option enables access to the kernel header and other artifacts that | 586 | This option enables access to the in-kernel headers that are generated during |
587 | are generated during the build process. These can be used to build eBPF | 587 | the build process. These can be used to build eBPF tracing programs, |
588 | tracing programs, or similar programs. If you build the headers as a | 588 | or similar programs. If you build the headers as a module, a module called |
589 | module, a module called kheaders.ko is built which can be loaded on-demand | 589 | kheaders.ko is built which can be loaded on-demand to get access to headers. |
590 | to get access to the headers. | ||
591 | 590 | ||
592 | config LOG_BUF_SHIFT | 591 | config LOG_BUF_SHIFT |
593 | int "Kernel log buffer size (16 => 64KB, 17 => 128KB)" | 592 | int "Kernel log buffer size (16 => 64KB, 17 => 128KB)" |