aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-08-26 02:29:02 -0400
committerIngo Molnar <mingo@elte.hu>2009-08-26 02:29:02 -0400
commit35dce1a99d010f3d738af4ce1b9b77302fdfe69c (patch)
treee34a37de965a79a2ae301de4d0557f500111dde6 /kernel/trace
parent7cb2e3ee2aeec5b83ecadba929a2dc575dd4008f (diff)
parent1c569f0264ea629c10bbab471dd0626ce4d3f19f (diff)
Merge branch 'tracing/core' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing into tracing/core
Conflicts: include/linux/tracepoint.h Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/Kconfig4
-rw-r--r--kernel/trace/trace_syscalls.c17
2 files changed, 11 insertions, 10 deletions
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index 019f380fd764..06be85a7ef8c 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -41,7 +41,7 @@ config HAVE_FTRACE_MCOUNT_RECORD
41config HAVE_HW_BRANCH_TRACER 41config HAVE_HW_BRANCH_TRACER
42 bool 42 bool
43 43
44config HAVE_FTRACE_SYSCALLS 44config HAVE_SYSCALL_TRACEPOINTS
45 bool 45 bool
46 46
47config TRACER_MAX_TRACE 47config TRACER_MAX_TRACE
@@ -211,7 +211,7 @@ config ENABLE_DEFAULT_TRACERS
211 211
212config FTRACE_SYSCALLS 212config FTRACE_SYSCALLS
213 bool "Trace syscalls" 213 bool "Trace syscalls"
214 depends on HAVE_FTRACE_SYSCALLS 214 depends on HAVE_SYSCALL_TRACEPOINTS
215 select GENERIC_TRACER 215 select GENERIC_TRACER
216 select KALLSYMS 216 select KALLSYMS
217 help 217 help
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
index 97a2454760b0..85291c4de406 100644
--- a/kernel/trace/trace_syscalls.c
+++ b/kernel/trace/trace_syscalls.c
@@ -1,4 +1,5 @@
1#include <trace/syscall.h> 1#include <trace/syscall.h>
2#include <trace/events/syscalls.h>
2#include <linux/kernel.h> 3#include <linux/kernel.h>
3#include <linux/ftrace.h> 4#include <linux/ftrace.h>
4#include <linux/perf_counter.h> 5#include <linux/perf_counter.h>
@@ -288,7 +289,7 @@ int reg_event_syscall_enter(void *ptr)
288 return -ENOSYS; 289 return -ENOSYS;
289 mutex_lock(&syscall_trace_lock); 290 mutex_lock(&syscall_trace_lock);
290 if (!sys_refcount_enter) 291 if (!sys_refcount_enter)
291 ret = register_trace_syscall_enter(ftrace_syscall_enter); 292 ret = register_trace_sys_enter(ftrace_syscall_enter);
292 if (ret) { 293 if (ret) {
293 pr_info("event trace: Could not activate" 294 pr_info("event trace: Could not activate"
294 "syscall entry trace point"); 295 "syscall entry trace point");
@@ -313,7 +314,7 @@ void unreg_event_syscall_enter(void *ptr)
313 sys_refcount_enter--; 314 sys_refcount_enter--;
314 clear_bit(num, enabled_enter_syscalls); 315 clear_bit(num, enabled_enter_syscalls);
315 if (!sys_refcount_enter) 316 if (!sys_refcount_enter)
316 unregister_trace_syscall_enter(ftrace_syscall_enter); 317 unregister_trace_sys_enter(ftrace_syscall_enter);
317 mutex_unlock(&syscall_trace_lock); 318 mutex_unlock(&syscall_trace_lock);
318} 319}
319 320
@@ -329,7 +330,7 @@ int reg_event_syscall_exit(void *ptr)
329 return -ENOSYS; 330 return -ENOSYS;
330 mutex_lock(&syscall_trace_lock); 331 mutex_lock(&syscall_trace_lock);
331 if (!sys_refcount_exit) 332 if (!sys_refcount_exit)
332 ret = register_trace_syscall_exit(ftrace_syscall_exit); 333 ret = register_trace_sys_exit(ftrace_syscall_exit);
333 if (ret) { 334 if (ret) {
334 pr_info("event trace: Could not activate" 335 pr_info("event trace: Could not activate"
335 "syscall exit trace point"); 336 "syscall exit trace point");
@@ -354,7 +355,7 @@ void unreg_event_syscall_exit(void *ptr)
354 sys_refcount_exit--; 355 sys_refcount_exit--;
355 clear_bit(num, enabled_exit_syscalls); 356 clear_bit(num, enabled_exit_syscalls);
356 if (!sys_refcount_exit) 357 if (!sys_refcount_exit)
357 unregister_trace_syscall_exit(ftrace_syscall_exit); 358 unregister_trace_sys_exit(ftrace_syscall_exit);
358 mutex_unlock(&syscall_trace_lock); 359 mutex_unlock(&syscall_trace_lock);
359} 360}
360 361
@@ -420,7 +421,7 @@ int reg_prof_syscall_enter(char *name)
420 421
421 mutex_lock(&syscall_trace_lock); 422 mutex_lock(&syscall_trace_lock);
422 if (!sys_prof_refcount_enter) 423 if (!sys_prof_refcount_enter)
423 ret = register_trace_syscall_enter(prof_syscall_enter); 424 ret = register_trace_sys_enter(prof_syscall_enter);
424 if (ret) { 425 if (ret) {
425 pr_info("event trace: Could not activate" 426 pr_info("event trace: Could not activate"
426 "syscall entry trace point"); 427 "syscall entry trace point");
@@ -444,7 +445,7 @@ void unreg_prof_syscall_enter(char *name)
444 sys_prof_refcount_enter--; 445 sys_prof_refcount_enter--;
445 clear_bit(num, enabled_prof_enter_syscalls); 446 clear_bit(num, enabled_prof_enter_syscalls);
446 if (!sys_prof_refcount_enter) 447 if (!sys_prof_refcount_enter)
447 unregister_trace_syscall_enter(prof_syscall_enter); 448 unregister_trace_sys_enter(prof_syscall_enter);
448 mutex_unlock(&syscall_trace_lock); 449 mutex_unlock(&syscall_trace_lock);
449} 450}
450 451
@@ -481,7 +482,7 @@ int reg_prof_syscall_exit(char *name)
481 482
482 mutex_lock(&syscall_trace_lock); 483 mutex_lock(&syscall_trace_lock);
483 if (!sys_prof_refcount_exit) 484 if (!sys_prof_refcount_exit)
484 ret = register_trace_syscall_exit(prof_syscall_exit); 485 ret = register_trace_sys_exit(prof_syscall_exit);
485 if (ret) { 486 if (ret) {
486 pr_info("event trace: Could not activate" 487 pr_info("event trace: Could not activate"
487 "syscall entry trace point"); 488 "syscall entry trace point");
@@ -505,7 +506,7 @@ void unreg_prof_syscall_exit(char *name)
505 sys_prof_refcount_exit--; 506 sys_prof_refcount_exit--;
506 clear_bit(num, enabled_prof_exit_syscalls); 507 clear_bit(num, enabled_prof_exit_syscalls);
507 if (!sys_prof_refcount_exit) 508 if (!sys_prof_refcount_exit)
508 unregister_trace_syscall_exit(prof_syscall_exit); 509 unregister_trace_sys_exit(prof_syscall_exit);
509 mutex_unlock(&syscall_trace_lock); 510 mutex_unlock(&syscall_trace_lock);
510} 511}
511 512