From: compudj Date: Thu, 21 Sep 2006 23:18:48 +0000 (+0000) Subject: probe test X-Git-Tag: v0.12.20~1355 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0efac34cbfc6de25a57f58700d9c04762a3a7022;p=lttv.git probe test git-svn-id: http://ltt.polymtl.ca/svn@2134 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/tests/kernel/probe.c b/tests/kernel/probe.c index 58154b2d..4651fc77 100644 --- a/tests/kernel/probe.c +++ b/tests/kernel/probe.c @@ -13,14 +13,17 @@ #include /* 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); }