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 #if !(defined(BPF_OBJ_PIN) || (defined(HAVE_DECL_BPF_OBJ_PIN) && HAVE_DECL_BPF_OBJ_PIN)) 21 # define BPF_OBJ_PIN 6 22 #endif 23 #if !(defined(BPF_OBJ_GET) || (defined(HAVE_DECL_BPF_OBJ_GET) && HAVE_DECL_BPF_OBJ_GET)) 24 # define BPF_OBJ_GET 7 25 #endif 26 #if !(defined(BPF_PROG_ATTACH) || (defined(HAVE_DECL_BPF_PROG_ATTACH) && HAVE_DECL_BPF_PROG_ATTACH)) 27 # define BPF_PROG_ATTACH 8 28 #endif 29 #if !(defined(BPF_PROG_DETACH) || (defined(HAVE_DECL_BPF_PROG_DETACH) && HAVE_DECL_BPF_PROG_DETACH)) 30 # define BPF_PROG_DETACH 9 31 #endif 32 33 #ifdef IN_MPERS 34 35 # error static const struct xlat bpf_commands in mpers mode 36 37 #else 38 39 static 40 const struct xlat bpf_commands[] = { 41 XLAT(BPF_MAP_CREATE), 42 XLAT(BPF_MAP_LOOKUP_ELEM), 43 XLAT(BPF_MAP_UPDATE_ELEM), 44 XLAT(BPF_MAP_DELETE_ELEM), 45 XLAT(BPF_MAP_GET_NEXT_KEY), 46 XLAT(BPF_PROG_LOAD), 47 XLAT(BPF_OBJ_PIN), 48 XLAT(BPF_OBJ_GET), 49 XLAT(BPF_PROG_ATTACH), 50 XLAT(BPF_PROG_DETACH), 51 XLAT_END 52 }; 53 54 #endif /* !IN_MPERS */ 55