Home | History | Annotate | Download | only in xlat
      1 /* Generated by ./xlat/gen.sh from ./xlat/bpf_map_types.in; do not edit. */
      2 #if !(defined(BPF_MAP_TYPE_UNSPEC) || (defined(HAVE_DECL_BPF_MAP_TYPE_UNSPEC) && HAVE_DECL_BPF_MAP_TYPE_UNSPEC))
      3 # define BPF_MAP_TYPE_UNSPEC 0
      4 #endif
      5 #if !(defined(BPF_MAP_TYPE_HASH) || (defined(HAVE_DECL_BPF_MAP_TYPE_HASH) && HAVE_DECL_BPF_MAP_TYPE_HASH))
      6 # define BPF_MAP_TYPE_HASH 1
      7 #endif
      8 #if !(defined(BPF_MAP_TYPE_ARRAY) || (defined(HAVE_DECL_BPF_MAP_TYPE_ARRAY) && HAVE_DECL_BPF_MAP_TYPE_ARRAY))
      9 # define BPF_MAP_TYPE_ARRAY 2
     10 #endif
     11 #if !(defined(BPF_MAP_TYPE_PROG_ARRAY) || (defined(HAVE_DECL_BPF_MAP_TYPE_PROG_ARRAY) && HAVE_DECL_BPF_MAP_TYPE_PROG_ARRAY))
     12 # define BPF_MAP_TYPE_PROG_ARRAY 3
     13 #endif
     14 #if !(defined(BPF_MAP_TYPE_PERF_EVENT_ARRAY) || (defined(HAVE_DECL_BPF_MAP_TYPE_PERF_EVENT_ARRAY) && HAVE_DECL_BPF_MAP_TYPE_PERF_EVENT_ARRAY))
     15 # define BPF_MAP_TYPE_PERF_EVENT_ARRAY 4
     16 #endif
     17 
     18 #ifdef IN_MPERS
     19 
     20 # error static const struct xlat bpf_map_types in mpers mode
     21 
     22 #else
     23 
     24 static
     25 const struct xlat bpf_map_types[] = {
     26  XLAT(BPF_MAP_TYPE_UNSPEC),
     27  XLAT(BPF_MAP_TYPE_HASH),
     28  XLAT(BPF_MAP_TYPE_ARRAY),
     29  XLAT(BPF_MAP_TYPE_PROG_ARRAY),
     30  XLAT(BPF_MAP_TYPE_PERF_EVENT_ARRAY),
     31  XLAT_END
     32 };
     33 
     34 #endif /* !IN_MPERS */
     35