diff options
author | Martin Kelly <martin.kelly@crowdstrike.com> | 2023-09-25 14:50:36 -0700 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2023-09-25 16:22:42 -0700 |
commit | 059a8c0c5acd37ecfa64f1832e8765d30f253ce8 (patch) | |
tree | 121e16ee53c4f30fdcac2e5452510c153c6ce7aa /tools/lib/bpf/libbpf.map | |
parent | c1ad2e47f97c6d95e52be0c2a68b23fc99214734 (diff) | |
download | lwn-059a8c0c5acd37ecfa64f1832e8765d30f253ce8.tar.gz lwn-059a8c0c5acd37ecfa64f1832e8765d30f253ce8.zip |
libbpf: Add ring__producer_pos, ring__consumer_pos
Add APIs to get the producer and consumer position for a given
ringbuffer.
Signed-off-by: Martin Kelly <martin.kelly@crowdstrike.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230925215045.2375758-6-martin.kelly@crowdstrike.com
Diffstat (limited to 'tools/lib/bpf/libbpf.map')
-rw-r--r-- | tools/lib/bpf/libbpf.map | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.map b/tools/lib/bpf/libbpf.map index 7a7370c2bc25..3bec002449d5 100644 --- a/tools/lib/bpf/libbpf.map +++ b/tools/lib/bpf/libbpf.map @@ -400,5 +400,7 @@ LIBBPF_1.3.0 { bpf_program__attach_netfilter; bpf_program__attach_tcx; bpf_program__attach_uprobe_multi; + ring__consumer_pos; + ring__producer_pos; ring_buffer__ring; } LIBBPF_1.2.0; |