/tools/testing/selftests/vm/ |
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(*smap == 0x22222BAD, "MAP_POPULATE didn't COW private page"); in child_f() [all …]
|
/tools/perf/bench/ |
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()
|
D | numa.c | 269 BUG_ON(ret); in bind_to_cpu() 279 BUG_ON(target_cpu < 0 || target_cpu >= g->p.nr_cpus); in bind_to_cpu() 284 BUG_ON(ret); in bind_to_cpu() 296 BUG_ON(cpus_per_node * nr_numa_nodes() != g->p.nr_cpus); in bind_to_node() 297 BUG_ON(!cpus_per_node); in bind_to_node() 300 BUG_ON(ret); in bind_to_node() 311 BUG_ON(cpu_stop > g->p.nr_cpus); in bind_to_node() 318 BUG_ON(ret); in bind_to_node() 328 BUG_ON(ret); in bind_to_cpumask() 337 BUG_ON(ret); in mempol_restore() [all …]
|
D | mem-functions.c | 89 BUG_ON(ret != sizeof(u64)); in get_cycles() 163 BUG_ON(1); in __bench_mem_function() 262 BUG_ON(gettimeofday(&tv_start, NULL)); in do_memcpy_gettimeofday() 265 BUG_ON(gettimeofday(&tv_end, NULL)); in do_memcpy_gettimeofday() 336 BUG_ON(gettimeofday(&tv_start, NULL)); in do_memset_gettimeofday() 339 BUG_ON(gettimeofday(&tv_end, NULL)); in do_memset_gettimeofday()
|
/tools/testing/radix-tree/ |
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(sid != id); in idr_u32_test1() [all …]
|
D | regression2.c | 120 BUG_ON(!radix_tree_empty(&mt_tree)); in regression2_test()
|
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/ |
D | bug_on.h | 8 #define BUG_ON(x) assert(!(x)) macro 12 #define WARN_ON(x) (BUG_ON(x), false)
|
D | locks.h | 28 BUG_ON(pthread_mutex_lock(&lock->mutex)); in lock_impl_lock() 33 BUG_ON(pthread_mutex_unlock(&lock->mutex)); in lock_impl_unlock() 96 BUG_ON(!__sync_bool_compare_and_swap(&lock->locked, true, false)); in lock_impl_unlock() 106 BUG_ON(!old_locked); in lock_impl_unlock() 201 BUG_ON(prev_count == UINT_MAX); in complete()
|
D | preempt.c | 60 BUG_ON(preempt_disable_count < 0 || preempt_disable_count == INT_MAX); in preempt_disable() 73 BUG_ON(preempt_disable_count < 1); in preempt_enable()
|
D | preempt.h | 56 BUG_ON(preempt_disable_count); in might_sleep()
|
D | percpu.h | 68 BUG_ON(preemptible()); \
|
/tools/include/linux/ |
D | kernel.h | 66 #ifndef BUG_ON 68 #define BUG_ON(cond) do { if (cond) {} } while (0) macro 70 #define BUG_ON(cond) assert(!(cond)) macro 73 #define BUG() BUG_ON(1)
|
D | refcount.h | 48 #define REFCOUNT_WARN(cond, str) BUG_ON(cond)
|
/tools/virtio/linux/ |
D | scatterlist.h | 38 BUG_ON((unsigned long) page & 0x03); in sg_assign_page() 40 BUG_ON(sg_is_chain(sg)); in sg_assign_page() 70 BUG_ON(sg_is_chain(sg)); in sg_page()
|
D | bug.h | 5 #define BUG_ON(__BUG_ON_cond) assert(!(__BUG_ON_cond)) macro
|
/tools/perf/ |
D | builtin-sched.c | 367 BUG_ON(!task->atoms); in get_new_event() 451 BUG_ON((sched->pid_to_task = calloc(pid_max, sizeof(struct task_desc *))) == NULL); in register_pid() 454 BUG_ON((sched->pid_to_task = realloc(sched->pid_to_task, (pid + 1) * in register_pid() 478 BUG_ON(!sched->tasks); in register_pid() 527 BUG_ON(ret); in perf_sched__process_event() 532 BUG_ON(ret); in perf_sched__process_event() 537 BUG_ON(1); in perf_sched__process_event() 548 BUG_ON(err); in get_cpu_usage_nsec_parent() 576 BUG_ON(getrlimit(RLIMIT_NOFILE, &limit) == -1); in self_open_counters() 604 BUG_ON(ret != sizeof(runtime)); in get_cpu_usage_nsec_self() [all …]
|
D | builtin-lock.c | 157 BUG_ON("inserting invalid thread_stat\n"); in thread_stat_insert() 462 BUG_ON("Unknown state of lock sequence found!\n"); in report_lock_acquire_event() 523 BUG_ON("Unknown state of lock sequence found!\n"); in report_lock_acquired_event() 578 BUG_ON("Unknown state of lock sequence found!\n"); in report_lock_contended_event() 623 BUG_ON(seq->read_count < 0); in report_lock_release_event() 637 BUG_ON("Unknown state of lock sequence found!\n"); in report_lock_release_event() 947 BUG_ON(i != rec_argc); in __cmd_record()
|
D | builtin-diff.c | 350 BUG_ON(1); in formula_fprintf() 783 BUG_ON(1); in hists__precompute() 833 BUG_ON(1); in __hist_entry__cmp_compute() 1431 BUG_ON(1); in __hpp__color_compare() 1538 BUG_ON(1); in hpp__entry_pair() 1584 BUG_ON(!dfmt->header); in hpp__header() 1595 BUG_ON(dfmt->header_width <= 0); in hpp__width() 1607 BUG_ON(dfmt->idx >= PERF_HPP_DIFF__MAX_INDEX); in init_header() 1612 BUG_ON(!header); in init_header() 1758 BUG_ON(1); in ui_init()
|
D | builtin-bench.c | 180 BUG_ON(!name); in run_bench()
|
/tools/perf/lib/ |
D | lib.c | 29 BUG_ON((size_t)(buf - buf_start) != n); in ion()
|
/tools/perf/util/ |
D | target.c | 122 BUG_ON(buflen == 0); in target__strerror()
|
D | dso.h | 104 BUG_ON(dso->needs_swap == DSO_SWAP__UNSET); \ 117 BUG_ON(1); \
|
/tools/perf/ui/browsers/ |
D | header.c | 121 BUG_ON(i != argc + 1); in tui__header_window()
|
/tools/testing/scatterlist/linux/ |
D | mm.h | 15 #define BUG_ON(x) assert(!(x)) macro
|
/tools/perf/ui/ |
D | hist.c | 481 BUG_ON(!list_empty(&fmt->list)); in fmt_free() 482 BUG_ON(!list_empty(&fmt->sort_list)); in fmt_free() 702 BUG_ON(fmt->idx >= PERF_HPP__MAX_INDEX); in perf_hpp__reset_width()
|