1 // SPDX-License-Identifier: GPL-2.0
4 #include <bpf/bpf_helpers.h>
7 #if (defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86) || \
8 (defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64)) && __clang_major__ >= 18
11 __description("gotol, small_imm")
12 __success __success_unpriv __retval(1)
13 __naked void gotol_small_imm(void)
16 call %[bpf_ktime_get_ns]; \
17 if r0 == 0 goto l0_%=; \
29 : __imm(bpf_ktime_get_ns)
36 __description("cpuv4 is not supported by compiler or jit, use a dummy test")
45 char _license[] SEC("license") = "GPL";