lkml.org 
[lkml]   [2013]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 09/13] ARM: Disable jprobe selftests in thumb kernels
Date
From: "David A. Long" <dave.long@linaro.org>

jprobe kernel selftests are not supported for thumb kernels. Conditionally
disable them in the kernel kprobes-test module.

Signed-off-by: David A. Long <dave.long@linaro.org>
---
arch/arm/kernel/kprobes-test.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/arch/arm/kernel/kprobes-test.c b/arch/arm/kernel/kprobes-test.c
index 44a8a13..2144df1 100644
--- a/arch/arm/kernel/kprobes-test.c
+++ b/arch/arm/kernel/kprobes-test.c
@@ -358,6 +358,7 @@ static int test_kprobe(long (*func)(long, long))
return 0;
}

+#ifndef CONFIG_THUMB2_KERNEL
static void __kprobes jprobe_func(long r0, long r1)
{
jprobe_func_called = test_func_instance;
@@ -401,6 +402,7 @@ static int test_jprobe(long (*func)(long, long))

return 0;
}
+#endif

static int __kprobes
kretprobe_handler(struct kretprobe_instance *ri, struct pt_regs *regs)
@@ -456,10 +458,12 @@ static int run_api_tests(long (*func)(long, long))
if (ret < 0)
return ret;

+#ifndef CONFIG_THUMB2_KERNEL
pr_info(" jprobe\n");
ret = test_jprobe(func);
if (ret < 0)
return ret;
+#endif

pr_info(" kretprobe\n");
ret = test_kretprobe(func);
--
1.8.1.2


\
 
 \ /
  Last update: 2013-10-15 23:21    [W:0.538 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site