7 #include <linux/module.h>
16 static void probe_subsys_event(
void *ignore,
22 file->
f_path.dentry->d_name.name);
27 static void probe_subsys_eventb(
void *ignore)
32 static int __init tp_sample_trace_init(
void)
36 ret = register_trace_subsys_event(probe_subsys_event,
NULL);
38 ret = register_trace_subsys_eventb(probe_subsys_eventb,
NULL);
46 static void __exit tp_sample_trace_exit(
void)
48 unregister_trace_subsys_eventb(probe_subsys_eventb,
NULL);
49 unregister_trace_subsys_event(probe_subsys_event,
NULL);
50 tracepoint_synchronize_unregister();