Home
last modified time | relevance | path

Searched refs:ehdr_size (Results 1 – 2 of 2) sorted by relevance

/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c488 size_t ehdr_size; in perfbuf_custom_consumer() local
510 ehdr_size = ehdr->size; in perfbuf_custom_consumer()
515 data_tail += ehdr_size; in perfbuf_custom_consumer()
/tools/lib/bpf/
Dlibbpf.c9781 size_t ehdr_size; in bpf_perf_event_read_simple() local
9785 ehdr_size = ehdr->size; in bpf_perf_event_read_simple()
9787 if (((void *)ehdr) + ehdr_size > base + mmap_size) { in bpf_perf_event_read_simple()
9790 size_t len_secnd = ehdr_size - len_first; in bpf_perf_event_read_simple()
9792 if (*copy_size < ehdr_size) { in bpf_perf_event_read_simple()
9794 *copy_mem = malloc(ehdr_size); in bpf_perf_event_read_simple()
9800 *copy_size = ehdr_size; in bpf_perf_event_read_simple()
9809 data_tail += ehdr_size; in bpf_perf_event_read_simple()