xref: /linux/tools/testing/selftests/exec/binfmt_bpf_interp.c (revision 85cdaca6970028bf6f544c355c90035586836ddf)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Test interpreter for the binfmt_misc_bpf selftest. A bpf-backed 'B' handler
4  * routes a matched binary here; printing this marker proves the program's
5  * chosen interpreter actually ran.
6  */
7 #include <unistd.h>
8 
9 int main(int argc, char **argv)
10 {
11 	(void)argc;
12 	(void)argv;
13 	write(1, "BPF_INTERP_RAN\n", 15);
14 	return 0;
15 }
16