aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2010-02-26 03:20:17 -0500
committerIngo Molnar <mingo@elte.hu>2010-02-26 03:20:17 -0500
commit281b3714e91162b66add1cfac404cf7b81e3e2f2 (patch)
tree9f80453153db272c207129d971e17d31a6bb214a /kernel/trace
parent64b9fb5704a479d98a59f2a1d45d3331a8f847f8 (diff)
parent7b60997f73865b019e595720185c85285ca3df9a (diff)
Merge branch 'tip/tracing/core' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into tracing/core
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/Kconfig9
-rw-r--r--kernel/trace/trace.h3
-rw-r--r--kernel/trace/trace_events.c4
-rw-r--r--kernel/trace/trace_functions_graph.c1
-rw-r--r--kernel/trace/trace_kprobe.c4
-rw-r--r--kernel/trace/trace_syscalls.c2
6 files changed, 6 insertions, 17 deletions
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index 60e2ce0181ee..e6b99b8c3d35 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -328,15 +328,6 @@ config BRANCH_TRACER
328 328
329 Say N if unsure. 329 Say N if unsure.
330 330
331config POWER_TRACER
332 bool "Trace power consumption behavior"
333 depends on X86
334 select GENERIC_TRACER
335 help
336 This tracer helps developers to analyze and optimize the kernel's
337 power management decisions, specifically the C-state and P-state
338 behavior.
339
340config KSYM_TRACER 331config KSYM_TRACER
341 bool "Trace read and write access on kernel memory locations" 332 bool "Trace read and write access on kernel memory locations"
342 depends on HAVE_HW_BREAKPOINT 333 depends on HAVE_HW_BREAKPOINT
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index b477fce41edf..fd05bcaf91b0 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -792,7 +792,8 @@ extern const char *__stop___trace_bprintk_fmt[];
792 792
793#undef FTRACE_ENTRY 793#undef FTRACE_ENTRY
794#define FTRACE_ENTRY(call, struct_name, id, tstruct, print) \ 794#define FTRACE_ENTRY(call, struct_name, id, tstruct, print) \
795 extern struct ftrace_event_call event_##call; 795 extern struct ftrace_event_call \
796 __attribute__((__aligned__(4))) event_##call;
796#undef FTRACE_ENTRY_DUP 797#undef FTRACE_ENTRY_DUP
797#define FTRACE_ENTRY_DUP(call, struct_name, id, tstruct, print) \ 798#define FTRACE_ENTRY_DUP(call, struct_name, id, tstruct, print) \
798 FTRACE_ENTRY(call, struct_name, id, PARAMS(tstruct), PARAMS(print)) 799 FTRACE_ENTRY(call, struct_name, id, PARAMS(tstruct), PARAMS(print))
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index c2a3077b7353..3f972ad98d04 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -60,10 +60,8 @@ int trace_define_field(struct ftrace_event_call *call, const char *type,
60 return 0; 60 return 0;
61 61
62err: 62err:
63 if (field) { 63 if (field)
64 kfree(field->name); 64 kfree(field->name);
65 kfree(field->type);
66 }
67 kfree(field); 65 kfree(field);
68 66
69 return -ENOMEM; 67 return -ENOMEM;
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c
index 616b135c9eb9..112561df2a0a 100644
--- a/kernel/trace/trace_functions_graph.c
+++ b/kernel/trace/trace_functions_graph.c
@@ -855,7 +855,6 @@ print_graph_return(struct ftrace_graph_ret *trace, struct trace_seq *s,
855 int i; 855 int i;
856 856
857 if (data) { 857 if (data) {
858 int cpu = iter->cpu;
859 int *depth = &(per_cpu_ptr(data->cpu_data, cpu)->depth); 858 int *depth = &(per_cpu_ptr(data->cpu_data, cpu)->depth);
860 859
861 /* 860 /*
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c
index 53f748b64ef3..465b36bef4ca 100644
--- a/kernel/trace/trace_kprobe.c
+++ b/kernel/trace/trace_kprobe.c
@@ -651,12 +651,12 @@ static int create_trace_probe(int argc, char **argv)
651 event = strchr(group, '/') + 1; 651 event = strchr(group, '/') + 1;
652 event[-1] = '\0'; 652 event[-1] = '\0';
653 if (strlen(group) == 0) { 653 if (strlen(group) == 0) {
654 pr_info("Group name is not specifiled\n"); 654 pr_info("Group name is not specified\n");
655 return -EINVAL; 655 return -EINVAL;
656 } 656 }
657 } 657 }
658 if (strlen(event) == 0) { 658 if (strlen(event) == 0) {
659 pr_info("Event name is not specifiled\n"); 659 pr_info("Event name is not specified\n");
660 return -EINVAL; 660 return -EINVAL;
661 } 661 }
662 } 662 }
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
index 49cea70fbf6d..8cdda95da81a 100644
--- a/kernel/trace/trace_syscalls.c
+++ b/kernel/trace/trace_syscalls.c
@@ -603,7 +603,7 @@ int prof_sysexit_enable(struct ftrace_event_call *call)
603 ret = register_trace_sys_exit(prof_syscall_exit); 603 ret = register_trace_sys_exit(prof_syscall_exit);
604 if (ret) { 604 if (ret) {
605 pr_info("event trace: Could not activate" 605 pr_info("event trace: Could not activate"
606 "syscall entry trace point"); 606 "syscall exit trace point");
607 } else { 607 } else {
608 set_bit(num, enabled_prof_exit_syscalls); 608 set_bit(num, enabled_prof_exit_syscalls);
609 sys_prof_refcount_exit++; 609 sys_prof_refcount_exit++;