]> www.infradead.org Git - users/jedix/linux-maple.git/commit
libbpf: Remove sample_period init in perf_buffer
authorTao Chen <chen.dylane@linux.dev>
Wed, 23 Apr 2025 16:39:01 +0000 (00:39 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 25 Apr 2025 16:24:47 +0000 (09:24 -0700)
commit64821d25f05ac468d435e61669ae745ce5a633ea
tree4f5985d9e67af9551877e042fe1241e908076a85
parent46eb012611f7a824231a53532c7bc86160bbc91a
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 <chen.dylane@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/bpf/20250423163901.2983689-1-chen.dylane@linux.dev
tools/lib/bpf/libbpf.c