diff options
-rw-r--r-- | kernel/test_kprobes.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/kernel/test_kprobes.c b/kernel/test_kprobes.c index 47106a1e645a..dd53e354f630 100644 --- a/kernel/test_kprobes.c +++ b/kernel/test_kprobes.c | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | #define div_factor 3 | 23 | #define div_factor 3 |
24 | 24 | ||
25 | static u32 rand1, preh_val, posth_val, jph_val; | 25 | static u32 rand1, preh_val, posth_val; |
26 | static int errors, handler_errors, num_tests; | 26 | static int errors, handler_errors, num_tests; |
27 | static u32 (*target)(u32 value); | 27 | static u32 (*target)(u32 value); |
28 | static u32 (*target2)(u32 value); | 28 | static u32 (*target2)(u32 value); |
@@ -162,6 +162,9 @@ static int test_kprobes(void) | |||
162 | 162 | ||
163 | } | 163 | } |
164 | 164 | ||
165 | #if 0 | ||
166 | static u32 jph_val; | ||
167 | |||
165 | static u32 j_kprobe_target(u32 value) | 168 | static u32 j_kprobe_target(u32 value) |
166 | { | 169 | { |
167 | if (preemptible()) { | 170 | if (preemptible()) { |
@@ -239,6 +242,10 @@ static int test_jprobes(void) | |||
239 | 242 | ||
240 | return 0; | 243 | return 0; |
241 | } | 244 | } |
245 | #else | ||
246 | #define test_jprobe() (0) | ||
247 | #define test_jprobes() (0) | ||
248 | #endif | ||
242 | #ifdef CONFIG_KRETPROBES | 249 | #ifdef CONFIG_KRETPROBES |
243 | static u32 krph_val; | 250 | static u32 krph_val; |
244 | 251 | ||