Home
last modified time | relevance | path

Searched refs:_Static_assert (Results 1 – 25 of 27) sorted by relevance

12

/linux/tools/sched_ext/include/scx/
H A Dcompat.bpf.h86 _Static_assert(false, "scx_bpf_dispatch() renamed to scx_bpf_dsq_insert()")
89 _Static_assert(false, "scx_bpf_dispatch_vtime() renamed to scx_bpf_dsq_insert_vtime()")
92 _Static_assert(false, "scx_bpf_consume() renamed to scx_bpf_dsq_move_to_local()"); \
97_Static_assert(false, "scx_bpf_dispatch_from_dsq_set_slice() renamed to scx_bpf_dsq_move_set_slice…
100_Static_assert(false, "scx_bpf_dispatch_from_dsq_set_vtime() renamed to scx_bpf_dsq_move_set_vtime…
103 _Static_assert(false, "scx_bpf_dispatch_from_dsq() renamed to scx_bpf_dsq_move()"); \
108 _Static_assert(false, "scx_bpf_dispatch_vtime_from_dsq() renamed to scx_bpf_dsq_move_vtime()"); \
113_Static_assert(false, "__COMPAT_scx_bpf_dispatch_from_dsq_set_slice() renamed to __COMPAT_scx_bpf_…
116_Static_assert(false, "__COMPAT_scx_bpf_dispatch_from_dsq_set_vtime() renamed to __COMPAT_scx_bpf_…
119_Static_assert(false, "__COMPAT_scx_bpf_dispatch_from_dsq() renamed to __COMPAT_scx_bpf_dsq_move()…
[all …]
H A Dcommon.bpf.h33 _Static_assert(SCX_DSQ_FLAG_BUILTIN, in ___vmlinux_h_sanity_check___()
197 _Static_assert(sizeof(base) >= sizeof((base) member), \
/linux/tools/testing/selftests/bpf/
H A Dbpf_experimental.h252 _Static_assert(sizeof(&(LHS)), "1st argument must be an lvalue expression"); \
253 _Static_assert(sizeof(LHS) == 8, "Only 8-byte integers are supported\n"); \
254 _Static_assert(__builtin_constant_p(__bpf_assert_signed(LHS)), "internal static assert"); \
255 _Static_assert(__builtin_constant_p((RHS)), "2nd argument must be a constant expression")
310 _Static_assert(sizeof(&(LHS)), "1st argument must be an lvalue expression"); \
535 _Static_assert(BEG <= END, "BEG must be <= END"); \
553 _Static_assert(BEG <= END, "BEG must be <= END"); \
/linux/drivers/hid/bpf/progs/
H A DMicrosoft__Xbox-Elite-2.bpf.c90 _Static_assert(sizeof(rdesc_assign_selection) == sizeof(fixed_rdesc_assign_selection),
92 _Static_assert(sizeof(rdesc_assign_selection) + OFFSET_ASSIGN_SELECTION < ORIGINAL_RDESC_SIZE,
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgv_sriovmsg.h413 _Static_assert(
417 _Static_assert(
421 _Static_assert(AMD_SRIOV_MSG_RESERVE_UCODE % 4 == 0,
424 _Static_assert(AMD_SRIOV_MSG_RESERVE_UCODE > AMD_SRIOV_UCODE_ID__MAX,
/linux/kernel/bpf/preload/iterators/
H A Diterators.lskel-little-endian.h428 #define _Static_assert static_assert in iterators_bpf__assert() macro
431 #undef _Static_assert in iterators_bpf__assert()
H A Diterators.lskel-big-endian.h412 #define _Static_assert static_assert in iterators_bpf__assert() macro
415 #undef _Static_assert in iterators_bpf__assert()
/linux/tools/testing/selftests/bpf/progs/
H A Dexceptions_assert.c68 _Static_assert(_Generic((sk->rx_queue_mapping), s32: 1, default: 0), "type match"); in check_assert_range_s64()
95 _Static_assert(_Generic((sk->rx_queue_mapping), s32: 1, default: 0), "type match"); in check_assert_single_range_s64()
H A Dtest_cls_redirect.c92 _Static_assert(
97 _Static_assert(
269 _Static_assert(sizeof(struct iphdr) == 20, "iphdr must be 20 bytes"); in pkt_ipv4_checksum()
H A Dtest_cls_redirect_dynptr.c86 _Static_assert(
91 _Static_assert(
177 _Static_assert(sizeof(struct iphdr) == 20, "iphdr must be 20 bytes"); in pkt_ipv4_checksum()
H A Dmap_ptr_kern.c11 _Static_assert(MAX_ENTRIES < LOOP_BOUND, "MAX_ENTRIES must be < LOOP_BOUND");
/linux/arch/x86/include/uapi/asm/
H A Delf.h14 _Static_assert(sizeof(struct x86_xfeat_component) % 4 == 0, "x86_xfeat_component is not aligned");
/linux/tools/testing/selftests/kvm/include/
H A Dkvm_util_types.h14 #define __kvm_static_assert(expr, msg, ...) _Static_assert(expr, msg)
/linux/include/linux/
H A Dbuild_bug.h78 #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
H A Dcompiler.h260 #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
H A Doverflow.h402 _Static_assert(__builtin_constant_p(count), \
/linux/tools/include/linux/
H A Dbuild_bug.h79 #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
/linux/tools/lib/bpf/
H A Dbpf_helpers.h192 _Static_assert(!__builtin_constant_p(!!sym), \
198 _Static_assert(__builtin_has_attribute (*sym, __weak__), \
/linux/scripts/mod/
H A Dmodpost.h57 _Static_assert(sizeof(x) == 1 || sizeof(x) == 2 || \
/linux/tools/perf/util/bpf_skel/
H A Daugmented_raw_syscalls.bpf.c178_Static_assert(is_power_of_2(sizeof(augmented_arg->value)), "sizeof(augmented_arg->value) needs to… in augmented_arg__read_str()
216_Static_assert(is_power_of_2(sizeof(augmented_args->arg.saddr)), "sizeof(augmented_args->arg.saddr… in sys_enter_connect()
H A Dsample_filter.bpf.c83 _Static_assert((1 << (PBF_TERM_##x - PBF_TERM_SAMPLE_START)) == PERF_SAMPLE_##x, \ in perf_get_sample()
/linux/tools/perf/util/
H A Dhashmap.h54 * type is verified by hashmap_cast_ptr using _Static_assert;
116 _Static_assert((__builtin_constant_p((p)) ? (p) == NULL : 0) || \
/linux/scripts/include/
H A Dlist.h21 _Static_assert(__same_type(*(ptr), ((type *)0)->member) || \
/linux/tools/testing/selftests/kvm/lib/
H A Dtest_util.c283 _Static_assert(ARRAY_SIZE(aliases) == NUM_SRC_TYPES, in vm_mem_backing_src_alias()
H A Dkvm_util.c221 _Static_assert(sizeof(strings)/sizeof(char *) == NUM_VM_MODES, in vm_guest_mode_string()
247 _Static_assert(sizeof(vm_guest_mode_params)/sizeof(struct vm_guest_mode_params) == NUM_VM_MODES,

12