| /linux/include/linux/ |
| H A D | srcutiny.h | 138 idx = ((data_race(READ_ONCE(ssp->srcu_idx)) + 1) & 0x2) >> 1; in srcu_torture_stats_print() 141 data_race(READ_ONCE(ssp->srcu_lock_nesting[!idx])), in srcu_torture_stats_print() 142 data_race(READ_ONCE(ssp->srcu_lock_nesting[idx])), in srcu_torture_stats_print() 143 data_race(READ_ONCE(ssp->srcu_idx)), in srcu_torture_stats_print() 144 data_race(READ_ONCE(ssp->srcu_idx_max))); in srcu_torture_stats_print()
|
| H A D | page-flags.h | 954 return page_type_has_type(data_race(page->page_type)); in page_has_type() 960 return data_race(folio->page.page_type >> 24) == PGTY_##lname; \ 966 VM_BUG_ON_FOLIO(data_race(folio->page.page_type) != UINT_MAX, \ 982 return data_race(page->page_type >> 24) == PGTY_##lname; \ 988 VM_BUG_ON_PAGE(data_race(page->page_type) != UINT_MAX, page); \
|
| H A D | compiler.h | 190 #define data_race(expr) \ macro
|
| H A D | console.h | 530 return data_race(READ_ONCE(con->flags)); in console_srcu_read_flags()
|
| /linux/tools/memory-model/Documentation/ |
| H A D | access-marking.txt | 20 2. Data-race marking, for example, "data_race(a = b);" 37 WRITE_ONCE(a, b + data_race(c + d) + READ_ONCE(e)); 39 Neither plain C-language accesses nor data_race() (#1 and #2 above) place 45 preferable to data_race(), which in turn is usually preferable to plain 47 data_race(READ_ONCE(a)), which will both restrict compiler optimizations 52 race with one of data_race(), READ_ONCE(), or WRITE_ONCE(), will prevent 56 ill-considered additions of data_race(), READ_ONCE(), and WRITE_ONCE() 60 data_race() and even plain C-language accesses is preferable to 64 Use of the data_race() Macro 67 Here are some situations where data_race() should be used instead of [all …]
|
| /linux/security/tomoyo/ |
| H A D | util.c | 1069 perm = data_race(container_of(ptr, struct tomoyo_path_acl, head)->perm); in tomoyo_domain_quota_is_ok() 1072 perm = data_race(container_of(ptr, struct tomoyo_path2_acl, head)->perm); in tomoyo_domain_quota_is_ok() 1075 perm = data_race(container_of(ptr, struct tomoyo_path_number_acl, head) in tomoyo_domain_quota_is_ok() 1079 perm = data_race(container_of(ptr, struct tomoyo_mkdev_acl, head)->perm); in tomoyo_domain_quota_is_ok() 1082 perm = data_race(container_of(ptr, struct tomoyo_inet_acl, head)->perm); in tomoyo_domain_quota_is_ok() 1085 perm = data_race(container_of(ptr, struct tomoyo_unix_acl, head)->perm); in tomoyo_domain_quota_is_ok()
|
| /linux/tools/virtio/linux/ |
| H A D | compiler.h | 36 #define data_race(expr) \ macro
|
| /linux/lib/ |
| H A D | cmpxchg-emu.c | 41 ret = data_race(cmpxchg(p32, old32.w, new32.w)); // Overridden above. in cmpxchg_emu_u8()
|
| H A D | stackdepot.c | 610 if (data_race(stackdepot_memcmp(entries, stack->entries, size))) in find_stack() 851 seq_printf(seq, "pools: %d\n", data_race(pools_num)); in stats_show() 853 seq_printf(seq, "%s: %ld\n", counter_names[i], data_race(counters[i])); in stats_show()
|
| H A D | group_cpus.c | 388 cpumask_copy(npresmsk, data_race(cpu_present_mask)); in group_cpus_evenly()
|
| /linux/Documentation/translations/zh_CN/dev-tools/ |
| H A D | kcsan.rst | 88 * KCSAN 支持使用 ``data_race(expr)`` 注解,这个注解告诉 KCSAN 任何由访问 92 * 与 ``data_race(...)`` 相似,可以使用类型限定符 ``__data_racy`` 来标记一个变量
|
| /linux/io_uring/ |
| H A D | refs.h | 22 WARN_ON_ONCE(!(data_race(req->flags) & REQ_F_REFCOUNT)); in req_ref_put_and_test_atomic()
|
| H A D | fdinfo.c | 87 seq_printf(m, "CachedSqHead:\t%u\n", data_race(ctx->cached_sq_head)); in __io_uring_show_fdinfo() 91 seq_printf(m, "CachedCqTail:\t%u\n", data_race(ctx->cached_cq_tail)); in __io_uring_show_fdinfo()
|
| /linux/arch/powerpc/kernel/ |
| H A D | interrupt.c | 172 if (!data_race(warned)) { in check_return_regs_valid() 173 data_race(warned = true); in check_return_regs_valid()
|
| /linux/mm/ |
| H A D | page_io.c | 457 if (data_race(sis->flags & SWP_FS_OPS)) in __swap_writepage() 464 else if (data_race(sis->flags & SWP_SYNCHRONOUS_IO)) in __swap_writepage() 643 if (data_race(sis->flags & SWP_FS_OPS)) { in swap_read_folio()
|
| H A D | vma_init.c | 59 data_race(memcpy(&dest->shared, &src->shared, sizeof(dest->shared))); in vm_area_init_from()
|
| H A D | slab.h | 145 if (data_race(page->page_type >> 24) != PGTY_slab) in page_slab()
|
| /linux/kernel/kcsan/ |
| H A D | debugfs.c | 157 if (data_race(report_filterlist.used == report_filterlist.size)) { in insert_report_filterlist()
|
| /linux/kernel/locking/ |
| H A D | locktorture.c | 1007 long max = 0, min = statp ? data_race(statp[0].n_lock_acquired) : 0; in __torture_print_stats() 1012 if (data_race(statp[i].n_lock_fail)) in __torture_print_stats() 1014 cur = data_race(statp[i].n_lock_acquired); in __torture_print_stats()
|
| /linux/kernel/rcu/ |
| H A D | srcutree.c | 2063 u0 = data_race(atomic_long_read(&sdp->srcu_ctrs[!idx].srcu_unlocks)); in srcu_torture_stats_print() 2064 u1 = data_race(atomic_long_read(&sdp->srcu_ctrs[idx].srcu_unlocks)); in srcu_torture_stats_print() 2072 l0 = data_race(atomic_long_read(&sdp->srcu_ctrs[!idx].srcu_locks)); in srcu_torture_stats_print() 2073 l1 = data_race(atomic_long_read(&sdp->srcu_ctrs[idx].srcu_locks)); in srcu_torture_stats_print()
|
| /linux/fs/jbd2/ |
| H A D | transaction.c | 344 if (!data_race(journal->j_running_transaction)) { in start_this_handle() 1515 if (data_race(jh->b_transaction != transaction && in jbd2_journal_dirty_metadata() 1522 if (data_race(jh->b_modified == 1)) { in jbd2_journal_dirty_metadata() 1524 if (data_race(jh->b_transaction == transaction && in jbd2_journal_dirty_metadata()
|
| /linux/kernel/irq/ |
| H A D | irqdesc.c | 927 return data_race(desc->tot_count); in kstat_irqs_desc() 930 sum += data_race(per_cpu(desc->kstat_irqs->cnt, cpu)); in kstat_irqs_desc()
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | wmi.c | 159 if (!data_race(priv->initialized)) { in ath9k_wmi_event_tasklet()
|
| /linux/mm/kfence/ |
| H A D | core.c | 1243 distance = addr - data_race(meta->addr + meta->size); in kfence_handle_page_fault() 1249 if (!to_report || distance > data_race(meta->addr) - addr) in kfence_handle_page_fault()
|
| /linux/net/9p/ |
| H A D | trans_fd.c | 740 data_race(ts->rd->f_flags |= O_NONBLOCK); in p9_fd_open() 746 data_race(ts->wr->f_flags |= O_NONBLOCK); in p9_fd_open()
|