3 * Loads a function at a marker call site.
5 * (C) Copyright 2006 Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
7 * This file is released under the GPLv2.
8 * See the file COPYING for more details.
11 #include <linux/marker.h>
12 #include <linux/module.h>
13 #include <linux/kallsyms.h>
15 /* function to install */
16 #define DO_MARK1_FORMAT "%d %p"
17 void do_mark1(const char *format
, ...)
24 value
= va_arg(ap
, int);
25 printk("value is %d\n", value
);
34 result
= marker_set_probe("subsys_mark1", DO_MARK1_FORMAT
,
35 (marker_probe_func
*)do_mark1
);
41 marker_remove_probe(do_mark1
);
45 void cleanup_module(void)
47 marker_remove_probe(do_mark1
);
50 MODULE_LICENSE("GPL");
51 MODULE_AUTHOR("Mathieu Desnoyers");
52 MODULE_DESCRIPTION("Probe");
This page took 0.029284 seconds and 4 git commands to generate.