Lines Matching refs:kp
9 static struct kprobe kp; variable
11 static void setup_kprobe(struct kunit *test, struct kprobe *kp, in setup_kprobe() argument
14 kp->offset = offset; in setup_kprobe()
15 kp->addr = NULL; in setup_kprobe()
16 kp->symbol_name = symbol; in setup_kprobe()
19 static void test_kprobe_offset(struct kunit *test, struct kprobe *kp, in test_kprobe_offset() argument
24 setup_kprobe(test, kp, target, 0); in test_kprobe_offset()
25 ret = register_kprobe(kp); in test_kprobe_offset()
27 unregister_kprobe(kp); in test_kprobe_offset()
29 setup_kprobe(test, kp, target, offset); in test_kprobe_offset()
30 ret = register_kprobe(kp); in test_kprobe_offset()
33 unregister_kprobe(kp); in test_kprobe_offset()
38 test_kprobe_offset(test, &kp, "kprobes_target_odd", in test_kprobe_odd()
44 test_kprobe_offset(test, &kp, "kprobes_target_in_insn4", in test_kprobe_in_insn4()
50 test_kprobe_offset(test, &kp, "kprobes_target_in_insn6_lo", in test_kprobe_in_insn6_lo()
56 test_kprobe_offset(test, &kp, "kprobes_target_in_insn6_hi", in test_kprobe_in_insn6_hi()