(root)/
strace-6.5/
src/
xlat/
bpf_size.h
       1  /* Generated by ./src/xlat/gen.sh from ./src/xlat/bpf_size.in; do not edit. */
       2  
       3  #include "gcc_compat.h"
       4  #include "static_assert.h"
       5  
       6  #if defined(BPF_W) || (defined(HAVE_DECL_BPF_W) && HAVE_DECL_BPF_W)
       7  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
       8  static_assert((BPF_W) == (0x00), "BPF_W != 0x00");
       9  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      10  #else
      11  # define BPF_W 0x00
      12  #endif
      13  #if defined(BPF_H) || (defined(HAVE_DECL_BPF_H) && HAVE_DECL_BPF_H)
      14  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      15  static_assert((BPF_H) == (0x08), "BPF_H != 0x08");
      16  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      17  #else
      18  # define BPF_H 0x08
      19  #endif
      20  #if defined(BPF_B) || (defined(HAVE_DECL_BPF_B) && HAVE_DECL_BPF_B)
      21  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      22  static_assert((BPF_B) == (0x10), "BPF_B != 0x10");
      23  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      24  #else
      25  # define BPF_B 0x10
      26  #endif
      27  #if defined(BPF_DW) || (defined(HAVE_DECL_BPF_DW) && HAVE_DECL_BPF_DW)
      28  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      29  static_assert((BPF_DW) == (0x18), "BPF_DW != 0x18");
      30  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      31  #else
      32  # define BPF_DW 0x18
      33  #endif
      34  #undef XLAT_PREV_VAL
      35  
      36  #ifndef XLAT_MACROS_ONLY
      37  
      38  # ifdef IN_MPERS
      39  
      40  #  error static const struct xlat bpf_size in mpers mode
      41  
      42  # else
      43  
      44  DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
      45  static const struct xlat_data bpf_size_xdata[] = {
      46   XLAT(BPF_W),
      47   #define XLAT_VAL_0 ((unsigned) (BPF_W))
      48   #define XLAT_STR_0 STRINGIFY(BPF_W)
      49   XLAT(BPF_H),
      50   #define XLAT_VAL_1 ((unsigned) (BPF_H))
      51   #define XLAT_STR_1 STRINGIFY(BPF_H)
      52   XLAT(BPF_B),
      53   #define XLAT_VAL_2 ((unsigned) (BPF_B))
      54   #define XLAT_STR_2 STRINGIFY(BPF_B)
      55   XLAT(BPF_DW),
      56   #define XLAT_VAL_3 ((unsigned) (BPF_DW))
      57   #define XLAT_STR_3 STRINGIFY(BPF_DW)
      58  };
      59  static
      60  const struct xlat bpf_size[1] = { {
      61   .data = bpf_size_xdata,
      62   .size = ARRAY_SIZE(bpf_size_xdata),
      63   .type = XT_NORMAL,
      64   .flags_mask = 0
      65  #  ifdef XLAT_VAL_0
      66    | XLAT_VAL_0
      67  #  endif
      68  #  ifdef XLAT_VAL_1
      69    | XLAT_VAL_1
      70  #  endif
      71  #  ifdef XLAT_VAL_2
      72    | XLAT_VAL_2
      73  #  endif
      74  #  ifdef XLAT_VAL_3
      75    | XLAT_VAL_3
      76  #  endif
      77    ,
      78   .flags_strsz = 0
      79  #  ifdef XLAT_STR_0
      80    + sizeof(XLAT_STR_0)
      81  #  endif
      82  #  ifdef XLAT_STR_1
      83    + sizeof(XLAT_STR_1)
      84  #  endif
      85  #  ifdef XLAT_STR_2
      86    + sizeof(XLAT_STR_2)
      87  #  endif
      88  #  ifdef XLAT_STR_3
      89    + sizeof(XLAT_STR_3)
      90  #  endif
      91    ,
      92  } };
      93  DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
      94  
      95  #  undef XLAT_STR_0
      96  #  undef XLAT_VAL_0
      97  #  undef XLAT_STR_1
      98  #  undef XLAT_VAL_1
      99  #  undef XLAT_STR_2
     100  #  undef XLAT_VAL_2
     101  #  undef XLAT_STR_3
     102  #  undef XLAT_VAL_3
     103  # endif /* !IN_MPERS */
     104  
     105  #endif /* !XLAT_MACROS_ONLY */