X-Git-Url: https://bbs.cooldavid.org/git/?a=blobdiff_plain;f=samples%2Ftracepoints%2Ftracepoint-probe-sample2.c;fp=samples%2Ftracepoints%2Ftracepoint-probe-sample2.c;h=9fcf990e5d4bd01c7095471105b2260028be1919;hb=38516ab59fbc5b3bb278cf5e1fe2867c70cff32e;hp=be2a960573f174991fe26c4ccdfd5794bc61c988;hpb=53da59aa6dd881fd0bbdd058a8a299d90ce9dd1d;p=net-next-2.6.git diff --git a/samples/tracepoints/tracepoint-probe-sample2.c b/samples/tracepoints/tracepoint-probe-sample2.c index be2a960573f..9fcf990e5d4 100644 --- a/samples/tracepoints/tracepoint-probe-sample2.c +++ b/samples/tracepoints/tracepoint-probe-sample2.c @@ -12,7 +12,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) { printk(KERN_INFO "Event is encountered with inode number %lu\n", inode->i_ino); @@ -22,7 +23,7 @@ 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); return 0; @@ -32,7 +33,7 @@ module_init(tp_sample_trace_init); static void __exit tp_sample_trace_exit(void) { - unregister_trace_subsys_event(probe_subsys_event); + unregister_trace_subsys_event(probe_subsys_event, NULL); tracepoint_synchronize_unregister(); }