enum_unsigned_32_reloc.bpf.c 344 B

1234567891011121314151617
  1. #include "reloc.h"
  2. enum relocated_enum_unsigned_32 {
  3. U32_VAL =
  4. #ifndef TARGET
  5. 0xAAAAAAAA
  6. #else
  7. 0xBBBBBBBB
  8. #endif
  9. };
  10. __noinline int enum_unsigned_32_global() {
  11. return set_output(
  12. bpf_core_enum_value(enum relocated_enum_unsigned_32, U32_VAL));
  13. }
  14. SEC("uprobe") int program(void *ctx) { return enum_unsigned_32_global(); }