/linux-6.12.1/kernel/events/ |
D | internal.h | 13 struct perf_buffer { struct 62 extern void rb_free(struct perf_buffer *rb); argument 66 struct perf_buffer *rb; in rb_free_rcu() 68 rb = container_of(rcu_head, struct perf_buffer, rcu_head); in rb_free_rcu() 72 static inline void rb_toggle_paused(struct perf_buffer *rb, bool pause) in rb_toggle_paused() 80 extern struct perf_buffer * 83 extern int rb_alloc_aux(struct perf_buffer *rb, struct perf_event *event, 85 extern void rb_free_aux(struct perf_buffer *rb); 86 extern struct perf_buffer *ring_buffer_get(struct perf_event *event); 87 extern void ring_buffer_put(struct perf_buffer *rb); [all …]
|
D | ring_buffer.c | 42 struct perf_buffer *rb = handle->rb; in perf_output_get_handle() 56 struct perf_buffer *rb = handle->rb; in perf_output_put_handle() 158 struct perf_buffer *rb; in __perf_output_begin() 314 ring_buffer_init(struct perf_buffer *rb, long watermark, int flags) in ring_buffer_init() 376 struct perf_buffer *rb; in perf_aux_output_begin() 464 static __always_inline bool rb_need_aux_wakeup(struct perf_buffer *rb) in rb_need_aux_wakeup() 490 struct perf_buffer *rb = handle->rb; in perf_aux_output_end() 547 struct perf_buffer *rb = handle->rb; in perf_aux_output_skip() 584 struct perf_buffer *rb = aux_handle->rb; in perf_output_copy_aux() 641 static void rb_free_aux_page(struct perf_buffer *rb, int idx) in rb_free_aux_page() [all …]
|
D | core.c | 5097 struct perf_buffer *rb); 5842 struct perf_buffer *rb; in perf_poll() 6098 struct perf_buffer *rb; in _perf_ioctl() 6222 struct perf_buffer *rb; in perf_event_init_userpage() 6254 struct perf_buffer *rb; in perf_event_update_userpage() 6305 struct perf_buffer *rb; in perf_mmap_fault() 6338 struct perf_buffer *rb) in ring_buffer_attach() 6340 struct perf_buffer *old_rb = NULL; in ring_buffer_attach() 6400 struct perf_buffer *rb; in ring_buffer_wakeup() 6414 struct perf_buffer *ring_buffer_get(struct perf_event *event) in ring_buffer_get() [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | test_tcpnotify_user.c | 44 void tcp_notifier_poller(struct perf_buffer *pb) in tcp_notifier_poller() 59 struct perf_buffer *pb = arg; in poller_thread() 75 struct perf_buffer *pb = NULL; in main()
|
/linux-6.12.1/tools/lib/bpf/ |
D | libbpf.h | 1527 struct perf_buffer; 1553 LIBBPF_API struct perf_buffer * 1587 LIBBPF_API struct perf_buffer * 1592 LIBBPF_API void perf_buffer__free(struct perf_buffer *pb); 1593 LIBBPF_API int perf_buffer__epoll_fd(const struct perf_buffer *pb); 1594 LIBBPF_API int perf_buffer__poll(struct perf_buffer *pb, int timeout_ms); 1595 LIBBPF_API int perf_buffer__consume(struct perf_buffer *pb); 1596 LIBBPF_API int perf_buffer__consume_buffer(struct perf_buffer *pb, size_t buf_idx); 1597 LIBBPF_API size_t perf_buffer__buffer_cnt(const struct perf_buffer *pb); 1598 LIBBPF_API int perf_buffer__buffer_fd(const struct perf_buffer *pb, size_t buf_idx); [all …]
|
D | libbpf.c | 13067 struct perf_buffer; 13083 struct perf_buffer *pb; 13092 struct perf_buffer { struct 13107 static void perf_buffer__free_cpu_buf(struct perf_buffer *pb, in perf_buffer__free_cpu_buf() argument 13123 void perf_buffer__free(struct perf_buffer *pb) in perf_buffer__free() 13148 perf_buffer__open_cpu_buf(struct perf_buffer *pb, struct perf_event_attr *attr, in perf_buffer__open_cpu_buf() 13197 static struct perf_buffer *__perf_buffer__new(int map_fd, size_t page_cnt, 13200 struct perf_buffer *perf_buffer__new(int map_fd, size_t page_cnt, in perf_buffer__new() 13234 struct perf_buffer *perf_buffer__new_raw(int map_fd, size_t page_cnt, in perf_buffer__new_raw() 13257 static struct perf_buffer *__perf_buffer__new(int map_fd, size_t page_cnt, in __perf_buffer__new() [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/benchs/ |
D | bench_ringbufs.c | 344 struct perf_buffer *perfbuf; 451 struct perf_buffer *pb; 460 struct perf_buffer { struct 478 struct perf_buffer *pb = ctx->perfbuf; in perfbuf_custom_consumer() argument
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | xdp_bpf2bpf.c | 44 static void run_xdp_bpf2bpf_pkt_size(int pkt_fd, struct perf_buffer *pb, in run_xdp_bpf2bpf_pkt_size() 112 struct perf_buffer *pb = NULL; in test_xdp_bpf2bpf()
|
D | get_stack_raw_tp.c | 91 struct perf_buffer *pb = NULL; in test_get_stack_raw_tp()
|
D | kfree_skb.c | 66 struct perf_buffer *pb = NULL; in serial_test_kfree_skb()
|
D | perf_buffer.c | 52 struct perf_buffer *pb; in serial_test_perf_buffer()
|
D | xdp_attach.c | 108 struct perf_buffer *pb = NULL; in test_xdp_attach_fail()
|
D | unpriv_bpf_disabled.c | 63 struct perf_buffer *perfbuf = NULL; in test_unpriv_bpf_disabled_positive()
|
/linux-6.12.1/samples/bpf/ |
D | trace_output_user.c | 48 struct perf_buffer *pb; in main()
|
/linux-6.12.1/tools/bpf/runqslower/ |
D | runqslower.c | 115 struct perf_buffer *pb = NULL; in main()
|
/linux-6.12.1/tools/bpf/bpftool/ |
D | map_perf_ring.c | 126 struct perf_buffer *pb; in do_event_pipe()
|
/linux-6.12.1/include/linux/ |
D | perf_event.h | 665 struct perf_buffer; 795 struct perf_buffer *rb; 1041 struct perf_buffer *rb;
|
/linux-6.12.1/Documentation/userspace-api/ |
D | perf_ring_buffer.rst | 400 stored in the ``perf_buffer::watermark``. When a sample is recorded into 745 header pointer ``perf_buffer::aux_head`` to reflect the latest buffer usage.
|