Home
last modified time | relevance | path

Searched refs:local_read (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.1.9/include/asm-generic/
Dlocal.h29 #define local_read(l) atomic_long_read(&(l)->a) macro
51 #define __local_inc(l) local_set((l), local_read(l) + 1)
52 #define __local_dec(l) local_set((l), local_read(l) - 1)
53 #define __local_add(i,l) local_set((l), local_read(l) + (i))
54 #define __local_sub(i,l) local_set((l), local_read(l) - (i))
Dlocal64.h30 #define local64_read(l) local_read(&(l)->a)
/linux-6.1.9/Documentation/translations/zh_CN/core-api/
Dlocal_ops.rst117 那些本地计数器可以从外部的CPU中读取,以求得计数的总和。请注意,local_read
123 sum += local_read(&per_cpu(counters, cpu));
125 如果你想使用远程local_read来同步CPU之间对资源的访问,必须在写入者和读取者
172 local_read(&per_cpu(counters, cpu)));
/linux-6.1.9/kernel/trace/
Dring_buffer.c636 c = local_read(&t->cnt); in __rb_time_read()
637 top = local_read(&t->top); in __rb_time_read()
638 bottom = local_read(&t->bottom); in __rb_time_read()
639 msb = local_read(&t->msb); in __rb_time_read()
640 } while (c != local_read(&t->cnt)); in __rb_time_read()
691 } while (cnt != local_read(&t->cnt)); in rb_time_set()
716 cnt = local_read(&t->cnt); in rb_time_cmpxchg()
786 commit = local_read(&page->page->commit); in verify_event()
787 write = local_read(&page->write); in verify_event()
855 nest = local_read(&cpu_buffer->committing); in ring_buffer_event_time_stamp()
[all …]
Dtrace_osnoise.c770 int_counter = local_read(&osn_var->int_counter); in get_int_safe_duration()
779 } while (int_counter != local_read(&osn_var->int_counter)); in get_int_safe_duration()
808 int_counter = local_read(&osn_var->int_counter); in set_int_safe_time()
816 } while (int_counter != local_read(&osn_var->int_counter)); in set_int_safe_time()
831 int_counter = local_read(&osn_var->int_counter); in copy_int_safe_time()
839 } while (int_counter != local_read(&osn_var->int_counter)); in copy_int_safe_time()
Dring_buffer_benchmark.c124 commit = local_read(&rpage->commit) & 0xfffff; in read_page()
/linux-6.1.9/include/linux/
Dpart_stat.h78 local_read(&(part_stat_get(part, field)))
80 local_read(&(part_stat_get_cpu(part, field, cpu)))
/linux-6.1.9/arch/alpha/include/asm/
Dlocal.h14 #define local_read(l) atomic_long_read(&(l)->a) macro
71 c = local_read(l); \
/linux-6.1.9/arch/loongarch/include/asm/
Dlocal.h19 #define local_read(l) atomic_long_read(&(l)->a) macro
75 c = local_read(l); \
/linux-6.1.9/kernel/events/
Dring_buffer.c47 handle->wakeup = local_read(&rb->wakeup); in perf_output_get_handle()
76 head = local_read(&rb->head); in perf_output_put_handle()
125 if (unlikely(head != local_read(&rb->head))) { in perf_output_put_handle()
130 if (handle->wakeup != local_read(&rb->wakeup)) in perf_output_put_handle()
185 have_lost = local_read(&rb->lost); in __perf_output_begin()
196 offset = head = local_read(&rb->head); in __perf_output_begin()
232 if (unlikely(head - local_read(&rb->wakeup) > rb->watermark)) in __perf_output_begin()
/linux-6.1.9/arch/x86/include/asm/
Dlocal.h16 #define local_read(l) atomic_long_read(&(l)->a) macro
140 c = local_read((l)); \
/linux-6.1.9/arch/mips/include/asm/
Dlocal.h19 #define local_read(l) atomic_long_read(&(l)->a) macro
113 c = local_read(l); \
/linux-6.1.9/drivers/hwtracing/coresight/
Dcoresight-stm.c268 if (local_read(&drvdata->mode) == CS_MODE_SYSFS) { in stm_disable()
383 if (!(drvdata && local_read(&drvdata->mode))) in stm_generic_set_options()
418 if (!(drvdata && local_read(&drvdata->mode))) in stm_generic_packet()
525 if (!local_read(&drvdata->mode)) { in port_select_show()
551 if (local_read(&drvdata->mode)) { in port_select_store()
572 if (!local_read(&drvdata->mode)) { in port_enable_show()
598 if (local_read(&drvdata->mode)) { in port_enable_store()
Dcoresight-etm3x-core.c467 if (!local_read(&drvdata->mode)) in etm_get_trace_id()
652 mode = local_read(&drvdata->mode); in etm_disable()
704 if (local_read(&etmdrvdata[cpu]->mode)) in etm_starting_cpu()
716 if (local_read(&etmdrvdata[cpu]->mode)) in etm_dying_cpu()
Dcoresight-etm4x-core.c937 mode = local_read(&drvdata->mode); in etm4_disable()
1547 if (local_read(&etmdrvdata[cpu]->mode)) in etm4_starting_cpu()
1559 if (local_read(&etmdrvdata[cpu]->mode)) in etm4_dying_cpu()
1720 if (local_read(&drvdata->mode) && drvdata->save_state) in etm4_cpu_save()
Dcoresight-etm3x-sysfs.c724 if (!local_read(&drvdata->mode)) { in cntr_val_show()
943 if (!local_read(&drvdata->mode)) { in seq_curr_state_show()
/linux-6.1.9/Documentation/core-api/
Dlocal_ops.rst121 the data seen by local_read across CPUs must be considered to be out of order
126 sum += local_read(&per_cpu(counters, cpu));
128 If you want to use a remote local_read to synchronize access to a resource
178 local_read(&per_cpu(counters, cpu)));
/linux-6.1.9/arch/x86/events/intel/
Dbts.c152 index = local_read(&buf->head); in bts_config_buffer()
485 old_head = local_read(&buf->head); in intel_bts_interrupt()
489 if (old_head == local_read(&buf->head)) in intel_bts_interrupt()
Dpt.c1664 to = local_read(&buf->data_size); in pt_event_snapshot_aux()
/linux-6.1.9/arch/powerpc/include/asm/
Dlocal.h20 static __inline__ long local_read(const local_t *l) in local_read() function
/linux-6.1.9/arch/mips/math-emu/
Dme-debugfs.c25 sum += local_read(pv); in fpuemu_stat_get()
/linux-6.1.9/include/linux/qed/
Dqed_rdma_if.h235 bool local_read; member
/linux-6.1.9/block/
Dblk-iocost.c1568 u32 this_met = local_read(&stat->missed[rw].nr_met); in ioc_lat_stat()
1569 u32 this_missed = local_read(&stat->missed[rw].nr_missed); in ioc_lat_stat()
/linux-6.1.9/drivers/infiniband/hw/qedr/
Dverbs.c2995 mr->hw_mr.local_read = 1; in qedr_reg_user_mr()
3094 mr->hw_mr.local_read = 1; in __qedr_alloc_mr()
3229 mr->hw_mr.local_read = 1; in qedr_get_dma_mr()
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_rdma.c1517 params->local_read); in qed_rdma_register_tid()

12