summaryrefslogtreecommitdiff
path: root/arch/s390/lib/test_kprobes.h
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2021-09-09 20:59:17 +0200
committerVasily Gorbik <gor@linux.ibm.com>2021-10-04 09:49:37 +0200
commitd340d28a968ec479d0ed3c38ab716ed821d82ad8 (patch)
tree279dc018a3f65ac79c59e4c8d03d5a9eeeaef9c1 /arch/s390/lib/test_kprobes.h
parentf768a20c0a6e5f2396b9ab99bbbfd39d91228df9 (diff)
kprobes: add testcases for s390
Add a few testcases to make sure that it's not possible to place a kprobe in the mid of an instruction on s390. Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Acked-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/lib/test_kprobes.h')
-rw-r--r--arch/s390/lib/test_kprobes.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/s390/lib/test_kprobes.h b/arch/s390/lib/test_kprobes.h
new file mode 100644
index 000000000000..2b4c9bc337f1
--- /dev/null
+++ b/arch/s390/lib/test_kprobes.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+#ifndef TEST_KPROBES_H
+#define TEST_KPROBES_H
+
+extern unsigned long kprobes_target_odd_offs;
+extern unsigned long kprobes_target_in_insn4_offs;
+extern unsigned long kprobes_target_in_insn6_lo_offs;
+extern unsigned long kprobes_target_in_insn6_hi_offs;
+
+#endif