]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Deprecate bpf_perf_event_read_simple() API
authorChristy Lee <christylee@fb.com>
Wed, 29 Dec 2021 20:41:56 +0000 (12:41 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 5 Jan 2022 23:27:43 +0000 (15:27 -0800)
commitb1fefaa6814d793c32ce256a80032017d6a30189
tree68d5ab4ab7e5170a76709ab7e3cb4077e9c847e3
parente029f38174b5b8e4e3048daf940e1db4615353d8
libbpf: Deprecate bpf_perf_event_read_simple() API

With perf_buffer__poll() and perf_buffer__consume() APIs available,
there is no reason to expose bpf_perf_event_read_simple() API to
users. If users need custom perf buffer, they could re-implement
the function.

Mark bpf_perf_event_read_simple() and move the logic to a new
static function so it can still be called by other functions in the
same file.

  [0] Closes: https://github.com/libbpf/libbpf/issues/310

Signed-off-by: Christy Lee <christylee@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211229204156.13569-1-christylee@fb.com
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h