1 // SPDX-License-Identifier: GPL-2.0
3 #include <bpf/bpf_helpers.h>
4 #include <bpf/bpf_endian.h>
6 volatile __u64 test_get_constant = 0;
7 SEC("freplace/get_constant")
8 int security_new_get_constant(long val)
12 test_get_constant = 1;
13 return test_get_constant; /* original get_constant() returns val - 122 */
15 char _license[] SEC("license") = "GPL";