aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2012-09-14 04:06:51 -0400
committerIngo Molnar <mingo@kernel.org>2012-09-14 04:06:51 -0400
commit26f45274afd938d82463816a12ec67448513294a (patch)
tree97c232667794b039a9ef3a2ab4444311fb44cbfd /kernel
parent4553f0b90e1fd93b95a97918804528d4039201fc (diff)
parentc6aaf4d0bb86e2154ea31a33804cec300611255f (diff)
Merge branch 'tip/perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace into perf/core
Pull tracing updates from Steve Rostedt. Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/Makefile2
-rw-r--r--kernel/kprobes.c3
-rw-r--r--kernel/trace/Kconfig5
-rw-r--r--kernel/trace/Makefile6
-rw-r--r--kernel/trace/trace_events.c4
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
98obj-$(CONFIG_BINFMT_ELF_FDPIC) += elfcore.o 98obj-$(CONFIG_BINFMT_ELF_FDPIC) += elfcore.o
99obj-$(CONFIG_FUNCTION_TRACER) += trace/ 99obj-$(CONFIG_FUNCTION_TRACER) += trace/
100obj-$(CONFIG_TRACING) += trace/ 100obj-$(CONFIG_TRACING) += trace/
101obj-$(CONFIG_X86_DS) += trace/ 101obj-$(CONFIG_TRACE_CLOCK) += trace/
102obj-$(CONFIG_RING_BUFFER) += trace/ 102obj-$(CONFIG_RING_BUFFER) += trace/
103obj-$(CONFIG_TRACEPOINTS) += trace/ 103obj-$(CONFIG_TRACEPOINTS) += trace/
104obj-$(CONFIG_IRQ_WORK) += irq_work.o 104obj-$(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
62config TRACER_MAX_TRACE 62config TRACER_MAX_TRACE
63 bool 63 bool
64 64
65config TRACE_CLOCK
66 bool
67
65config RING_BUFFER 68config RING_BUFFER
66 bool 69 bool
70 select TRACE_CLOCK
67 71
68config FTRACE_NMI_ENTER 72config 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
118config GENERIC_TRACER 123config 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
20CFLAGS_trace_events_filter.o := -I$(src) 20CFLAGS_trace_events_filter.o := -I$(src)
21 21
22# 22obj-$(CONFIG_TRACE_CLOCK) += trace_clock.o
23# Make the trace clocks available generally: it's infrastructure
24# relied on by ptrace for example:
25#
26obj-y += trace_clock.o
27 23
28obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o 24obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o
29obj-$(CONFIG_RING_BUFFER) += ring_buffer.o 25obj-$(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 }