Home
last modified time | relevance | path

Searched refs:pb (Results 1 – 10 of 10) sorted by relevance

/tools/testing/selftests/bpf/
Dtest_tcpnotify_user.c44 void tcp_notifier_poller(struct perf_buffer *pb) in tcp_notifier_poller() argument
49 err = perf_buffer__poll(pb, 100); in tcp_notifier_poller()
59 struct perf_buffer *pb = arg; in poller_thread() local
61 tcp_notifier_poller(pb); in poller_thread()
76 struct perf_buffer *pb = NULL; in main() local
124 pb = perf_buffer__new(bpf_map__fd(perf_map), 8, &pb_opts); in main()
125 if (IS_ERR(pb)) in main()
128 pthread_create(&tid, NULL, poller_thread, pb); in main()
165 if (!IS_ERR_OR_NULL(pb)) in main()
166 perf_buffer__free(pb); in main()
/tools/testing/selftests/bpf/prog_tests/
Dperf_buffer.c31 struct perf_buffer *pb; in test_perf_buffer() local
73 pb = perf_buffer__new(bpf_map__fd(perf_buf_map), 1, &pb_opts); in test_perf_buffer()
74 if (CHECK(IS_ERR(pb), "perf_buf__new", "err %ld\n", PTR_ERR(pb))) in test_perf_buffer()
98 err = perf_buffer__poll(pb, 100); in test_perf_buffer()
107 perf_buffer__free(pb); in test_perf_buffer()
Dget_stack_raw_tp.c89 struct perf_buffer *pb = NULL; in test_get_stack_raw_tp() local
128 pb = perf_buffer__new(bpf_map__fd(map), 8, &pb_opts); in test_get_stack_raw_tp()
129 if (CHECK(IS_ERR(pb), "perf_buf__new", "err %ld\n", PTR_ERR(pb))) in test_get_stack_raw_tp()
137 err = perf_buffer__poll(pb, 100); in test_get_stack_raw_tp()
146 if (!IS_ERR_OR_NULL(pb)) in test_get_stack_raw_tp()
147 perf_buffer__free(pb); in test_get_stack_raw_tp()
/tools/bpf/bpftool/
Dmap_perf_ring.c134 struct perf_buffer *pb; in do_event_pipe() local
201 pb = perf_buffer__new_raw(map_fd, MMAP_PAGE_CNT, &opts); in do_event_pipe()
202 err = libbpf_get_error(pb); in do_event_pipe()
217 err = perf_buffer__poll(pb, 200); in do_event_pipe()
228 perf_buffer__free(pb); in do_event_pipe()
234 perf_buffer__free(pb); in do_event_pipe()
/tools/lib/bpf/
Dlibbpf.c5319 struct perf_buffer *pb; member
5343 static void perf_buffer__free_cpu_buf(struct perf_buffer *pb, in perf_buffer__free_cpu_buf() argument
5349 munmap(cpu_buf->base, pb->mmap_size + pb->page_size)) in perf_buffer__free_cpu_buf()
5359 void perf_buffer__free(struct perf_buffer *pb) in perf_buffer__free() argument
5363 if (!pb) in perf_buffer__free()
5365 if (pb->cpu_bufs) { in perf_buffer__free()
5366 for (i = 0; i < pb->cpu_cnt; i++) { in perf_buffer__free()
5367 struct perf_cpu_buf *cpu_buf = pb->cpu_bufs[i]; in perf_buffer__free()
5372 bpf_map_delete_elem(pb->map_fd, &cpu_buf->map_key); in perf_buffer__free()
5373 perf_buffer__free_cpu_buf(pb, cpu_buf); in perf_buffer__free()
[all …]
Dlibbpf.h415 LIBBPF_API void perf_buffer__free(struct perf_buffer *pb);
416 LIBBPF_API int perf_buffer__poll(struct perf_buffer *pb, int timeout_ms);
/tools/testing/ktest/
Dconfig-bisect.pl320 my ($pa, $pb) = @_;
324 my %b = %{$pb};
339 my ($pa, $pb) = @_;
345 my %b = %{$pb};
361 my ($pa, $pb) = @_;
367 my %b = %{$pb};
/tools/memory-model/
Dlinux-kernel.cat94 let pb = prop ; strong-fence ; hb* ; [Marked]
95 acyclic pb as propagation
121 let rcu-link = po? ; hb* ; pb* ; prop ; po
145 (* rb orders instructions just as pb does *)
146 let rb = prop ; rcu-fence ; hb* ; pb* ; [Marked]
155 * let xb = hb | pb | rb
169 let xbstar = (hb | pb | rb)*
/tools/memory-model/Documentation/
Dexplanation.txt29 21. THE PROPAGATES-BEFORE RELATION: pb
1348 THE PROPAGATES-BEFORE RELATION: pb
1351 The propagates-before (pb) relation capitalizes on the special
1378 The existence of a pb link from E to F implies that E must execute
1387 A good example illustrating how pb works is the SB pattern with strong
1410 If r0 = 0 at the end then there is a pb link from P0's load to P1's
1414 Note that this pb link is not included in hb as an instance of prop,
1417 Similarly, if r1 = 0 at the end then there is a pb link from P1's load
1419 cycle in pb, which is not possible since an instruction cannot execute
1423 In summary, the fact that the pb relation links events in the order
[all …]
/tools/lib/traceevent/
Devent-parse.c687 const struct printk_map *pb = b; in printk_cmp() local
689 if (pa->addr < pb->addr) in printk_cmp()
691 if (pa->addr > pb->addr) in printk_cmp()