Home
last modified time | relevance | path

Searched refs:data_tail (Results 1 – 9 of 9) sorted by relevance

/linux/tools/testing/selftests/powerpc/pmu/sampling_tests/
A Dmisc.c205 unsigned long data_head, data_tail; in __event_read_samples() local
218 data_tail = metadata_page->data_tail; in __event_read_samples()
232 if (data_head - data_tail < sizeof(header)) in __event_read_samples()
235 data_tail += sizeof(header); in __event_read_samples()
239 return sample_buff + page_size + data_tail; in __event_read_samples()
240 data_tail += *size; in __event_read_samples()
244 if ((metadata_page->data_tail + *size) > metadata_page->data_head) in __event_read_samples()
245 data_tail = metadata_page->data_head; in __event_read_samples()
247 data_tail += *size; in __event_read_samples()
/linux/tools/testing/selftests/bpf/benchs/
A Dbench_ringbufs.c483 __u64 data_head, data_tail; in perfbuf_custom_consumer() local
503 data_tail = header->data_tail; in perfbuf_custom_consumer()
504 while (data_head != data_tail) { in perfbuf_custom_consumer()
505 ehdr = base + (data_tail & mmap_mask); in perfbuf_custom_consumer()
511 data_tail += ehdr_size; in perfbuf_custom_consumer()
513 ring_buffer_write_tail(header, data_tail); in perfbuf_custom_consumer()
/linux/tools/include/linux/
A Dring_buffer.h71 smp_store_release(&base->data_tail, tail); in ring_buffer_write_tail()
/linux/Documentation/userspace-api/
A Dperf_ring_buffer.rst80 head pointer ``data_head`` and a tail pointer ``data_tail``. When the
93 |data_head|data_tail|...| | |***|***|***|***|***| | | |
411 |Event wait queue| |data_head|data_tail| |***|***| | |***|
450 updates the ``data_tail`` to indicate the data start position. Combining
456 the ``data_head`` while the user space cannot access the ``data_tail`` due
490 it don't need the ``data_tail``. In this mode, it will not generate the
526 tail pointer ``perf_event_mmap_page::data_tail``.
542 if (LOAD ->data_tail) { LOAD ->data_head
546 STORE ->data_head STORE ->data_tail
554 pointer ``perf_event_mmap_page::data_tail`` and filling sample into ring
[all …]
/linux/tools/memory-model/Documentation/
A Drecipes.txt334 * if (LOAD ->data_tail) { LOAD ->data_head
338 * STORE ->data_head STORE ->data_tail
389 * if (LOAD ->data_tail) { LOAD ->data_head
393 * STORE ->data_head STORE ->data_tail
398 The kernel's control dependency between the load from ->data_tail
400 between the load from data and the store to ->data_tail prevents
/linux/tools/include/uapi/linux/
A Dperf_event.h725 __u64 data_tail; /* user-space written tail */ member
/linux/include/uapi/linux/
A Dperf_event.h725 __u64 data_tail; /* user-space written tail */ member
/linux/kernel/events/
A Dring_buffer.c201 tail = READ_ONCE(rb->user_page->data_tail); in __perf_output_begin()
/linux/tools/lib/bpf/
A Dlibbpf.c13026 __u64 data_tail = header->data_tail;
13032 while (data_head != data_tail) {
13033 ehdr = base + (data_tail & (mmap_size - 1));
13058 data_tail += ehdr_size;
13063 ring_buffer_write_tail(header, data_tail);

Completed in 48 milliseconds