|
DMTCP
|
#include <asm/prctl.h>#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <stdlib.h>#include <sysdep.h>#include <nptl/descr.h>Go to the source code of this file.
Classes | |
| union | dtv |
| struct | tcbhead_t |
Macros | |
| #define | USE_TLS 1 |
| #define | STACK_ALIGN 16 |
| #define | LOCK_PREFIX "lock;" |
| #define | TLS_INIT_TCB_SIZE sizeof (struct pthread) |
| #define | TLS_INIT_TCB_ALIGN __alignof__ (struct pthread) |
| #define | TLS_TCB_SIZE sizeof (struct pthread) |
| #define | TLS_TCB_ALIGN __alignof__ (struct pthread) |
| #define | TLS_TCB_AT_TP 1 |
| #define | INSTALL_DTV(descr, dtvp) ((tcbhead_t *) (descr))->dtv = (dtvp) + 1 |
| #define | INSTALL_NEW_DTV(dtvp) |
| #define | GET_DTV(descr) (((tcbhead_t *) (descr))->dtv) |
| #define | TLS_GET_FS() ({ int __seg; __asm ("movl %%fs, %0" : "=q" (__seg)); __seg; }) |
| #define | TLS_SET_FS(val) __asm ("movl %0, %%fs" :: "q" (val)) |
| #define | TLS_INIT_TP(thrdescr, secondcall) |
| #define | THREAD_DTV() |
| #define | THREAD_SELF |
| #define | DB_THREAD_SELF_INCLUDE <sys/reg.h> /* For the FS constant. */ |
| #define | DB_THREAD_SELF CONST_THREAD_AREA (64, FS) |
| #define | THREAD_GETMEM(descr, member) |
| #define | THREAD_GETMEM_NC(descr, member, idx) |
| #define | IMM_MODE "ir" |
| #define | THREAD_SETMEM(descr, member, value) |
| #define | THREAD_SETMEM_NC(descr, member, idx, value) |
| #define | THREAD_ATOMIC_CMPXCHG_VAL(descr, member, newval, oldval) |
| #define | THREAD_ATOMIC_BIT_SET(descr, member, bit) |
| #define | CALL_THREAD_FCT(descr) |
| #define | THREAD_SET_STACK_GUARD(value) THREAD_SETMEM (THREAD_SELF, header.stack_guard, value) |
| #define | THREAD_COPY_STACK_GUARD(descr) |
| #define | THREAD_SET_POINTER_GUARD(value) THREAD_SETMEM (THREAD_SELF, header.pointer_guard, value) |
| #define | THREAD_COPY_POINTER_GUARD(descr) |
Typedefs | |
| typedef union dtv | dtv_t |
| #define CALL_THREAD_FCT | ( | descr) |
Definition at line 314 of file tls-x86_64.h.
| #define DB_THREAD_SELF CONST_THREAD_AREA (64, FS) |
Definition at line 176 of file tls-x86_64.h.
| #define DB_THREAD_SELF_INCLUDE <sys/reg.h> /* For the FS constant. */ |
Definition at line 175 of file tls-x86_64.h.
Definition at line 118 of file tls-x86_64.h.
| #define IMM_MODE "ir" |
Definition at line 235 of file tls-x86_64.h.
Definition at line 109 of file tls-x86_64.h.
| #define INSTALL_NEW_DTV | ( | dtvp) |
Definition at line 113 of file tls-x86_64.h.
| #define LOCK_PREFIX "lock;" |
Definition at line 84 of file tls-x86_64.h.
| #define STACK_ALIGN 16 |
Definition at line 69 of file tls-x86_64.h.
| #define THREAD_ATOMIC_BIT_SET | ( | descr, | |
| member, | |||
| bit | |||
| ) |
Definition at line 304 of file tls-x86_64.h.
| #define THREAD_ATOMIC_CMPXCHG_VAL | ( | descr, | |
| member, | |||
| newval, | |||
| oldval | |||
| ) |
Definition at line 289 of file tls-x86_64.h.
| #define THREAD_COPY_POINTER_GUARD | ( | descr) |
Definition at line 337 of file tls-x86_64.h.
| #define THREAD_COPY_STACK_GUARD | ( | descr) |
Definition at line 329 of file tls-x86_64.h.
| #define THREAD_DTV | ( | ) |
Definition at line 157 of file tls-x86_64.h.
| #define THREAD_GETMEM | ( | descr, | |
| member | |||
| ) |
Definition at line 179 of file tls-x86_64.h.
| #define THREAD_GETMEM_NC | ( | descr, | |
| member, | |||
| idx | |||
| ) |
Definition at line 204 of file tls-x86_64.h.
| #define THREAD_SELF |
Definition at line 168 of file tls-x86_64.h.
| #define THREAD_SET_POINTER_GUARD | ( | value) | THREAD_SETMEM (THREAD_SELF, header.pointer_guard, value) |
Definition at line 335 of file tls-x86_64.h.
| #define THREAD_SET_STACK_GUARD | ( | value) | THREAD_SETMEM (THREAD_SELF, header.stack_guard, value) |
Definition at line 327 of file tls-x86_64.h.
| #define THREAD_SETMEM | ( | descr, | |
| member, | |||
| value | |||
| ) |
Definition at line 240 of file tls-x86_64.h.
| #define THREAD_SETMEM_NC | ( | descr, | |
| member, | |||
| idx, | |||
| value | |||
| ) |
Definition at line 263 of file tls-x86_64.h.
| #define TLS_GET_FS | ( | ) | ({ int __seg; __asm ("movl %%fs, %0" : "=q" (__seg)); __seg; }) |
Definition at line 123 of file tls-x86_64.h.
| #define TLS_INIT_TCB_ALIGN __alignof__ (struct pthread) |
Definition at line 94 of file tls-x86_64.h.
| #define TLS_INIT_TCB_SIZE sizeof (struct pthread) |
Definition at line 91 of file tls-x86_64.h.
| #define TLS_INIT_TP | ( | thrdescr, | |
| secondcall | |||
| ) |
Definition at line 135 of file tls-x86_64.h.
| #define TLS_SET_FS | ( | val) | __asm ("movl %0, %%fs" :: "q" (val)) |
Definition at line 125 of file tls-x86_64.h.
| #define TLS_TCB_ALIGN __alignof__ (struct pthread) |
Definition at line 100 of file tls-x86_64.h.
| #define TLS_TCB_AT_TP 1 |
Definition at line 104 of file tls-x86_64.h.
| #define TLS_TCB_SIZE sizeof (struct pthread) |
Definition at line 97 of file tls-x86_64.h.
| #define USE_TLS 1 |
Definition at line 66 of file tls-x86_64.h.
1.8.4