Skip to content

Commit 6683435

Browse files
add map types for completion
1 parent 84ad58b commit 6683435

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

pythonbpf/maps/maps_pass.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,41 @@ def is_map(func_node):
2626

2727

2828
class BPFMapType(Enum):
29+
UNSPEC = 0
2930
HASH = 1
31+
ARRAY = 2
32+
PROG_ARRAY = 3
3033
PERF_EVENT_ARRAY = 4
34+
PERCPU_HASH = 5
35+
PERCPU_ARRAY = 6
36+
STACK_TRACE = 7
37+
CGROUP_ARRAY = 8
38+
LRU_HASH = 9
39+
LRU_PERCPU_HASH = 10
40+
LPM_TRIE = 11
41+
ARRAY_OF_MAPS = 12
42+
HASH_OF_MAPS = 13
43+
DEVMAP = 14
44+
SOCKMAP = 15
45+
CPUMAP = 16
46+
XSKMAP = 17
47+
SOCKHASH = 18
48+
CGROUP_STORAGE_DEPRECATED = 19
49+
CGROUP_STORAGE = 19
50+
REUSEPORT_SOCKARRAY = 20
51+
PERCPU_CGROUP_STORAGE_DEPRECATED = 21
52+
PERCPU_CGROUP_STORAGE = 21
53+
QUEUE = 22
54+
STACK = 23
55+
SK_STORAGE = 24
56+
DEVMAP_HASH = 25
57+
STRUCT_OPS = 26
58+
RINGBUF = 27
59+
INODE_STORAGE = 28
60+
TASK_STORAGE = 29
61+
BLOOM_FILTER = 30
62+
USER_RINGBUF = 31
63+
CGRP_STORAGE = 32
3164

3265

3366
def create_bpf_map(module, map_name, map_params):

0 commit comments

Comments
 (0)