diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-05-21 17:53:06 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-05-21 17:53:46 +0200 |
commit | f80836c86ebd44bf8f90882283a1618e09dfaed2 (patch) | |
tree | be28455ff20df71fcebc3e59b2575721ab099ba3 /samples/tracepoints/tracepoint-probe-sample.c | |
parent | 598357eba6a55d27ddc7ead80ebb83fe1aad9b83 (diff) | |
parent | ff5f149b6aec8edbfa3698721667acd043009a33 (diff) | |
download | op-kernel-dev-f80836c86ebd44bf8f90882283a1618e09dfaed2.zip op-kernel-dev-f80836c86ebd44bf8f90882283a1618e09dfaed2.tar.gz |
Merge branch 'tip/tracing/core-7' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/core
Diffstat (limited to 'samples/tracepoints/tracepoint-probe-sample.c')
-rw-r--r-- | samples/tracepoints/tracepoint-probe-sample.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/samples/tracepoints/tracepoint-probe-sample.c b/samples/tracepoints/tracepoint-probe-sample.c index 9e60eb6..744c0b9 100644 --- a/samples/tracepoints/tracepoint-probe-sample.c +++ b/samples/tracepoints/tracepoint-probe-sample.c @@ -13,7 +13,8 @@ * Here the caller only guarantees locking for struct file and struct inode. * Locking must therefore be done in the probe to use the dentry. */ -static void probe_subsys_event(struct inode *inode, struct file *file) +static void probe_subsys_event(void *ignore, + struct inode *inode, struct file *file) { path_get(&file->f_path); dget(file->f_path.dentry); @@ -23,7 +24,7 @@ static void probe_subsys_event(struct inode *inode, struct file *file) path_put(&file->f_path); } -static void probe_subsys_eventb(void) +static void probe_subsys_eventb(void *ignore) { printk(KERN_INFO "Event B is encountered\n"); } @@ -32,9 +33,9 @@ static int __init tp_sample_trace_init(void) { int ret; - ret = register_trace_subsys_event(probe_subsys_event); + ret = register_trace_subsys_event(probe_subsys_event, NULL); WARN_ON(ret); - ret = register_trace_subsys_eventb(probe_subsys_eventb); + ret = register_trace_subsys_eventb(probe_subsys_eventb, NULL); WARN_ON(ret); return 0; @@ -44,8 +45,8 @@ module_init(tp_sample_trace_init); static void __exit tp_sample_trace_exit(void) { - unregister_trace_subsys_eventb(probe_subsys_eventb); - unregister_trace_subsys_event(probe_subsys_event); + unregister_trace_subsys_eventb(probe_subsys_eventb, NULL); + unregister_trace_subsys_event(probe_subsys_event, NULL); tracepoint_synchronize_unregister(); } |