probe test
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 21 Sep 2006 23:18:48 +0000 (23:18 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 21 Sep 2006 23:18:48 +0000 (23:18 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2134 04897980-b3bd-0310-b5e0-8ef037075253

tests/kernel/probe.c

index 58154b2d295761476b8eb1f21f781104a862723c..4651fc77583659b071ed4645d24771eebf5d5142 100644 (file)
 #include <linux/kallsyms.h>
 
 /* function to install */
+#define DO_MARK1_FORMAT "%d"
 asmlinkage void do_mark1(const char *format, int value)
 {
+       __mark_check_format(DO_MARK1_FORMAT, value);
        printk("value is %d\n", value);
 }
 
 int init_module(void)
 {
-       return marker_set_probe("subsys_mark1", (marker_probe_func*)do_mark1,
+       return marker_set_probe("subsys_mark1", DO_MARK1_FORMAT,
+                       (marker_probe_func*)do_mark1,
                        MARKER_CALL);
 }
 
This page took 0.023914 seconds and 4 git commands to generate.