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