Message ID | 548189D4.3010907@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, 2014-12-05 at 18:32 +0800, Wang Nan wrote: > Both your and mine failure are related to ldrd/h instruction. What > about your second failed testcase? Can't remember exactly, but it was some instruction that didn't access memory I remember that much. I've also just run the tests on an A9 CPU and get the Oops on the nop after the 'wfi' instruction test. So looks like the problem isn't related to particular test cases.
--- ../temp/arch/arm/probes/kprobes/test-core.c 2014-12-05 15:42:28.000000000 +0800 +++ ./arch/arm/probes/kprobes/test-core.c 2014-12-05 16:06:18.000000000 +0800 @@ -311,6 +311,7 @@ pre_handler_called = test_func_instance; if (regs->ARM_r0 == FUNC_ARG1 && regs->ARM_r1 == FUNC_ARG2) test_regs_ok = true; + post_handler_called = test_func_instance + 1; return 0; } @@ -325,7 +326,7 @@ static struct kprobe the_kprobe = { .addr = 0, .pre_handler = pre_handler, - .post_handler = post_handler + .post_handler = NULL }; static int test_kprobe(long (*func)(long, long)) @@ -346,6 +347,7 @@ if (!ret) return -EINVAL; +#if 0 if (pre_handler_called != test_func_instance) { pr_err("FAIL: kprobe pre_handler not called\n"); return -EINVAL; @@ -361,7 +363,7 @@ pr_err("FAIL: probe called after unregistering\n"); return -EINVAL; } - +#endif return 0; }