@@ -110,10 +110,14 @@ DEFINE_MAP_OF_MAP(BPF_MAP_TYPE_ARRAY_OF_MAPS, array_map, array_of_array_maps);
110
110
DEFINE_MAP_OF_MAP (BPF_MAP_TYPE_ARRAY_OF_MAPS , hash_map , array_of_hash_maps );
111
111
DEFINE_MAP_OF_MAP (BPF_MAP_TYPE_ARRAY_OF_MAPS , hash_malloc_map , array_of_hash_malloc_maps );
112
112
DEFINE_MAP_OF_MAP (BPF_MAP_TYPE_ARRAY_OF_MAPS , lru_hash_map , array_of_lru_hash_maps );
113
+ DEFINE_MAP_OF_MAP (BPF_MAP_TYPE_ARRAY_OF_MAPS , pcpu_array_map , array_of_pcpu_array_maps );
114
+ DEFINE_MAP_OF_MAP (BPF_MAP_TYPE_ARRAY_OF_MAPS , pcpu_hash_map , array_of_pcpu_hash_maps );
113
115
DEFINE_MAP_OF_MAP (BPF_MAP_TYPE_HASH_OF_MAPS , array_map , hash_of_array_maps );
114
116
DEFINE_MAP_OF_MAP (BPF_MAP_TYPE_HASH_OF_MAPS , hash_map , hash_of_hash_maps );
115
117
DEFINE_MAP_OF_MAP (BPF_MAP_TYPE_HASH_OF_MAPS , hash_malloc_map , hash_of_hash_malloc_maps );
116
118
DEFINE_MAP_OF_MAP (BPF_MAP_TYPE_HASH_OF_MAPS , lru_hash_map , hash_of_lru_hash_maps );
119
+ DEFINE_MAP_OF_MAP (BPF_MAP_TYPE_HASH_OF_MAPS , pcpu_array_map , hash_of_pcpu_array_maps );
120
+ DEFINE_MAP_OF_MAP (BPF_MAP_TYPE_HASH_OF_MAPS , pcpu_hash_map , hash_of_pcpu_hash_maps );
117
121
118
122
#define WRITE_ONCE (x , val ) ((*(volatile typeof(x) *) &(x)) = (val))
119
123
@@ -204,6 +208,8 @@ int test_map_kptr(struct __sk_buff *ctx)
204
208
TEST (hash_map );
205
209
TEST (hash_malloc_map );
206
210
TEST (lru_hash_map );
211
+ TEST (pcpu_array_map );
212
+ TEST (pcpu_hash_map );
207
213
208
214
#undef TEST
209
215
return 0 ;
@@ -281,10 +287,14 @@ int test_map_in_map_kptr(struct __sk_buff *ctx)
281
287
TEST (array_of_hash_maps );
282
288
TEST (array_of_hash_malloc_maps );
283
289
TEST (array_of_lru_hash_maps );
290
+ TEST (array_of_pcpu_array_maps );
291
+ TEST (array_of_pcpu_hash_maps );
284
292
TEST (hash_of_array_maps );
285
293
TEST (hash_of_hash_maps );
286
294
TEST (hash_of_hash_malloc_maps );
287
295
TEST (hash_of_lru_hash_maps );
296
+ TEST (hash_of_pcpu_array_maps );
297
+ TEST (hash_of_pcpu_hash_maps );
288
298
289
299
#undef TEST
290
300
return 0 ;
0 commit comments