1*738a2f2fSHao Luo // SPDX-License-Identifier: GPL-2.0
2*738a2f2fSHao Luo /* Copyright (c) 2022 Google */
3*738a2f2fSHao Luo 
4*738a2f2fSHao Luo #include "vmlinux.h"
5*738a2f2fSHao Luo #include <bpf/bpf_tracing.h>
6*738a2f2fSHao Luo 
7*738a2f2fSHao Luo bool prog1_called = false;
8*738a2f2fSHao Luo bool prog2_called = false;
9*738a2f2fSHao Luo 
10*738a2f2fSHao Luo SEC("raw_tp/sys_enter")
prog1(const void * ctx)11*738a2f2fSHao Luo int prog1(const void *ctx)
12*738a2f2fSHao Luo {
13*738a2f2fSHao Luo 	prog1_called = true;
14*738a2f2fSHao Luo 	return 0;
15*738a2f2fSHao Luo }
16*738a2f2fSHao Luo 
17*738a2f2fSHao Luo SEC("raw_tp/sys_exit")
prog2(const void * ctx)18*738a2f2fSHao Luo int prog2(const void *ctx)
19*738a2f2fSHao Luo {
20*738a2f2fSHao Luo 	prog2_called = true;
21*738a2f2fSHao Luo 	return 0;
22*738a2f2fSHao Luo }
23*738a2f2fSHao Luo 
24