mirror of
https://github.com/netdata/libbpf.git
synced 2026-11-06 01:40:15 +08:00
filter.h: fix BPF_LD_MAP_VALUE definition
The current definition calls BPF_LD_IMM64_RAW_FULL with BPF_PSEUDO_MAP_FD but the original patch[0] invokes it with BPF_PSEUDO_MAP_VALUE. [0] https://patchwork.ozlabs.org/patch/1082785/
This commit is contained in:
1 parent
d60f568961
commit
db63a5aa5d
1 file changed
+1
-1
@@ -96,7 +96,7 @@
|
||||
MAP_FD, 0)
|
||||
|
||||
#define BPF_LD_MAP_VALUE(DST, MAP_FD, VALUE_OFF) \
|
||||
BPF_LD_IMM64_RAW_FULL(DST, BPF_PSEUDO_MAP_FD, 0, 0, \
|
||||
BPF_LD_IMM64_RAW_FULL(DST, BPF_PSEUDO_MAP_VALUE, 0, 0, \
|
||||
MAP_FD, VALUE_OFF)
|
||||
|
||||
#define BPF_JMP_IMM(OP, DST, IMM, OFF) \
|
||||
|
||||
Reference in new issue
Block a user