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>
14 #include <linux/linkage.h>
20 /* function to install */
21 #define DO_MARK1_FORMAT "%d %p"
22 asmlinkage
void do_mark1(const char *format
, int pavalue
, void *paptr
)
31 result
= marker_set_probe("subsys_mark1", DO_MARK1_FORMAT
,
32 (marker_probe_func
*)do_mark1
);
38 marker_remove_probe((marker_probe_func
*)do_mark1
);
42 void cleanup_module(void)
44 marker_remove_probe((marker_probe_func
*)do_mark1
);
47 MODULE_LICENSE("GPL");
48 MODULE_AUTHOR("Mathieu Desnoyers");
49 MODULE_DESCRIPTION("Probe");
This page took 0.029465 seconds and 4 git commands to generate.