1 /* Generated by ./xlat/gen.sh from ./xlat/bpf_commands.in; do not edit. */ 2 #if !(defined(BPF_MAP_CREATE) || (defined(HAVE_DECL_BPF_MAP_CREATE) && HAVE_DECL_BPF_MAP_CREATE)) 3 # define BPF_MAP_CREATE 0 4 #endif 5 #if !(defined(BPF_MAP_LOOKUP_ELEM) || (defined(HAVE_DECL_BPF_MAP_LOOKUP_ELEM) && HAVE_DECL_BPF_MAP_LOOKUP_ELEM)) 6 # define BPF_MAP_LOOKUP_ELEM 1 7 #endif 8 #if !(defined(BPF_MAP_UPDATE_ELEM) || (defined(HAVE_DECL_BPF_MAP_UPDATE_ELEM) && HAVE_DECL_BPF_MAP_UPDATE_ELEM)) 9 # define BPF_MAP_UPDATE_ELEM 2 10 #endif 11 #if !(defined(BPF_MAP_DELETE_ELEM) || (defined(HAVE_DECL_BPF_MAP_DELETE_ELEM) && HAVE_DECL_BPF_MAP_DELETE_ELEM)) 12 # define BPF_MAP_DELETE_ELEM 3 13 #endif 14 #if !(defined(BPF_MAP_GET_NEXT_KEY) || (defined(HAVE_DECL_BPF_MAP_GET_NEXT_KEY) && HAVE_DECL_BPF_MAP_GET_NEXT_KEY)) 15 # define BPF_MAP_GET_NEXT_KEY 4 16 #endif 17 #if !(defined(BPF_PROG_LOAD) || (defined(HAVE_DECL_BPF_PROG_LOAD) && HAVE_DECL_BPF_PROG_LOAD)) 18 # define BPF_PROG_LOAD 5 19 #endif 20 21 #ifdef IN_MPERS 22 23 # error static const struct xlat bpf_commands in mpers mode 24 25 #else 26 27 static 28 const struct xlat bpf_commands[] = { 29 XLAT(BPF_MAP_CREATE), 30 XLAT(BPF_MAP_LOOKUP_ELEM), 31 XLAT(BPF_MAP_UPDATE_ELEM), 32 XLAT(BPF_MAP_DELETE_ELEM), 33 XLAT(BPF_MAP_GET_NEXT_KEY), 34 XLAT(BPF_PROG_LOAD), 35 XLAT_END 36 }; 37 38 #endif /* !IN_MPERS */ 39