Skip to content

Commit 2c7d662

Browse files
mhiramatingomolnar
authored andcommitted
kprobes: Disable the jprobes test code
Disable jprobes test code because jprobes are deprecated. This code will be completely removed when the jprobe code is removed. Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Cc: Alexei Starovoitov <ast@kernel.org> Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com> Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com> Cc: David S . Miller <davem@davemloft.net> Cc: Ian McDonald <ian.mcdonald@jandi.co.nz> Cc: Kees Cook <keescook@chromium.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E . McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephen Hemminger <stephen@networkplumber.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Vlad Yasevich <vyasevich@gmail.com> Link: http://lkml.kernel.org/r/150724531730.5014.6377596890962355763.stgit@devbox Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 590c845 commit 2c7d662

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎kernel/test_kprobes.c‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#define div_factor 3
2424

25-
static u32 rand1, preh_val, posth_val, jph_val;
25+
static u32 rand1, preh_val, posth_val;
2626
static int errors, handler_errors, num_tests;
2727
static u32 (*target)(u32 value);
2828
static u32 (*target2)(u32 value);
@@ -162,6 +162,9 @@ static int test_kprobes(void)
162162

163163
}
164164

165+
#if 0
166+
static u32 jph_val;
167+
165168
static u32 j_kprobe_target(u32 value)
166169
{
167170
if (preemptible()) {
@@ -239,6 +242,10 @@ static int test_jprobes(void)
239242

240243
return 0;
241244
}
245+
#else
246+
#define test_jprobe() (0)
247+
#define test_jprobes() (0)
248+
#endif
242249
#ifdef CONFIG_KRETPROBES
243250
static u32 krph_val;
244251

0 commit comments

Comments
 (0)