Skip to content

Commit

Permalink
add missing types in bps
Browse files Browse the repository at this point in the history
Add missing program and map types in bps

Signed-off-by: Yonghong Song <[email protected]>
  • Loading branch information
yonghong-song committed Jun 11, 2018
1 parent 62af0ea commit 6f3c825
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions introspection/bps.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ static const char * const prog_type_strings[] = {
[BPF_PROG_TYPE_LWT_XMIT] = "lwt xmit",
[BPF_PROG_TYPE_SOCK_OPS] = "sock ops",
[BPF_PROG_TYPE_SK_SKB] = "sk skb",
[BPF_PROG_TYPE_CGROUP_DEVICE] = "cgroup_device",
[BPF_PROG_TYPE_SK_MSG] = "sk_msg",
[BPF_PROG_TYPE_RAW_TRACEPOINT] = "raw_tracepoint",
[BPF_PROG_TYPE_CGROUP_SOCK_ADDR] = "cgroup_sock_addr",
[BPF_PROG_TYPE_LIRC_MODE2] = "lirc_mode2",
};

static const char * const map_type_strings[] = {
Expand All @@ -51,6 +56,8 @@ static const char * const map_type_strings[] = {
[BPF_MAP_TYPE_HASH_OF_MAPS] = "hash of maps",
[BPF_MAP_TYPE_DEVMAP] = "devmap",
[BPF_MAP_TYPE_SOCKMAP] = "sockmap",
[BPF_MAP_TYPE_CPUMAP] = "cpumap",
[BPF_MAP_TYPE_SOCKHASH] = "sockhash",
};

#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
Expand Down

0 comments on commit 6f3c825

Please sign in to comment.