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