enum_unsigned_64_reloc.bpf.c 360 B

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