tcb-offsets.sym 1.1 KB

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