SCX_BUG_ON
SCX_BUG_ON(!n, "btf__name_by_offset()");
SCX_BUG_ON(len <= 0, "read failed (%ld)", len);
SCX_BUG_ON(errno == ERANGE || endptr == buf ||
SCX_BUG_ON(!__COMPAT_struct_has_field("sched_ext_ops", "dump"), \
SCX_BUG_ON(!__skel, "Could not open " #__scx_name); \
SCX_BUG_ON(__scx_name##__load((__skel)), "Failed to load skel"); \
SCX_BUG_ON(!__COMPAT_vmlinux_btf, "btf__load_vmlinux_btf()");
SCX_BUG_ON(__scx_name##__attach((__skel)), "Failed to attach skel"); \
SCX_BUG_ON(!__link, "Failed to attach struct_ops"); \
SCX_BUG_ON(!t, "btf__type_by_id(%d)", tid);
SCX_BUG_ON(!n, "btf__name_by_offset()");
SCX_BUG_ON(!n, "btf__name_by_offset()");
SCX_BUG_ON(!t, "btf__type_by_id(%d)", tid);
SCX_BUG_ON(!cpuset, "Failed to allocate cpuset");
SCX_BUG_ON(sched_setaffinity(0, cpuset_size, cpuset),
SCX_BUG_ON(i == j,
SCX_BUG_ON(skel->rodata_pair_cpu->pair_cpu[j] >= 0,
SCX_BUG_ON(outer_fd < 0, "Failed to get outer_fd: %d", outer_fd);
SCX_BUG_ON(inner_fd < 0, "Failed to get inner_fd: %d",
SCX_BUG_ON(bpf_map_update_elem(outer_fd, &i, &inner_fd, BPF_ANY),
SCX_BUG_ON(err, "Failed to set scheduler to SCHED_EXT");
SCX_BUG_ON(err, "Failed to prefault and lock address space");
SCX_BUG_ON(spawn_stats_thread(), "Failed to spawn stats thread");
SCX_BUG_ON(ret, "Failed to set sched to sched_ext");
SCX_BUG_ON(ret, "Failed to reset sched to normal");
SCX_BUG_ON(!test_valid(test), "Invalid test found");
SCX_BUG_ON(__scx_num_tests >= MAX_SCX_TESTS, "Maximum tests exceeded");
SCX_BUG_ON(!run_called || cleanup_called, "Wrong callbacks invoked");