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 #if !(defined(BPF_PROG_TEST_RUN) || (defined(HAVE_DECL_BPF_PROG_TEST_RUN) && HAVE_DECL_BPF_PROG_TEST_RUN)) 33 # define BPF_PROG_TEST_RUN 10 34 #endif 35 #if !(defined(BPF_PROG_GET_NEXT_ID) || (defined(HAVE_DECL_BPF_PROG_GET_NEXT_ID) && HAVE_DECL_BPF_PROG_GET_NEXT_ID)) 36 # define BPF_PROG_GET_NEXT_ID 11 37 #endif 38 #if !(defined(BPF_MAP_GET_NEXT_ID) || (defined(HAVE_DECL_BPF_MAP_GET_NEXT_ID) && HAVE_DECL_BPF_MAP_GET_NEXT_ID)) 39 # define BPF_MAP_GET_NEXT_ID 12 40 #endif 41 #if !(defined(BPF_PROG_GET_FD_BY_ID) || (defined(HAVE_DECL_BPF_PROG_GET_FD_BY_ID) && HAVE_DECL_BPF_PROG_GET_FD_BY_ID)) 42 # define BPF_PROG_GET_FD_BY_ID 13 43 #endif 44 #if !(defined(BPF_MAP_GET_FD_BY_ID) || (defined(HAVE_DECL_BPF_MAP_GET_FD_BY_ID) && HAVE_DECL_BPF_MAP_GET_FD_BY_ID)) 45 # define BPF_MAP_GET_FD_BY_ID 14 46 #endif 47 #if !(defined(BPF_OBJ_GET_INFO_BY_FD) || (defined(HAVE_DECL_BPF_OBJ_GET_INFO_BY_FD) && HAVE_DECL_BPF_OBJ_GET_INFO_BY_FD)) 48 # define BPF_OBJ_GET_INFO_BY_FD 15 49 #endif 50 51 #ifdef IN_MPERS 52 53 # error static const struct xlat bpf_commands in mpers mode 54 55 #else 56 57 static 58 const struct xlat bpf_commands[] = { 59 XLAT(BPF_MAP_CREATE), 60 XLAT(BPF_MAP_LOOKUP_ELEM), 61 XLAT(BPF_MAP_UPDATE_ELEM), 62 XLAT(BPF_MAP_DELETE_ELEM), 63 XLAT(BPF_MAP_GET_NEXT_KEY), 64 XLAT(BPF_PROG_LOAD), 65 XLAT(BPF_OBJ_PIN), 66 XLAT(BPF_OBJ_GET), 67 XLAT(BPF_PROG_ATTACH), 68 XLAT(BPF_PROG_DETACH), 69 XLAT(BPF_PROG_TEST_RUN), 70 XLAT(BPF_PROG_GET_NEXT_ID), 71 XLAT(BPF_MAP_GET_NEXT_ID), 72 XLAT(BPF_PROG_GET_FD_BY_ID), 73 XLAT(BPF_MAP_GET_FD_BY_ID), 74 XLAT(BPF_OBJ_GET_INFO_BY_FD), 75 XLAT_END 76 }; 77 78 #endif /* !IN_MPERS */ 79