| 1 |
/* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 |
#ifndef TEST_KPROBES_H |
| 3 |
#define TEST_KPROBES_H |
| 4 |
|
| 5 |
/* |
| 6 |
* The magic value that all the functions in the test_kprobes_functions array return. The test |
| 7 |
* installs kprobes into these functions, and verify that the functions still correctly return this |
| 8 |
* value. |
| 9 |
*/ |
| 10 |
#define KPROBE_TEST_MAGIC 0xcafebabe |
| 11 |
#define KPROBE_TEST_MAGIC_LOWER 0x0000babe |
| 12 |
#define KPROBE_TEST_MAGIC_UPPER 0xcafe0000 |
| 13 |
|
| 14 |
#ifndef __ASSEMBLER__ |
| 15 |
|
| 16 |
/* array of addresses to install kprobes */ |
| 17 |
extern void *test_kprobes_addresses[]; |
| 18 |
|
| 19 |
/* array of functions that return KPROBE_TEST_MAGIC */ |
| 20 |
extern long (*test_kprobes_functions[])(void); |
| 21 |
|
| 22 |
#endif /* __ASSEMBLER__ */ |
| 23 |
|
| 24 |
#endif /* TEST_KPROBES_H */ |