diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/Makefile | 2 | ||||
-rw-r--r-- | kernel/kprobes.c | 3 | ||||
-rw-r--r-- | kernel/trace/Kconfig | 5 | ||||
-rw-r--r-- | kernel/trace/Makefile | 6 | ||||
-rw-r--r-- | kernel/trace/trace_events.c | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/kernel/Makefile b/kernel/Makefile index c0cc67ad764c..29d993be7dba 100644 --- a/kernel/Makefile +++ b/kernel/Makefile | |||
@@ -98,7 +98,7 @@ obj-$(CONFIG_COMPAT_BINFMT_ELF) += elfcore.o | |||
98 | obj-$(CONFIG_BINFMT_ELF_FDPIC) += elfcore.o | 98 | obj-$(CONFIG_BINFMT_ELF_FDPIC) += elfcore.o |
99 | obj-$(CONFIG_FUNCTION_TRACER) += trace/ | 99 | obj-$(CONFIG_FUNCTION_TRACER) += trace/ |
100 | obj-$(CONFIG_TRACING) += trace/ | 100 | obj-$(CONFIG_TRACING) += trace/ |
101 | obj-$(CONFIG_X86_DS) += trace/ | 101 | obj-$(CONFIG_TRACE_CLOCK) += trace/ |
102 | obj-$(CONFIG_RING_BUFFER) += trace/ | 102 | obj-$(CONFIG_RING_BUFFER) += trace/ |
103 | obj-$(CONFIG_TRACEPOINTS) += trace/ | 103 | obj-$(CONFIG_TRACEPOINTS) += trace/ |
104 | obj-$(CONFIG_IRQ_WORK) += irq_work.o | 104 | obj-$(CONFIG_IRQ_WORK) += irq_work.o |
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index 35b4315d84f5..098f396aa409 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c | |||
@@ -1418,9 +1418,6 @@ static __kprobes int check_kprobe_address_safe(struct kprobe *p, | |||
1418 | /* Given address is not on the instruction boundary */ | 1418 | /* Given address is not on the instruction boundary */ |
1419 | if ((unsigned long)p->addr != ftrace_addr) | 1419 | if ((unsigned long)p->addr != ftrace_addr) |
1420 | return -EILSEQ; | 1420 | return -EILSEQ; |
1421 | /* break_handler (jprobe) can not work with ftrace */ | ||
1422 | if (p->break_handler) | ||
1423 | return -EINVAL; | ||
1424 | p->flags |= KPROBE_FLAG_FTRACE; | 1421 | p->flags |= KPROBE_FLAG_FTRACE; |
1425 | #else /* !KPROBES_CAN_USE_FTRACE */ | 1422 | #else /* !KPROBES_CAN_USE_FTRACE */ |
1426 | return -EINVAL; | 1423 | return -EINVAL; |
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 9301a0e35e0c..4cea4f41c1d9 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig | |||
@@ -62,8 +62,12 @@ config HAVE_C_RECORDMCOUNT | |||
62 | config TRACER_MAX_TRACE | 62 | config TRACER_MAX_TRACE |
63 | bool | 63 | bool |
64 | 64 | ||
65 | config TRACE_CLOCK | ||
66 | bool | ||
67 | |||
65 | config RING_BUFFER | 68 | config RING_BUFFER |
66 | bool | 69 | bool |
70 | select TRACE_CLOCK | ||
67 | 71 | ||
68 | config FTRACE_NMI_ENTER | 72 | config FTRACE_NMI_ENTER |
69 | bool | 73 | bool |
@@ -114,6 +118,7 @@ config TRACING | |||
114 | select NOP_TRACER | 118 | select NOP_TRACER |
115 | select BINARY_PRINTF | 119 | select BINARY_PRINTF |
116 | select EVENT_TRACING | 120 | select EVENT_TRACING |
121 | select TRACE_CLOCK | ||
117 | 122 | ||
118 | config GENERIC_TRACER | 123 | config GENERIC_TRACER |
119 | bool | 124 | bool |
diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile index 837090808aac..d7e2068e4b71 100644 --- a/kernel/trace/Makefile +++ b/kernel/trace/Makefile | |||
@@ -19,11 +19,7 @@ endif | |||
19 | 19 | ||
20 | CFLAGS_trace_events_filter.o := -I$(src) | 20 | CFLAGS_trace_events_filter.o := -I$(src) |
21 | 21 | ||
22 | # | 22 | obj-$(CONFIG_TRACE_CLOCK) += trace_clock.o |
23 | # Make the trace clocks available generally: it's infrastructure | ||
24 | # relied on by ptrace for example: | ||
25 | # | ||
26 | obj-y += trace_clock.o | ||
27 | 23 | ||
28 | obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o | 24 | obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o |
29 | obj-$(CONFIG_RING_BUFFER) += ring_buffer.o | 25 | obj-$(CONFIG_RING_BUFFER) += ring_buffer.o |
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 6825d833a257..bbb0e63d78e9 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -1646,9 +1646,11 @@ static __init void event_trace_self_tests(void) | |||
1646 | event_test_stuff(); | 1646 | event_test_stuff(); |
1647 | 1647 | ||
1648 | ret = __ftrace_set_clr_event(NULL, system->name, NULL, 0); | 1648 | ret = __ftrace_set_clr_event(NULL, system->name, NULL, 0); |
1649 | if (WARN_ON_ONCE(ret)) | 1649 | if (WARN_ON_ONCE(ret)) { |
1650 | pr_warning("error disabling system %s\n", | 1650 | pr_warning("error disabling system %s\n", |
1651 | system->name); | 1651 | system->name); |
1652 | continue; | ||
1653 | } | ||
1652 | 1654 | ||
1653 | pr_cont("OK\n"); | 1655 | pr_cont("OK\n"); |
1654 | } | 1656 | } |