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

tests/kernel/probe.c

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