diff options
-rw-r--r-- | init/Kconfig | 2 | ||||
-rw-r--r-- | kernel/trace/Kconfig | 8 | ||||
-rw-r--r-- | kernel/trace/Makefile | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/init/Kconfig b/init/Kconfig index f5dbc6d4261b..2b4d055aca4a 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -1513,7 +1513,7 @@ config EVENTFD | |||
1513 | 1513 | ||
1514 | # syscall, maps, verifier | 1514 | # syscall, maps, verifier |
1515 | config BPF_SYSCALL | 1515 | config BPF_SYSCALL |
1516 | bool "Enable bpf() system call" if EXPERT | 1516 | bool "Enable bpf() system call" |
1517 | select ANON_INODES | 1517 | select ANON_INODES |
1518 | select BPF | 1518 | select BPF |
1519 | default n | 1519 | default n |
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index a5da09c899dd..c8e53c051293 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig | |||
@@ -432,6 +432,14 @@ config UPROBE_EVENT | |||
432 | This option is required if you plan to use perf-probe subcommand | 432 | This option is required if you plan to use perf-probe subcommand |
433 | of perf tools on user space applications. | 433 | of perf tools on user space applications. |
434 | 434 | ||
435 | config BPF_EVENTS | ||
436 | depends on BPF_SYSCALL | ||
437 | depends on KPROBE_EVENT | ||
438 | bool | ||
439 | default y | ||
440 | help | ||
441 | This allows the user to attach BPF programs to kprobe events. | ||
442 | |||
435 | config PROBE_EVENTS | 443 | config PROBE_EVENTS |
436 | def_bool n | 444 | def_bool n |
437 | 445 | ||
diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile index c575a300103b..9b1044e936a6 100644 --- a/kernel/trace/Makefile +++ b/kernel/trace/Makefile | |||
@@ -53,7 +53,7 @@ obj-$(CONFIG_EVENT_TRACING) += trace_event_perf.o | |||
53 | endif | 53 | endif |
54 | obj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o | 54 | obj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o |
55 | obj-$(CONFIG_EVENT_TRACING) += trace_events_trigger.o | 55 | obj-$(CONFIG_EVENT_TRACING) += trace_events_trigger.o |
56 | obj-$(CONFIG_BPF_SYSCALL) += bpf_trace.o | 56 | obj-$(CONFIG_BPF_EVENTS) += bpf_trace.o |
57 | obj-$(CONFIG_KPROBE_EVENT) += trace_kprobe.o | 57 | obj-$(CONFIG_KPROBE_EVENT) += trace_kprobe.o |
58 | obj-$(CONFIG_TRACEPOINTS) += power-traces.o | 58 | obj-$(CONFIG_TRACEPOINTS) += power-traces.o |
59 | ifeq ($(CONFIG_PM),y) | 59 | ifeq ($(CONFIG_PM),y) |