diff options
| author | Tao Chen <[email protected]> | 2025-04-23 16:39:01 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2025-04-25 16:24:47 +0000 |
| commit | 64821d25f05ac468d435e61669ae745ce5a633ea (patch) | |
| tree | 4f5985d9e67af9551877e042fe1241e908076a85 /tools/lib/bpf/libbpf.c | |
| parent | Merge branch 'selftests-bpf-fix-a-few-issues-in-arena_spin_lock' (diff) | |
| download | kernel-64821d25f05ac468d435e61669ae745ce5a633ea.tar.gz kernel-64821d25f05ac468d435e61669ae745ce5a633ea.zip | |
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: fb84b8224655 ("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]
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
| -rw-r--r-- | tools/lib/bpf/libbpf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index fbb991c6bf19..080c699582c7 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -13375,7 +13375,6 @@ struct perf_buffer *perf_buffer__new(int map_fd, size_t page_cnt, attr.config = PERF_COUNT_SW_BPF_OUTPUT; attr.type = PERF_TYPE_SOFTWARE; attr.sample_type = PERF_SAMPLE_RAW; - attr.sample_period = sample_period; attr.wakeup_events = sample_period; p.attr = &attr; |
