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