Home
last modified time | relevance | path

Searched refs:data_race (Results 1 – 25 of 52) sorted by relevance

123

/linux/include/linux/
H A Dsrcutiny.h138 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 Dpage-flags.h954 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 Dcompiler.h190 #define data_race(expr) \ macro
H A Dconsole.h530 return data_race(READ_ONCE(con->flags)); in console_srcu_read_flags()
/linux/tools/memory-model/Documentation/
H A Daccess-marking.txt20 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 Dutil.c1069 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 Dcompiler.h36 #define data_race(expr) \ macro
/linux/lib/
H A Dcmpxchg-emu.c41 ret = data_race(cmpxchg(p32, old32.w, new32.w)); // Overridden above. in cmpxchg_emu_u8()
H A Dstackdepot.c610 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 Dgroup_cpus.c388 cpumask_copy(npresmsk, data_race(cpu_present_mask)); in group_cpus_evenly()
/linux/Documentation/translations/zh_CN/dev-tools/
H A Dkcsan.rst88 * KCSAN 支持使用 ``data_race(expr)`` 注解,这个注解告诉 KCSAN 任何由访问
92 * 与 ``data_race(...)`` 相似,可以使用类型限定符 ``__data_racy`` 来标记一个变量
/linux/io_uring/
H A Drefs.h22 WARN_ON_ONCE(!(data_race(req->flags) & REQ_F_REFCOUNT)); in req_ref_put_and_test_atomic()
H A Dfdinfo.c87 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 Dinterrupt.c172 if (!data_race(warned)) { in check_return_regs_valid()
173 data_race(warned = true); in check_return_regs_valid()
/linux/mm/
H A Dpage_io.c457 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 Dvma_init.c59 data_race(memcpy(&dest->shared, &src->shared, sizeof(dest->shared))); in vm_area_init_from()
H A Dslab.h145 if (data_race(page->page_type >> 24) != PGTY_slab) in page_slab()
/linux/kernel/kcsan/
H A Ddebugfs.c157 if (data_race(report_filterlist.used == report_filterlist.size)) { in insert_report_filterlist()
/linux/kernel/locking/
H A Dlocktorture.c1007 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 Dsrcutree.c2063 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 Dtransaction.c344 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 Dirqdesc.c927 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 Dwmi.c159 if (!data_race(priv->initialized)) { in ath9k_wmi_event_tasklet()
/linux/mm/kfence/
H A Dcore.c1243 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 Dtrans_fd.c740 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()

123