/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | mremap_dontunmap.c | 30 #define BUG_ON(condition, description) \ macro 48 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in kernel_support_for_mremap_dontunmap() 58 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap() 62 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap() 71 BUG_ON(size & (page_size - 1), in check_region_contains_byte() 73 BUG_ON((unsigned long)addr & (page_size - 1), in check_region_contains_byte() 102 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in mremap_dontunmap_simple() 110 BUG_ON(dest_mapping == MAP_FAILED, "mremap"); in mremap_dontunmap_simple() 114 BUG_ON(check_region_contains_byte in mremap_dontunmap_simple() 117 BUG_ON(check_region_contains_byt in mremap_dontunmap_simple() [all...] |
H A D | map_populate.c | 22 #define BUG_ON(condition, description) \ macro 36 BUG_ON(ret <= 0, "read(sock)"); in parent_f() 40 BUG_ON(ret, "msync()"); in parent_f() 43 BUG_ON(ret <= 0, "write(sock)"); in parent_f() 46 BUG_ON(!WIFEXITED(status), "child in unexpected state"); in parent_f() 57 BUG_ON(smap == MAP_FAILED, "mmap()"); in child_f() 59 BUG_ON(*smap != 0xdeadbabe, "MAP_PRIVATE | MAP_POPULATE changed file"); in child_f() 62 BUG_ON(ret <= 0, "write(sock)"); in child_f() 65 BUG_ON(ret <= 0, "read(sock)"); in child_f() 67 BUG_ON(*sma in child_f() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | mremap_dontunmap.c | 33 #define BUG_ON(condition, description) \ macro 51 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in kernel_support_for_mremap_dontunmap() 61 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap() 65 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap() 74 BUG_ON(size & (page_size - 1), in check_region_contains_byte() 76 BUG_ON((unsigned long)addr & (page_size - 1), in check_region_contains_byte() 105 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in mremap_dontunmap_simple() 113 BUG_ON(dest_mapping == MAP_FAILED, "mremap"); in mremap_dontunmap_simple() 117 BUG_ON(check_region_contains_byte in mremap_dontunmap_simple() 120 BUG_ON(check_region_contains_byt in mremap_dontunmap_simple() [all...] |
H A D | map_populate.c | 24 #define BUG_ON(condition, description) \ macro 38 BUG_ON(ret <= 0, "read(sock)"); in parent_f() 42 BUG_ON(ret, "msync()"); in parent_f() 45 BUG_ON(ret <= 0, "write(sock)"); in parent_f() 48 BUG_ON(!WIFEXITED(status), "child in unexpected state"); in parent_f() 59 BUG_ON(smap == MAP_FAILED, "mmap()"); in child_f() 61 BUG_ON(*smap != 0xdeadbabe, "MAP_PRIVATE | MAP_POPULATE changed file"); in child_f() 64 BUG_ON(ret <= 0, "write(sock)"); in child_f() 67 BUG_ON(ret <= 0, "read(sock)"); in child_f() 69 BUG_ON(*sma in child_f() [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | atomic64_test.c | 49 BUG_ON(atomic##bit##_##op(val, &v) != r); \ 50 BUG_ON(atomic##bit##_read(&v) != r); \ 58 BUG_ON(atomic##bit##_##op(val, &v) != v0); \ 59 BUG_ON(atomic##bit##_read(&v) != r); \ 75 BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ 76 BUG_ON(atomic##bit##_read(&v) != expect); \ 159 BUG_ON(v.counter != r); in test_atomic64() 163 BUG_ON(v.counter != r); in test_atomic64() 164 BUG_ON(atomic64_read(&v) != r); in test_atomic64() 193 BUG_ON( in test_atomic64() [all...] |
H A D | lru_cache.c | 29 BUG_ON(!lc); \ 30 BUG_ON(!lc->nr_elements); \ 31 BUG_ON(test_and_set_bit(__LC_PARANOIA, &lc->flags)); \ 43 BUG_ON(i >= lc_->nr_elements); \ 44 BUG_ON(lc_->lc_element[i] != e_); } while (0) 254 BUG_ON(!lc); in __lc_find() 255 BUG_ON(!lc->nr_elements); in __lc_find() 313 BUG_ON(e->refcnt); in lc_del() 430 BUG_ON(!e); in __lc_get() 433 BUG_ON( in __lc_get() [all...] |
H A D | plist.c | 151 BUG_ON(plist_head_empty(head)); in plist_requeue() 152 BUG_ON(plist_node_empty(node)); in plist_requeue() 188 BUG_ON(nr_expect != 0); in plist_test_check() 199 BUG_ON(!list_empty(&node_pos->prio_list)); in plist_test_check() 203 BUG_ON(prio_pos->prio > node_pos->prio); in plist_test_check() 204 BUG_ON(prio_pos->prio_list.next != &node_pos->prio_list); in plist_test_check() 208 BUG_ON(nr_expect != 0); in plist_test_check() 209 BUG_ON(prio_pos->prio_list.next != &first->prio_list); in plist_test_check() 217 BUG_ON(node->prio == plist_next(node)->prio); in plist_test_requeue()
|
/kernel/linux/linux-6.6/lib/ |
H A D | atomic64_test.c | 49 BUG_ON(atomic##bit##_##op(val, &v) != r); \ 50 BUG_ON(atomic##bit##_read(&v) != r); \ 58 BUG_ON(atomic##bit##_##op(val, &v) != v0); \ 59 BUG_ON(atomic##bit##_read(&v) != r); \ 75 BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ 76 BUG_ON(atomic##bit##_read(&v) != expect); \ 159 BUG_ON(v.counter != r); in test_atomic64() 163 BUG_ON(v.counter != r); in test_atomic64() 164 BUG_ON(atomic64_read(&v) != r); in test_atomic64() 193 BUG_ON( in test_atomic64() [all...] |
/kernel/linux/linux-6.6/mm/ |
H A D | page_table_check.c | 53 BUG_ON(!page_ext); in get_page_table_check() 74 BUG_ON(PageSlab(page)); in page_table_check_clear() 81 BUG_ON(atomic_read(&ptc->file_map_count)); in page_table_check_clear() 82 BUG_ON(atomic_dec_return(&ptc->anon_map_count) < 0); in page_table_check_clear() 84 BUG_ON(atomic_read(&ptc->anon_map_count)); in page_table_check_clear() 85 BUG_ON(atomic_dec_return(&ptc->file_map_count) < 0); in page_table_check_clear() 111 BUG_ON(PageSlab(page)); in page_table_check_set() 118 BUG_ON(atomic_read(&ptc->file_map_count)); in page_table_check_set() 119 BUG_ON(atomic_inc_return(&ptc->anon_map_count) > 1 && rw); in page_table_check_set() 121 BUG_ON(atomic_rea in page_table_check_set() [all...] |
H A D | userfaultfd.c | 427 BUG_ON(dst_addr >= dst_start + len); in mfill_atomic_hugetlb() 467 BUG_ON(!folio); in mfill_atomic_hugetlb() 489 BUG_ON(folio); in mfill_atomic_hugetlb() 508 BUG_ON(copied < 0); in mfill_atomic_hugetlb() 509 BUG_ON(err > 0); in mfill_atomic_hugetlb() 510 BUG_ON(!copied && !err); in mfill_atomic_hugetlb() 584 BUG_ON(dst_start & ~PAGE_MASK); in mfill_atomic() 585 BUG_ON(len & ~PAGE_MASK); in mfill_atomic() 588 BUG_ON(src_start + len <= src_start); in mfill_atomic() 589 BUG_ON(dst_star in mfill_atomic() [all...] |
/kernel/linux/linux-5.10/net/mac802154/ |
H A D | mib.c | 29 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_dev_set_page_channel() 46 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_get_params() 62 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_set_params() 78 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_key() 93 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_del_key() 108 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_dev() 122 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_del_dev() 138 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_devkey() 154 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_del_devkey() 169 BUG_ON(de in mac802154_add_seclevel() [all...] |
/kernel/linux/linux-6.6/net/mac802154/ |
H A D | mib.c | 29 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_dev_set_page_channel() 46 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_get_params() 62 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_set_params() 78 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_key() 93 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_del_key() 108 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_dev() 122 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_del_dev() 138 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_devkey() 154 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_del_devkey() 169 BUG_ON(de in mac802154_add_seclevel() [all...] |
/kernel/linux/linux-5.10/mm/ |
H A D | userfaultfd.c | 280 BUG_ON(dst_addr >= dst_start + len); in __mcopy_atomic_hugetlb() 321 BUG_ON(!page); in __mcopy_atomic_hugetlb() 336 BUG_ON(page); in __mcopy_atomic_hugetlb() 401 BUG_ON(copied < 0); in __mcopy_atomic_hugetlb() 402 BUG_ON(err > 0); in __mcopy_atomic_hugetlb() 403 BUG_ON(!copied && !err); in __mcopy_atomic_hugetlb() 478 BUG_ON(dst_start & ~PAGE_MASK); in __mcopy_atomic() 479 BUG_ON(len & ~PAGE_MASK); in __mcopy_atomic() 482 BUG_ON(src_start + len <= src_start); in __mcopy_atomic() 483 BUG_ON(dst_star in __mcopy_atomic() [all...] |
/kernel/linux/linux-6.6/net/ceph/ |
H A D | messenger.c | 102 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_clear() 109 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_set() 116 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_test() 124 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_test_and_clear() 132 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_test_and_set() 213 BUG_ON(ceph_msg_cache); in ceph_msgr_slab_init() 223 BUG_ON(!ceph_msg_cache); in ceph_msgr_slab_exit() 235 BUG_ON(!ceph_zero_page); in _ceph_msgr_exit() 247 BUG_ON(ceph_zero_page); in ceph_msgr_init() 267 BUG_ON(ceph_msgr_w in ceph_msgr_exit() [all...] |
/kernel/linux/linux-5.10/tools/testing/radix-tree/ |
H A D | idr-test.c | 175 BUG_ON(id < 0); in idr_u32_cb() 176 BUG_ON(ptr != DUMMY_PTR); in idr_u32_cb() 187 BUG_ON(idr_alloc_u32(idr, DUMMY_PTR, &id, id, GFP_KERNEL)); in idr_u32_test1() 188 BUG_ON(id != handle); in idr_u32_test1() 189 BUG_ON(idr_alloc_u32(idr, DUMMY_PTR, &id, id, GFP_KERNEL) != -ENOSPC); in idr_u32_test1() 190 BUG_ON(id != handle); in idr_u32_test1() 195 BUG_ON(ptr != NULL); in idr_u32_test1() 196 BUG_ON(sid != 0); in idr_u32_test1() 198 BUG_ON(ptr != DUMMY_PTR); in idr_u32_test1() 199 BUG_ON(si in idr_u32_test1() [all...] |
/kernel/linux/linux-6.6/tools/testing/radix-tree/ |
H A D | idr-test.c | 175 BUG_ON(id < 0); in idr_u32_cb() 176 BUG_ON(ptr != DUMMY_PTR); in idr_u32_cb() 187 BUG_ON(idr_alloc_u32(idr, DUMMY_PTR, &id, id, GFP_KERNEL)); in idr_u32_test1() 188 BUG_ON(id != handle); in idr_u32_test1() 189 BUG_ON(idr_alloc_u32(idr, DUMMY_PTR, &id, id, GFP_KERNEL) != -ENOSPC); in idr_u32_test1() 190 BUG_ON(id != handle); in idr_u32_test1() 195 BUG_ON(ptr != NULL); in idr_u32_test1() 196 BUG_ON(sid != 0); in idr_u32_test1() 198 BUG_ON(ptr != DUMMY_PTR); in idr_u32_test1() 199 BUG_ON(si in idr_u32_test1() [all...] |
/kernel/linux/linux-5.10/tools/perf/bench/ |
H A D | sched-pipe.c | 63 BUG_ON(ret != sizeof(int)); in worker_thread() 65 BUG_ON(ret != sizeof(int)); in worker_thread() 68 BUG_ON(ret != sizeof(int)); in worker_thread() 70 BUG_ON(ret != sizeof(int)); in worker_thread() 96 BUG_ON(pipe(pipe_1)); in bench_sched_pipe() 97 BUG_ON(pipe(pipe_2)); in bench_sched_pipe() 122 BUG_ON(ret); in bench_sched_pipe() 129 BUG_ON(ret); in bench_sched_pipe()
|
/kernel/linux/linux-6.6/tools/perf/bench/ |
H A D | sched-pipe.c | 63 BUG_ON(ret != sizeof(int)); in worker_thread() 65 BUG_ON(ret != sizeof(int)); in worker_thread() 68 BUG_ON(ret != sizeof(int)); in worker_thread() 70 BUG_ON(ret != sizeof(int)); in worker_thread() 96 BUG_ON(pipe(pipe_1)); in bench_sched_pipe() 97 BUG_ON(pipe(pipe_2)); in bench_sched_pipe() 122 BUG_ON(ret); in bench_sched_pipe() 129 BUG_ON(ret); in bench_sched_pipe()
|
/kernel/linux/linux-5.10/fs/ntfs/ |
H A D | aops.c | 130 BUG_ON(!recs); in ntfs_end_buffer_async_read() 186 BUG_ON(!ni->runlist.rl && !ni->mft_no && !NInoAttr(ni)); in ntfs_read_block() 199 BUG_ON(!bh); in ntfs_read_block() 391 BUG_ON(!PageLocked(page)); in ntfs_readpage() 421 BUG_ON(ni->type != AT_DATA); in ntfs_readpage() 427 BUG_ON(ni->type != AT_DATA); in ntfs_readpage() 428 BUG_ON(ni->name_len); in ntfs_readpage() 555 BUG_ON(!NInoNonResident(ni)); in ntfs_write_block() 556 BUG_ON(NInoMstProtected(ni)); in ntfs_write_block() 560 BUG_ON(!PageUptodat in ntfs_write_block() [all...] |
/kernel/linux/linux-6.6/fs/ntfs/ |
H A D | aops.c | 130 BUG_ON(!recs); in ntfs_end_buffer_async_read() 186 BUG_ON(!ni->runlist.rl && !ni->mft_no && !NInoAttr(ni)); in ntfs_read_block() 199 BUG_ON(!bh); in ntfs_read_block() 392 BUG_ON(!PageLocked(page)); in ntfs_read_folio() 422 BUG_ON(ni->type != AT_DATA); in ntfs_read_folio() 428 BUG_ON(ni->type != AT_DATA); in ntfs_read_folio() 429 BUG_ON(ni->name_len); in ntfs_read_folio() 556 BUG_ON(!NInoNonResident(ni)); in ntfs_write_block() 557 BUG_ON(NInoMstProtected(ni)); in ntfs_write_block() 561 BUG_ON(!PageUptodat in ntfs_write_block() [all...] |
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
H A D | vga.h | 25 BUG_ON((long) addr >= 0); in scr_writew() 32 BUG_ON((long) addr >= 0); in scr_readw() 39 BUG_ON((long) p >= 0); in scr_memsetw() 46 BUG_ON((long) d >= 0); in scr_memcpyw() 53 BUG_ON((long) d >= 0); in scr_memmovew()
|
/kernel/linux/linux-6.6/arch/sparc/include/asm/ |
H A D | vga.h | 25 BUG_ON((long) addr >= 0); in scr_writew() 32 BUG_ON((long) addr >= 0); in scr_readw() 39 BUG_ON((long) p >= 0); in scr_memsetw() 46 BUG_ON((long) d >= 0); in scr_memcpyw() 53 BUG_ON((long) d >= 0); in scr_memmovew()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wlcore/ |
H A D | hw_ops.h | 18 BUG_ON(1); in wlcore_hw_calc_tx_blocks() 28 BUG_ON(1); in wlcore_hw_set_tx_desc_blocks() 39 BUG_ON(1); in wlcore_hw_set_tx_desc_data_len() 49 BUG_ON(1); in wlcore_hw_get_rx_buf_align() 67 BUG_ON(1); in wlcore_hw_get_rx_packet_len() 99 BUG_ON(!wl->ops->convert_fw_status); in wlcore_hw_convert_fw_status() 108 BUG_ON(1); in wlcore_hw_sta_get_ap_rate_mask() 127 BUG_ON(1); in wlcore_hw_set_tx_desc_csum() 173 BUG_ON(1); in wlcore_hw_get_spare_blocks() 185 BUG_ON( in wlcore_hw_set_key() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ti/wlcore/ |
H A D | hw_ops.h | 18 BUG_ON(1); in wlcore_hw_calc_tx_blocks() 28 BUG_ON(1); in wlcore_hw_set_tx_desc_blocks() 39 BUG_ON(1); in wlcore_hw_set_tx_desc_data_len() 49 BUG_ON(1); in wlcore_hw_get_rx_buf_align() 67 BUG_ON(1); in wlcore_hw_get_rx_packet_len() 99 BUG_ON(!wl->ops->convert_fw_status); in wlcore_hw_convert_fw_status() 108 BUG_ON(1); in wlcore_hw_sta_get_ap_rate_mask() 127 BUG_ON(1); in wlcore_hw_set_tx_desc_csum() 173 BUG_ON(1); in wlcore_hw_get_spare_blocks() 185 BUG_ON( in wlcore_hw_set_key() [all...] |
/kernel/linux/linux-5.10/net/ceph/ |
H A D | messenger.c | 121 BUG_ON(!con_flag_valid(con_flag)); in con_flag_clear() 128 BUG_ON(!con_flag_valid(con_flag)); in con_flag_set() 135 BUG_ON(!con_flag_valid(con_flag)); in con_flag_test() 143 BUG_ON(!con_flag_valid(con_flag)); in con_flag_test_and_clear() 151 BUG_ON(!con_flag_valid(con_flag)); in con_flag_test_and_set() 235 BUG_ON(ceph_msg_cache); in ceph_msgr_slab_init() 245 BUG_ON(!ceph_msg_cache); in ceph_msgr_slab_exit() 257 BUG_ON(zero_page == NULL); in _ceph_msgr_exit() 269 BUG_ON(zero_page != NULL); in ceph_msgr_init() 289 BUG_ON(ceph_msgr_w in ceph_msgr_exit() [all...] |