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>
19 /* function to install */
20 #define DO_MARK1_FORMAT "%d %p"
21 void do_mark1(const char *format
, ...)
26 value
= va_arg(ap
, int);
27 ptr
= va_arg(ap
, void*);
35 result
= marker_set_probe("subsys_mark1", DO_MARK1_FORMAT
,
36 (marker_probe_func
*)do_mark1
);
42 marker_remove_probe(do_mark1
);
46 void cleanup_module(void)
48 marker_remove_probe(do_mark1
);
51 MODULE_LICENSE("GPL");
52 MODULE_AUTHOR("Mathieu Desnoyers");
53 MODULE_DESCRIPTION("Probe");
This page took 0.029595 seconds and 4 git commands to generate.