From 0efac34cbfc6de25a57f58700d9c04762a3a7022 Mon Sep 17 00:00:00 2001 From: compudj Date: Thu, 21 Sep 2006 23:18:48 +0000 Subject: [PATCH] probe test git-svn-id: http://ltt.polymtl.ca/svn@2134 04897980-b3bd-0310-b5e0-8ef037075253 --- tests/kernel/probe.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.34.1