Home
last modified time | relevance | path

Searched refs:_Static_assert (Results 1 – 25 of 35) 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_dsq_move_set_slice()")
116 _Static_assert(false, "__COMPAT_scx_bpf_dispatch_from_dsq_set_vtime() renamed to __COMPAT_scx_bpf_dsq_move_set_vtime()")
119 _Static_assert(fals
[all...]
H A Dcommon.bpf.h45 _Static_assert(SCX_DSQ_FLAG_BUILTIN, in ___vmlinux_h_sanity_check___()
236 _Static_assert(sizeof(base) >= sizeof((base) member), \
/linux/scripts/gendwarfksyms/examples/
H A Dkabi_ex.h193 _Static_assert(sizeof(struct ex2a) == sizeof(struct ex2b), "ex2a size doesn't match ex2b");
213 _Static_assert(sizeof(struct ex2a) == sizeof(struct ex2c), "ex2a size doesn't match ex2c");
246 _Static_assert(sizeof(struct ex3a) == sizeof(struct ex3b), "ex3a size doesn't match ex3b");
260 _Static_assert(sizeof(struct ex3a) == sizeof(struct ex3c), "ex3a size doesn't match ex3c");
H A Dkabi.h51 _Static_assert( \
55 _Static_assert( \
/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.h433 _Static_assert(
437 _Static_assert(
441 _Static_assert(AMD_SRIOV_MSG_RESERVE_UCODE % 4 == 0,
444 _Static_assert(AMD_SRIOV_MSG_RESERVE_UCODE > AMD_SRIOV_UCODE_ID__MAX,
/linux/kernel/bpf/preload/iterators/
H A Diterators.lskel-big-endian.h430 #define _Static_assert static_assert in iterators_bpf__assert() macro
433 #undef _Static_assert in iterators_bpf__assert()
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()
/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.h9 * #defines static_assert() as a direct alias to _Static_assert() (see
14 #define __kvm_static_assert(expr, msg, ...) _Static_assert(expr, msg)
/linux/include/linux/
H A Dbuild_bug.h64 * static_assert() is a wrapper for the C11 _Static_assert, with a
78 #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
H A Dcompiler.h197 #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.h64 * static_assert() is a wrapper for the C11 _Static_assert, with a
79 #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
H A Dcompiler.h251 #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
/linux/lib/tests/
H A Dlongest_symbol_kunit.c33 _Static_assert(sizeof(__stringify(LONGEST_SYM_NAME)) == KSYM_NAME_LEN,
H A Drandstruct_kunit.c36 _Static_assert(MEMBER_NAME_MAX == 8, "Number of test members changed?!");
/linux/tools/perf/util/
H A Dthread.c461 _Static_assert(offsetof(Elf32_Ehdr, e_machine) == 18, "Unexpected offset"); in read_proc_e_machine_for_pid()
462 _Static_assert(offsetof(Elf64_Ehdr, e_machine) == 18, "Unexpected offset"); in read_proc_e_machine_for_pid()
474 _Static_assert(0 == EM_NONE, "Unexpected EM_NONE"); in thread__e_machine_callback()
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/tools/testing/selftests/bpf/progs/
H A Dres_spin_lock.c92 _Static_assert(ARRAY_SIZE(((struct rqspinlock_held){}).locks) == 31, in res_spin_lock_test_held_lock_max()
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()
/linux/tools/lib/bpf/
H A Dbpf_helpers.h200 _Static_assert(!__builtin_constant_p(!!sym), \
206 _Static_assert(__builtin_has_attribute (*sym, __weak__), \
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/mod/
H A Dmodpost.h57 _Static_assert(sizeof(x) == 1 || sizeof(x) == 2 || \
/linux/tools/perf/util/bpf_skel/
H A Dsample_filter.bpf.c83 _Static_assert((1 << (PBF_TERM_##x - PBF_TERM_SAMPLE_START)) == PERF_SAMPLE_##x, \ in perf_get_sample()

12