1 // SPDX-License-Identifier: GPL-2.0
2 /* Converted from tools/testing/selftests/bpf/verifier/d_path.c */
5 #include <bpf/bpf_helpers.h>
8 SEC("fentry/dentry_open")
9 __description("d_path accept")
11 __naked void d_path_accept(void)
14 r1 = *(u32*)(r1 + 0); \
18 *(u64*)(r2 + 0) = r6; \
29 __description("d_path reject")
30 __failure __msg("helper call is not allowed in probe")
31 __naked void d_path_reject(void)
34 r1 = *(u32*)(r1 + 0); \
38 *(u64*)(r2 + 0) = r6; \
48 char _license[] SEC("license") = "GPL";