1 // SPDX-License-Identifier: GPL-2.0
3 #include <bpf/bpf_helpers.h>
4 #include <bpf/bpf_tracing.h>
9 int BPF_PROG(fentry_test_1, __u64 *st_ops_ctx)
13 /* Read the traced st_ops arg1 which is a pointer */
14 bpf_probe_read_kernel(&state, sizeof(__u64), (void *)st_ops_ctx);
16 bpf_probe_read_kernel(&val, sizeof(__u32), (void *)state);
21 char _license[] SEC("license") = "GPL";