File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ static const char * const map_type_name[] = {
190190 [BPF_MAP_TYPE_USER_RINGBUF ] = "user_ringbuf" ,
191191 [BPF_MAP_TYPE_CGRP_STORAGE ] = "cgrp_storage" ,
192192 [BPF_MAP_TYPE_ARENA ] = "arena" ,
193+ [BPF_MAP_TYPE_INSN_ARRAY ] = "insn_array" ,
193194};
194195
195196static const char * const prog_type_name [] = {
Original file line number Diff line number Diff line change @@ -364,6 +364,10 @@ static int probe_map_create(enum bpf_map_type map_type)
364364 case BPF_MAP_TYPE_SOCKHASH :
365365 case BPF_MAP_TYPE_REUSEPORT_SOCKARRAY :
366366 break ;
367+ case BPF_MAP_TYPE_INSN_ARRAY :
368+ key_size = sizeof (__u32 );
369+ value_size = sizeof (struct bpf_insn_array_value );
370+ break ;
367371 case BPF_MAP_TYPE_UNSPEC :
368372 default :
369373 return - EOPNOTSUPP ;
You can’t perform that action at this time.
0 commit comments