diff options
| author | Christy Lee <[email protected]> | 2021-12-29 20:41:56 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-01-05 23:27:43 +0000 |
| commit | 7218c28c87f57c131879a75a226b9033ac90b266 (patch) | |
| tree | 68d5ab4ab7e5170a76709ab7e3cb4077e9c847e3 /tools/bpf/bpftool/prog.c | |
| parent | bpf: Add SO_RCVBUF/SO_SNDBUF in _bpf_getsockopt(). (diff) | |
| download | kernel-7218c28c87f57c131879a75a226b9033ac90b266.tar.gz kernel-7218c28c87f57c131879a75a226b9033ac90b266.zip | |
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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
