Loading...
Note: File does not exist in v5.9.
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __BPF_MISC_H__
3#define __BPF_MISC_H__
4
5#define __msg(msg) __attribute__((btf_decl_tag("comment:test_expect_msg=" msg)))
6#define __failure __attribute__((btf_decl_tag("comment:test_expect_failure")))
7#define __success __attribute__((btf_decl_tag("comment:test_expect_success")))
8#define __log_level(lvl) __attribute__((btf_decl_tag("comment:test_log_level="#lvl)))
9
10#if defined(__TARGET_ARCH_x86)
11#define SYSCALL_WRAPPER 1
12#define SYS_PREFIX "__x64_"
13#elif defined(__TARGET_ARCH_s390)
14#define SYSCALL_WRAPPER 1
15#define SYS_PREFIX "__s390x_"
16#elif defined(__TARGET_ARCH_arm64)
17#define SYSCALL_WRAPPER 1
18#define SYS_PREFIX "__arm64_"
19#else
20#define SYSCALL_WRAPPER 0
21#define SYS_PREFIX "__se_"
22#endif
23
24#endif