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 void do_mark1(const char *format
, ...)
33 value
= va_arg(ap
, int);
35 ptr
= va_arg(ap
, void*);
57 result
= marker_set_probe("subsys_mark1", NULL
,
64 marker_remove_probe(do_mark1
);
68 void cleanup_module(void)
70 marker_remove_probe(do_mark1
);
73 MODULE_LICENSE("GPL");
74 MODULE_AUTHOR("Mathieu Desnoyers");
75 MODULE_DESCRIPTION("Probe");
This page took 0.031079 seconds and 4 git commands to generate.