1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2021 Facebook */
6 #include <bpf/bpf_helpers.h>
8 extern const int bpf_testmod_ksym_percpu __ksym;
10 int out_mod_ksym_global = 0;
11 bool triggered = false;
13 SEC("raw_tp/sys_enter")
14 int handler(const void *ctx)
19 val = (int *)bpf_this_cpu_ptr(&bpf_testmod_ksym_percpu);
20 out_mod_ksym_global = *val;
26 char LICENSE[] SEC("license") = "GPL";