summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/exec/binfmt_bpf_interp.c
blob: 2db205f095b2e021a1978a4622089ff2e4ad7c4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: GPL-2.0
/*
 * Test interpreter for the binfmt_misc_bpf selftest. A bpf-backed 'B' handler
 * routes a matched binary here; printing this marker proves the program's
 * chosen interpreter actually ran.
 */
#include <unistd.h>

int main(int argc, char **argv)
{
	(void)argc;
	(void)argv;
	write(1, "BPF_INTERP_RAN\n", 15);
	return 0;
}