summaryrefslogtreecommitdiff
path: root/tools/lib/bpf/libbpf.map
diff options
context:
space:
mode:
authorMartin Kelly <martin.kelly@crowdstrike.com>2023-09-26 00:50:36 +0300
committerAndrii Nakryiko <andrii@kernel.org>2023-09-26 02:22:42 +0300
commit059a8c0c5acd37ecfa64f1832e8765d30f253ce8 (patch)
tree121e16ee53c4f30fdcac2e5452510c153c6ce7aa /tools/lib/bpf/libbpf.map
parentc1ad2e47f97c6d95e52be0c2a68b23fc99214734 (diff)
downloadlinux-059a8c0c5acd37ecfa64f1832e8765d30f253ce8.tar.xz
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.map2
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;