tcb-offsets.sym 1.1 KB

123456789101112131415161718192021222324252627
  1. #include <sysdep.h>
  2. #include <tls.h>
  3. RESULT offsetof (struct pthread, result)
  4. TID offsetof (struct pthread, tid)
  5. CANCELHANDLING offsetof (struct pthread, cancelhandling)
  6. CLEANUP_JMP_BUF offsetof (struct pthread, cleanup_jmp_buf)
  7. CLEANUP offsetof (struct pthread, cleanup)
  8. CLEANUP_PREV offsetof (struct _pthread_cleanup_buffer, __prev)
  9. MUTEX_FUTEX offsetof (pthread_mutex_t, __data.__lock)
  10. MULTIPLE_THREADS_OFFSET offsetof (tcbhead_t, multiple_threads)
  11. POINTER_GUARD offsetof (tcbhead_t, pointer_guard)
  12. VGETCPU_CACHE_OFFSET offsetof (tcbhead_t, vgetcpu_cache)
  13. #ifndef __ASSUME_PRIVATE_FUTEX
  14. PRIVATE_FUTEX offsetof (tcbhead_t, private_futex)
  15. #endif
  16. RTLD_SAVESPACE_SSE offsetof (tcbhead_t, rtld_savespace_sse)
  17. -- Not strictly offsets, but these values are also used in the TCB.
  18. TCB_CANCELSTATE_BITMASK CANCELSTATE_BITMASK
  19. TCB_CANCELTYPE_BITMASK CANCELTYPE_BITMASK
  20. TCB_CANCELING_BITMASK CANCELING_BITMASK
  21. TCB_CANCELED_BITMASK CANCELED_BITMASK
  22. TCB_EXITING_BITMASK EXITING_BITMASK
  23. TCB_CANCEL_RESTMASK CANCEL_RESTMASK
  24. TCB_TERMINATED_BITMASK TERMINATED_BITMASK
  25. TCB_PTHREAD_CANCELED PTHREAD_CANCELED