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"
17 asmlinkage
void do_mark1(const char *format
, int value
)
19 __mark_check_format(DO_MARK1_FORMAT
, value
);
20 printk("value is %d\n", value
);
25 return marker_set_probe("subsys_mark1", DO_MARK1_FORMAT
,
26 (marker_probe_func
*)do_mark1
,
30 void cleanup_module(void)
32 marker_disable_probe("subsys_mark1", (marker_probe_func
*)do_mark1
,
36 MODULE_LICENSE("GPL");
37 MODULE_AUTHOR("Mathieu Desnoyers");
38 MODULE_DESCRIPTION("Probe");
This page took 0.029367 seconds and 4 git commands to generate.