Skip to content

Commit 64821d2

Browse files
Tao Chenanakryiko
authored andcommitted
libbpf: Remove sample_period init in perf_buffer
It seems that sample_period is not used in perf buffer. Actually, only wakeup_events are meaningful to enable events aggregation for wakeup notification. Remove sample_period setting code to avoid confusion. Fixes: fb84b82 ("libbpf: add perf buffer API") Signed-off-by: Tao Chen <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Jiri Olsa <[email protected]> Acked-by: Namhyung Kim <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 46eb012 commit 64821d2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tools/lib/bpf/libbpf.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13375,7 +13375,6 @@ struct perf_buffer *perf_buffer__new(int map_fd, size_t page_cnt,
1337513375
attr.config = PERF_COUNT_SW_BPF_OUTPUT;
1337613376
attr.type = PERF_TYPE_SOFTWARE;
1337713377
attr.sample_type = PERF_SAMPLE_RAW;
13378-
attr.sample_period = sample_period;
1337913378
attr.wakeup_events = sample_period;
1338013379

1338113380
p.attr = &attr;

0 commit comments

Comments
 (0)