1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) Meta Platforms, Inc. and affiliates. */
6 #include <bpf/bpf_helpers.h>
8 /* volatile to force a read, compiler may assume 0 otherwise */
9 const volatile int rovar1;
12 /* Override weak symbol in test_subskeleton_lib */
15 extern volatile bool CONFIG_BPF_SYSCALL __kconfig;
17 extern int lib_routine(void);
19 SEC("raw_tp/sys_enter")
20 int handler1(const void *ctx)
22 (void) CONFIG_BPF_SYSCALL;
24 out1 = lib_routine() * rovar1;
28 char LICENSE[] SEC("license") = "GPL";