/linux-4.1.27/arch/m32r/kernel/ |
H A D | asm-offsets.c | 1 #include <linux/thread_info.h> 6 OFFSET(TI_TASK, thread_info, task); foo() 7 OFFSET(TI_FLAGS, thread_info, flags); foo() 8 OFFSET(TI_STATUS, thread_info, status); foo() 9 OFFSET(TI_CPU, thread_info, cpu); foo() 10 OFFSET(TI_PRE_COUNT, thread_info, preempt_count); foo() 11 OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit); foo()
|
H A D | vmlinux.lds.S | 7 #include <asm/thread_info.h>
|
/linux-4.1.27/arch/cris/include/arch-v32/arch/ |
H A D | thread_info.h | 4 /* Return a thread_info struct. */ current_thread_info() 5 static inline struct thread_info *current_thread_info(void) current_thread_info() 7 struct thread_info *ti; current_thread_info()
|
H A D | offset.h | 22 #define TI_task 0 /* offsetof(struct thread_info, task) */ 23 #define TI_flags 8 /* offsetof(struct thread_info, flags) */ 24 #define TI_preempt_count 16 /* offsetof(struct thread_info, preempt_count) */
|
/linux-4.1.27/arch/avr32/kernel/ |
H A D | asm-offsets.c | 9 #include <linux/thread_info.h> 14 OFFSET(TI_task, thread_info, task); foo() 15 OFFSET(TI_flags, thread_info, flags); foo() 16 OFFSET(TI_cpu, thread_info, cpu); foo() 17 OFFSET(TI_preempt_count, thread_info, preempt_count); foo() 18 OFFSET(TI_rar_saved, thread_info, rar_saved); foo() 19 OFFSET(TI_rsr_saved, thread_info, rsr_saved); foo()
|
H A D | stacktrace.c | 12 #include <linux/thread_info.h>
|
H A D | vmlinux.lds.S | 13 #include <asm/thread_info.h>
|
/linux-4.1.27/arch/metag/kernel/ |
H A D | asm-offsets.c | 8 #include <linux/thread_info.h> 12 DEFINE(THREAD_INFO_SIZE, sizeof(struct thread_info)); main()
|
H A D | vmlinux.lds.S | 3 #include <asm/thread_info.h>
|
H A D | irq.c | 20 struct thread_info tinfo; 80 isp = (u32 *) ((char *)irqctx + sizeof(struct thread_info)); do_IRQ() 162 struct thread_info *curctx; do_softirq_own_stack() 171 isp = (u32 *) ((char *)irqctx + sizeof(struct thread_info)); do_softirq_own_stack()
|
/linux-4.1.27/arch/alpha/include/asm/ |
H A D | current.h | 4 #include <linux/thread_info.h>
|
H A D | thread_info.h | 14 struct thread_info { struct 41 #define init_thread_info (init_thread_union.thread_info) 45 register struct thread_info *__current_thread_info __asm__("$8"); 95 struct thread_info *ti = current_thread_info(); set_restore_sigmask() 109 struct thread_info *ti = current_thread_info(); test_and_clear_restore_sigmask()
|
H A D | processor.h | 38 /* This is dead. Everything has been moved to thread_info. */
|
H A D | elf.h | 109 struct thread_info; 112 struct thread_info *ti);
|
/linux-4.1.27/include/asm-generic/ |
H A D | current.h | 4 #include <linux/thread_info.h>
|
H A D | switch_to.h | 17 #include <linux/thread_info.h>
|
H A D | preempt.h | 4 #include <linux/thread_info.h>
|
/linux-4.1.27/arch/cris/include/arch-v10/arch/ |
H A D | thread_info.h | 5 static inline struct thread_info *current_thread_info(void) current_thread_info() 7 struct thread_info *ti; current_thread_info()
|
H A D | offset.h | 20 #define TI_task 0 /* offsetof(struct thread_info, task) */ 21 #define TI_flags 8 /* offsetof(struct thread_info, flags) */ 22 #define TI_preempt_count 16 /* offsetof(struct thread_info, preempt_count) */
|
/linux-4.1.27/arch/score/include/asm/ |
H A D | irq_regs.h | 4 #include <linux/thread_info.h>
|
H A D | thread_info.h | 29 struct thread_info { struct 60 #define init_thread_info (init_thread_union.thread_info) 64 register struct thread_info *__current_thread_info __asm__("r28");
|
/linux-4.1.27/arch/microblaze/include/asm/ |
H A D | switch_to.h | 13 struct thread_info; 15 extern struct task_struct *_switch_to(struct thread_info *prev, 16 struct thread_info *next);
|
H A D | thread_info.h | 66 struct thread_info { struct 89 #define init_thread_info (init_thread_union.thread_info) 93 static inline struct thread_info *current_thread_info(void) current_thread_info() 97 return (struct thread_info *)(sp & ~(THREAD_SIZE-1)); current_thread_info() 157 struct thread_info *ti = current_thread_info(); set_restore_sigmask() 171 struct thread_info *ti = current_thread_info(); test_and_clear_restore_sigmask()
|
/linux-4.1.27/arch/parisc/include/asm/ |
H A D | current.h | 4 #include <linux/thread_info.h>
|
H A D | ftrace.h | 9 * Used in struct thread_info
|
H A D | thread_info.h | 10 struct thread_info { struct 12 unsigned long flags; /* thread_info flags (see TIF_*) */ 27 #define init_thread_info (init_thread_union.thread_info) 31 #define current_thread_info() ((struct thread_info *)mfctl(30))
|
/linux-4.1.27/arch/avr32/include/asm/ |
H A D | current.h | 4 #include <linux/thread_info.h>
|
H A D | thread_info.h | 21 struct thread_info { struct 42 #define init_thread_info (init_thread_union.thread_info) 49 static inline struct thread_info *current_thread_info(void) current_thread_info() 54 return (struct thread_info *)addr; current_thread_info()
|
/linux-4.1.27/arch/cris/include/asm/ |
H A D | current.h | 4 #include <linux/thread_info.h>
|
H A D | thread_info.h | 0 /* thread_info.h: CRIS low-level thread information 17 #include <arch/thread_info.h> 29 struct thread_info { struct 58 #define init_thread_info (init_thread_union.thread_info)
|
H A D | processor.h | 28 /* THREAD_SIZE is the size of the thread_info/kernel_stack combo. 43 #define user_regs(thread_info) (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE)) - 1)
|
/linux-4.1.27/arch/m32r/include/asm/ |
H A D | current.h | 4 #include <linux/thread_info.h>
|
H A D | thread_info.h | 4 /* thread_info.h: m32r low-level thread information 25 struct thread_info { struct 58 #define init_thread_info (init_thread_union.thread_info) 62 static inline struct thread_info *current_thread_info(void) current_thread_info() 64 struct thread_info *ti; current_thread_info() 79 struct thread_info *ti = current_thread_info(); set_thread_fault_code() 86 struct thread_info *ti = current_thread_info(); get_thread_fault_code()
|
/linux-4.1.27/arch/xtensa/kernel/ |
H A D | asm-offsets.c | 20 #include <linux/thread_info.h> 80 /* offsets in thread_info struct */ main() 81 OFFSET(TI_TASK, thread_info, task); main() 82 OFFSET(TI_FLAGS, thread_info, flags); main() 83 OFFSET(TI_STSTUS, thread_info, status); main() 84 OFFSET(TI_CPU, thread_info, cpu); main() 85 OFFSET(TI_PRE_COUNT, thread_info, preempt_count); main() 86 OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit); main() 88 /* struct thread_info (offset from start_struct) */ main() 91 DEFINE(THREAD_CPENABLE, offsetof (struct thread_info, cpenable)); main() 93 DEFINE(THREAD_XTREGS_CP0, offsetof (struct thread_info, xtregs_cp)); main() 94 DEFINE(THREAD_XTREGS_CP1, offsetof (struct thread_info, xtregs_cp)); main() 95 DEFINE(THREAD_XTREGS_CP2, offsetof (struct thread_info, xtregs_cp)); main() 96 DEFINE(THREAD_XTREGS_CP3, offsetof (struct thread_info, xtregs_cp)); main() 97 DEFINE(THREAD_XTREGS_CP4, offsetof (struct thread_info, xtregs_cp)); main() 98 DEFINE(THREAD_XTREGS_CP5, offsetof (struct thread_info, xtregs_cp)); main() 99 DEFINE(THREAD_XTREGS_CP6, offsetof (struct thread_info, xtregs_cp)); main() 100 DEFINE(THREAD_XTREGS_CP7, offsetof (struct thread_info, xtregs_cp)); main() 102 DEFINE(THREAD_XTREGS_USER, offsetof (struct thread_info, xtregs_user)); main()
|
H A D | irq.c | 50 if (unlikely(sp < (sizeof(thread_info) + 1024))) do_IRQ() 52 sp - sizeof(struct thread_info)); do_IRQ()
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | irq.h | 51 extern struct thread_info *critirq_ctx[NR_CPUS]; 52 extern struct thread_info *dbgirq_ctx[NR_CPUS]; 53 extern struct thread_info *mcheckirq_ctx[NR_CPUS]; 62 extern struct thread_info *hardirq_ctx[NR_CPUS]; 63 extern struct thread_info *softirq_ctx[NR_CPUS]; 66 extern void call_do_softirq(struct thread_info *tp); 67 extern void call_do_irq(struct pt_regs *regs, struct thread_info *tp);
|
H A D | thread_info.h | 0 /* thread_info.h: PowerPC low-level thread information 40 struct thread_info { struct 62 #define init_thread_info (init_thread_union.thread_info) 68 static inline struct thread_info *current_thread_info(void) current_thread_info() 74 return (struct thread_info *)val; current_thread_info() 149 struct thread_info *ti = current_thread_info(); set_restore_sigmask() 163 struct thread_info *ti = current_thread_info(); test_and_clear_restore_sigmask() 172 struct thread_info *ti = current_thread_info(); test_thread_local_flags()
|
/linux-4.1.27/arch/tile/kernel/ |
H A D | asm-offsets.c | 32 #include <linux/thread_info.h> 54 offsetof(struct thread_info, task)); foo() 56 offsetof(struct thread_info, flags)); foo() 58 offsetof(struct thread_info, status)); foo() 60 offsetof(struct thread_info, homecache_cpu)); foo() 62 offsetof(struct thread_info, preempt_count)); foo() 64 offsetof(struct thread_info, step_state)); foo() 67 offsetof(struct thread_info, unalign_jit_base)); foo() 69 offsetof(struct thread_info, unalign_jit_tmp)); foo()
|
H A D | messaging.c | 61 if (unlikely(sp < (sizeof(struct thread_info) + STACK_WARN))) { hv_message_intr() 63 __func__, sp - sizeof(struct thread_info)); hv_message_intr()
|
H A D | vmlinux.lds.S | 4 #include <asm/thread_info.h>
|
/linux-4.1.27/arch/unicore32/include/asm/ |
H A D | switch_to.h | 14 struct thread_info; 22 struct thread_info *, struct thread_info *);
|
H A D | thread_info.h | 2 * linux/arch/unicore32/include/asm/thread_info.h 67 struct thread_info { struct 90 #define init_thread_info (init_thread_union.thread_info) 96 static inline struct thread_info *current_thread_info(void) __attribute_const__; 98 static inline struct thread_info *current_thread_info(void) current_thread_info() 101 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); current_thread_info()
|
H A D | uaccess.h | 15 #include <linux/thread_info.h>
|
/linux-4.1.27/arch/arm/include/asm/ |
H A D | switch_to.h | 4 #include <linux/thread_info.h> 21 extern struct task_struct *__switch_to(struct task_struct *, struct thread_info *, struct thread_info *);
|
H A D | thread_info.h | 2 * arch/arm/include/asm/thread_info.h 50 struct thread_info { struct 82 #define init_thread_info (init_thread_union.thread_info) 93 static inline struct thread_info *current_thread_info(void) __attribute_const__; 95 static inline struct thread_info *current_thread_info(void) current_thread_info() 97 return (struct thread_info *) current_thread_info() 114 extern void crunch_task_disable(struct thread_info *); 115 extern void crunch_task_copy(struct thread_info *, void *); 116 extern void crunch_task_restore(struct thread_info *, void *); 117 extern void crunch_task_release(struct thread_info *); 119 extern void iwmmxt_task_disable(struct thread_info *); 120 extern void iwmmxt_task_copy(struct thread_info *, void *); 121 extern void iwmmxt_task_restore(struct thread_info *, void *); 122 extern void iwmmxt_task_release(struct thread_info *); 123 extern void iwmmxt_task_switch(struct thread_info *); 125 extern void vfp_sync_hwstate(struct thread_info *); 126 extern void vfp_flush_hwstate(struct thread_info *);
|
H A D | thread_notify.h | 18 #include <asm/thread_info.h> 32 static inline void thread_notify(unsigned long rc, struct thread_info *thread) thread_notify()
|
H A D | tls.h | 5 #include <asm/thread_info.h> 59 struct thread_info *thread; set_tls() 74 * thread_info upon resuming execution and the following mcr set_tls() 112 * we need not update thread_info. set_tpuser()
|
/linux-4.1.27/arch/ia64/kernel/ |
H A D | init_task.c | 28 #define init_thread_info init_task_mem.s.thread_info 33 struct thread_info thread_info; member in struct:__anon1703::__anon1704 39 .thread_info = INIT_THREAD_INFO(init_task_mem.s.task)
|
H A D | asm-offsets.c | 25 DEFINE(IA64_THREAD_INFO_SIZE, sizeof (struct thread_info)); foo() 38 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); foo() 39 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); foo() 40 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); foo() 42 DEFINE(TI_AC_STAMP, offsetof(struct thread_info, ac_stamp)); foo() 43 DEFINE(TI_AC_LEAVE, offsetof(struct thread_info, ac_leave)); foo() 44 DEFINE(TI_AC_STIME, offsetof(struct thread_info, ac_stime)); foo() 45 DEFINE(TI_AC_UTIME, offsetof(struct thread_info, ac_utime)); foo()
|
/linux-4.1.27/arch/um/include/asm/ |
H A D | thread_info.h | 15 struct thread_info { struct 24 struct thread_info *real_thread; /* Points to non-IRQ stack */ 37 #define init_thread_info (init_thread_union.thread_info) 42 static inline struct thread_info *current_thread_info(void) current_thread_info() 44 struct thread_info *ti; current_thread_info() 49 ti = (struct thread_info *) (((unsigned long)p) & ~mask); current_thread_info()
|
H A D | uaccess.h | 9 /* thread_info has a mm_segment_t in it, so put the definition up here */ 14 #include <linux/thread_info.h>
|
/linux-4.1.27/scripts/gdb/linux/ |
H A D | tasks.py | 68 thread_info_type = utils.CachedType("struct thread_info") 81 thread_info = thread_info_addr.cast(thread_info_ptr_type) 83 thread_info = task['stack'].cast(thread_info_ptr_type) 84 return thread_info.dereference() 88 """Calculate Linux thread_info from task variable. 90 $lx_thread_info(TASK): Given TASK, return the corresponding thread_info
|
H A D | utils.py | 143 thread_info = gdb.execute("info thread 2", to_string=True) 144 return "shadowCPU0" in thread_info
|
/linux-4.1.27/arch/sh/kernel/ |
H A D | asm-offsets.c | 17 #include <asm/thread_info.h> 22 /* offsets into the thread_info struct */ main() 23 DEFINE(TI_TASK, offsetof(struct thread_info, task)); main() 24 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); main() 25 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); main() 26 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); main() 27 DEFINE(TI_SIZE, sizeof(struct thread_info)); main()
|
H A D | dumpstack.c | 57 struct thread_info *tinfo, int *graph) print_ftrace_graph_addr() 80 struct thread_info *tinfo, int *graph) print_ftrace_graph_addr() 89 struct thread_info *context; stack_reader_dump() 92 context = (struct thread_info *) stack_reader_dump()
|
H A D | idle.c | 16 #include <linux/thread_info.h>
|
H A D | vmlinux.lds.S | 13 #include <asm/thread_info.h>
|
H A D | irq.c | 20 #include <asm/thread_info.h> 60 struct thread_info tinfo; 152 struct thread_info *curctx; do_softirq_own_stack()
|
H A D | stacktrace.c | 14 #include <linux/thread_info.h>
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | asm-offsets.c | 16 DEFINE(TI_TASK, offsetof(struct thread_info, task)); foo() 17 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); foo() 18 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); foo()
|
H A D | vmlinux.lds.S | 2 #include <asm/thread_info.h>
|
/linux-4.1.27/arch/openrisc/kernel/ |
H A D | asm-offsets.c | 36 #include <linux/thread_info.h> 52 /* offsets into thread_info */ main() 53 DEFINE(TI_TASK, offsetof(struct thread_info, task)); main() 54 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); main() 55 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); main() 56 DEFINE(TI_KSP, offsetof(struct thread_info, ksp)); main()
|
H A D | process.c | 52 struct thread_info *current_thread_info_set[NR_CPUS] = { &init_thread_info, }; 183 * can restore it to thread_info->ksp... see _switch for details. copy_thread() 214 extern struct thread_info *_switch(struct thread_info *old_ti, 215 struct thread_info *new_ti); 221 struct thread_info *new_ti, *old_ti; __switch_to()
|
/linux-4.1.27/arch/blackfin/include/asm/ |
H A D | thread_info.h | 38 struct thread_info { struct 59 #define init_thread_info (init_thread_union.thread_info) 63 * thread_info structure just by masking it to the THREAD_SIZE 67 static inline struct thread_info *current_thread_info(void) current_thread_info() 69 struct thread_info *ti; current_thread_info() 71 return (struct thread_info *)((long)ti & ~((long)THREAD_SIZE-1)); current_thread_info()
|
/linux-4.1.27/arch/frv/kernel/ |
H A D | asm-offsets.c | 14 #include <asm/thread_info.h> 35 /* offsets into the thread_info structure */ foo() 36 OFFSET(TI_TASK, thread_info, task); foo() 37 OFFSET(TI_FLAGS, thread_info, flags); foo() 38 OFFSET(TI_STATUS, thread_info, status); foo() 39 OFFSET(TI_CPU, thread_info, cpu); foo() 40 OFFSET(TI_PREEMPT_COUNT, thread_info, preempt_count); foo() 41 OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit); foo()
|
H A D | vmlinux.lds.S | 12 #include <asm/thread_info.h>
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | asm-offsets.c | 15 #include <asm/thread_info.h> 32 OFFSET(TI_flags, thread_info, flags); common() 33 OFFSET(TI_status, thread_info, status); common() 34 OFFSET(TI_addr_limit, thread_info, addr_limit); common()
|
H A D | asm-offsets_32.c | 40 OFFSET(TI_sysenter_return, thread_info, sysenter_return); foo() 41 OFFSET(TI_cpu, thread_info, cpu); foo()
|
H A D | dumpstack.c | 45 struct thread_info *tinfo, int *graph) print_ftrace_graph_addr() 71 struct thread_info *tinfo, int *graph) print_ftrace_graph_addr() 82 static inline int valid_stack_ptr(struct thread_info *tinfo, valid_stack_ptr() 96 print_context_stack(struct thread_info *tinfo, print_context_stack() 124 print_context_stack_bp(struct thread_info *tinfo, print_context_stack_bp()
|
H A D | asm-offsets_64.c | 33 OFFSET(TI_sysenter_return, thread_info, sysenter_return); main()
|
H A D | irq_32.c | 42 return sp < (sizeof(struct thread_info) + STACK_WARN); check_stack_overflow() 140 struct thread_info *curstk; do_softirq_own_stack()
|
H A D | irq_64.c | 50 if (regs->sp >= curbase + sizeof(struct thread_info) + stack_overflow_check()
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | kstack.h | 4 #include <linux/thread_info.h> 10 static inline bool kstack_valid(struct thread_info *tp, unsigned long sp) kstack_valid() 18 if (sp >= (base + sizeof(struct thread_info)) && kstack_valid() 36 static inline bool kstack_is_trap_frame(struct thread_info *tp, struct pt_regs *regs) kstack_is_trap_frame()
|
H A D | stacktrace.c | 3 #include <linux/thread_info.h> 11 static void __save_stack_trace(struct thread_info *tp, __save_stack_trace() 81 struct thread_info *tp = task_thread_info(tsk); save_stack_trace_tsk()
|
H A D | sigutil_64.c | 3 #include <linux/thread_info.h> 72 struct thread_info *t = current_thread_info(); restore_rwin_state()
|
H A D | traps_32.c | 434 if (TI_UWINMASK != offsetof(struct thread_info, uwinmask) || trap_init() 435 TI_TASK != offsetof(struct thread_info, task) || trap_init() 436 TI_FLAGS != offsetof(struct thread_info, flags) || trap_init() 437 TI_CPU != offsetof(struct thread_info, cpu) || trap_init() 438 TI_PREEMPT != offsetof(struct thread_info, preempt_count) || trap_init() 439 TI_SOFTIRQ != offsetof(struct thread_info, softirq_count) || trap_init() 440 TI_HARDIRQ != offsetof(struct thread_info, hardirq_count) || trap_init() 441 TI_KSP != offsetof(struct thread_info, ksp) || trap_init() 442 TI_KPC != offsetof(struct thread_info, kpc) || trap_init() 443 TI_KPSR != offsetof(struct thread_info, kpsr) || trap_init() 444 TI_KWIM != offsetof(struct thread_info, kwim) || trap_init() 445 TI_REG_WINDOW != offsetof(struct thread_info, reg_window) || trap_init() 446 TI_RWIN_SPTRS != offsetof(struct thread_info, rwbuf_stkptrs) || trap_init() 447 TI_W_SAVED != offsetof(struct thread_info, w_saved)) trap_init()
|
H A D | windows.c | 41 static inline void shift_window_buffer(int first_win, int last_win, struct thread_info *tp) shift_window_buffer() 62 struct thread_info *tp = current_thread_info(); synchronize_user_stack() 114 struct thread_info *tp = current_thread_info(); try_to_clear_window_buffer()
|
H A D | asm-offsets.c | 10 * On sparc, thread_info data is static and TI_XXX offsets are computed by hand.
|
H A D | sigutil_32.c | 3 #include <linux/thread_info.h> 97 struct thread_info *t = current_thread_info(); restore_rwin_state()
|
H A D | vmlinux.lds.S | 6 #include <asm/thread_info.h>
|
H A D | process_64.c | 194 static void __global_reg_self(struct thread_info *tp, struct pt_regs *regs, __global_reg_self() 244 struct thread_info *tp = current_thread_info(); arch_trigger_all_cpu_backtrace() 402 struct thread_info *ti = task_thread_info(tsk); thread_saved_pc() 422 struct thread_info *t = current_thread_info(); exit_thread() 434 struct thread_info *t = current_thread_info(); flush_thread() 490 struct thread_info *t) shift_window_buffer() 503 struct thread_info *t = current_thread_info(); synchronize_user_stack() 543 struct thread_info *t = current_thread_info(); fault_in_user_windows() 622 struct thread_info *t = task_thread_info(p); copy_thread() 752 struct thread_info *tp; get_wchan()
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | current.h | 15 #include <linux/thread_info.h>
|
H A D | thread_info.h | 26 struct thread_info { struct 47 static inline struct thread_info *current_thread_info(void) current_thread_info() 49 struct thread_info *ti; current_thread_info() 60 #define init_thread_info (init_thread_union.thread_info)
|
H A D | irqflags.h | 9 #include <asm/thread_info.h>
|
/linux-4.1.27/include/linux/ |
H A D | thread_info.h | 0 /* thread_info.h: common low-level thread information accessors 54 #include <asm/thread_info.h> 69 static inline void set_ti_thread_flag(struct thread_info *ti, int flag) set_ti_thread_flag() 74 static inline void clear_ti_thread_flag(struct thread_info *ti, int flag) clear_ti_thread_flag() 79 static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag) test_and_set_ti_thread_flag() 84 static inline int test_and_clear_ti_thread_flag(struct thread_info *ti, int flag) test_and_clear_ti_thread_flag() 89 static inline int test_ti_thread_flag(struct thread_info *ti, int flag) test_ti_thread_flag()
|
H A D | seccomp.h | 10 #include <linux/thread_info.h>
|
/linux-4.1.27/arch/mn10300/kernel/ |
H A D | asm-offsets.c | 13 #include <asm/thread_info.h> 24 OFFSET(TI_task, thread_info, task); foo() 25 OFFSET(TI_frame, thread_info, frame); foo() 26 OFFSET(TI_flags, thread_info, flags); foo() 27 OFFSET(TI_cpu, thread_info, cpu); foo() 28 OFFSET(TI_preempt_count, thread_info, preempt_count); foo() 29 OFFSET(TI_addr_limit, thread_info, addr_limit); foo()
|
H A D | fpu-nofpu-low.S | 14 #include <asm/thread_info.h>
|
H A D | gdb-io-serial-low.S | 18 #include <asm/thread_info.h>
|
H A D | gdb-io-ttysm-low.S | 17 #include <asm/thread_info.h>
|
H A D | smp-low.S | 16 #include <asm/thread_info.h>
|
H A D | vmlinux.lds.S | 13 #include <asm/thread_info.h>
|
H A D | setup.c | 61 struct thread_info *__current_ti = &init_thread_union.thread_info;
|
/linux-4.1.27/arch/ia64/include/asm/ |
H A D | thread_info.h | 21 struct thread_info { struct 23 __u32 flags; /* thread_info flags (see TIF_*) */ 50 #define current_thread_info() ((struct thread_info *) ((char *) current + IA64_TASK_SIZE)) 52 ((struct thread_info *) ((char *) (tsk) + IA64_TASK_SIZE)) 53 #define task_thread_info(tsk) ((struct thread_info *) ((char *) (tsk) + IA64_TASK_SIZE)) 55 #define current_thread_info() ((struct thread_info *) 0) 56 #define alloc_thread_info_node(tsk, node) ((struct thread_info *) 0) 57 #define task_thread_info(tsk) ((struct thread_info *) 0) 130 struct thread_info *ti = current_thread_info(); set_restore_sigmask() 144 struct thread_info *ti = current_thread_info(); test_and_clear_restore_sigmask()
|
/linux-4.1.27/arch/s390/include/asm/ |
H A D | thread_info.h | 30 struct thread_info { struct 53 #define init_thread_info (init_thread_union.thread_info) 57 static inline struct thread_info *current_thread_info(void) current_thread_info() 59 return (struct thread_info *) S390_lowcore.thread_info; current_thread_info()
|
/linux-4.1.27/arch/arm/kernel/ |
H A D | asm-offsets.c | 24 #include <asm/thread_info.h> 66 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); main() 67 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); main() 68 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); main() 69 DEFINE(TI_TASK, offsetof(struct thread_info, task)); main() 70 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); main() 71 DEFINE(TI_CPU_DOMAIN, offsetof(struct thread_info, cpu_domain)); main() 72 DEFINE(TI_CPU_SAVE, offsetof(struct thread_info, cpu_context)); main() 73 DEFINE(TI_USED_CP, offsetof(struct thread_info, used_cp)); main() 74 DEFINE(TI_TP_VALUE, offsetof(struct thread_info, tp_value)); main() 75 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); main() 77 DEFINE(TI_VFPSTATE, offsetof(struct thread_info, vfpstate)); main() 83 DEFINE(TI_THUMBEE_STATE, offsetof(struct thread_info, thumbee_state)); main() 86 DEFINE(TI_IWMMXT_STATE, offsetof(struct thread_info, fpstate.iwmmxt)); main() 89 DEFINE(TI_CRUNCH_STATE, offsetof(struct thread_info, crunchstate)); main()
|
H A D | iwmmxt.S | 19 #include <asm/thread_info.h> 66 * r10 = struct thread_info pointer 192 * r0 = struct thread_info pointer of target task or NULL for any 243 * r0 = struct thread_info pointer of target task 281 * r0 = struct thread_info pointer of target task 319 * r0 = next thread_info pointer 352 * r0 = struct thread_info pointer
|
H A D | entry-v7m.S | 96 * r0 = previous task_struct, r1 = previous thread_info, r2 = next thread_info
|
H A D | xscale-cp0.c | 35 struct thread_info *thread = t; dsp_do() 60 struct thread_info *thread = t; iwmmxt_do()
|
H A D | thumbee.c | 44 struct thread_info *thread = t; thumbee_notifier()
|
H A D | ptrace.c | 305 struct thread_info *thread = task_thread_info(tsk); ptrace_getwmmxregs() 319 struct thread_info *thread = task_thread_info(tsk); ptrace_setwmmxregs() 336 struct thread_info *thread = task_thread_info(tsk); ptrace_getcrunchregs() 348 struct thread_info *thread = task_thread_info(tsk); ptrace_setcrunchregs() 358 * Convert a virtual register number into an index for a thread_info 633 struct thread_info *thread = task_thread_info(target); fpa_set() 671 struct thread_info *thread = task_thread_info(target); vfp_get() 708 struct thread_info *thread = task_thread_info(target); vfp_set()
|
/linux-4.1.27/arch/unicore32/kernel/ |
H A D | asm-offsets.c | 21 #include <linux/thread_info.h> 41 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); main() 42 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); main() 43 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); main() 44 DEFINE(TI_TASK, offsetof(struct thread_info, task)); main() 45 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); main() 46 DEFINE(TI_CPU_SAVE, offsetof(struct thread_info, cpu_context)); main() 47 DEFINE(TI_USED_CP, offsetof(struct thread_info, used_cp)); main() 49 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); main()
|
H A D | vmlinux.lds.S | 14 #include <asm/thread_info.h>
|
/linux-4.1.27/arch/metag/include/asm/ |
H A D | thread_info.h | 0 /* thread_info.h: Meta low-level thread information 29 struct thread_info { struct 76 #define init_thread_info (init_thread_union.thread_info) 83 static inline struct thread_info *current_thread_info(void) current_thread_info() 85 return (struct thread_info *)(current_stack_pointer & current_thread_info() 93 + sizeof(struct thread_info)); kstack_end()
|
H A D | ptrace.h | 25 sizeof(struct thread_info))) 29 sizeof(struct thread_info)))
|
/linux-4.1.27/arch/arm64/include/asm/ |
H A D | thread_info.h | 2 * Based on arch/arm/include/asm/thread_info.h 45 struct thread_info { struct 61 #define init_thread_info (init_thread_union.thread_info) 72 static inline struct thread_info *current_thread_info(void) __attribute_const__; 74 static inline struct thread_info *current_thread_info(void) current_thread_info() 76 return (struct thread_info *) current_thread_info()
|
/linux-4.1.27/arch/arc/include/asm/ |
H A D | thread_info.h | 9 * No need for ARC specific thread_info allocator (kmalloc/free). This is 31 #include <linux/thread_info.h> 41 struct thread_info { struct 64 #define init_thread_info (init_thread_union.thread_info) 67 static inline __attribute_const__ struct thread_info *current_thread_info(void) current_thread_info() 70 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); current_thread_info()
|
/linux-4.1.27/arch/sh/include/asm/ |
H A D | thread_info.h | 28 struct thread_info { struct 65 #define init_thread_info (init_thread_union.thread_info) 72 static inline struct thread_info *current_thread_info(void) current_thread_info() 74 struct thread_info *ti; current_thread_info() 162 struct thread_info *ti = current_thread_info(); set_restore_sigmask() 174 struct thread_info *ti = current_thread_info(); set_thread_fault_code() 181 struct thread_info *ti = current_thread_info(); get_thread_fault_code() 195 struct thread_info *ti = current_thread_info(); test_and_clear_restore_sigmask()
|
/linux-4.1.27/arch/cris/kernel/ |
H A D | asm-offsets.c | 3 #include <asm/thread_info.h> 37 #define ENTRY(entry) DEFINE(TI_ ## entry, offsetof(struct thread_info, entry)) main()
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | stacktrace.h | 14 struct thread_info; 17 typedef unsigned long (*walk_stack_t)(struct thread_info *tinfo, 26 print_context_stack(struct thread_info *tinfo, 32 print_context_stack_bp(struct thread_info *tinfo,
|
H A D | thread_info.h | 0 /* thread_info.h: low-level thread information 52 struct thread_info { struct 73 #define init_thread_info (init_thread_union.thread_info) 182 static inline struct thread_info *current_thread_info(void) current_thread_info() 184 return (struct thread_info *)(current_top_of_stack() - THREAD_SIZE); current_thread_info() 200 /* Load thread_info address into "reg" */ 206 * ASM operand which evaluates to a 'thread_info' address of 212 * the thread_info structure. So to access the thread_info very 217 * For example, to fetch the current thread_info->flags value into %eax 248 struct thread_info *ti = current_thread_info(); set_restore_sigmask() 262 struct thread_info *ti = current_thread_info(); test_and_clear_restore_sigmask()
|
H A D | switch_to.h | 115 "movq %P[thread_info](%%rsi),%%r8\n\t" \ 124 [ti_flags] "i" (offsetof(struct thread_info, flags)), \ 126 [thread_info] "i" (offsetof(struct task_struct, stack)), \
|
H A D | smp.h | 17 #include <asm/thread_info.h> 199 struct thread_info *ti; \
|
H A D | preempt.h | 6 #include <linux/thread_info.h>
|
/linux-4.1.27/arch/xtensa/include/asm/ |
H A D | current.h | 16 #include <linux/thread_info.h>
|
H A D | thread_info.h | 2 * include/asm-xtensa/thread_info.h 45 struct thread_info { struct 80 #define init_thread_info (init_thread_union.thread_info) 84 static inline struct thread_info *current_thread_info(void) current_thread_info() 86 struct thread_info *ti; current_thread_info()
|
H A D | coprocessor.h | 159 extern struct thread_info* coprocessor_owner[XCHAL_CP_MAX]; 162 extern void coprocessor_flush(struct thread_info*, int); 163 extern void coprocessor_restore(struct thread_info*, int); 165 extern void coprocessor_release_all(struct thread_info*); 166 extern void coprocessor_flush_all(struct thread_info*);
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | irq_regs.h | 14 #include <linux/thread_info.h>
|
H A D | thread_info.h | 0 /* thread_info.h: MIPS low-level thread information 24 struct thread_info { struct 52 #define init_thread_info (init_thread_union.thread_info) 56 register struct thread_info *__current_thread_info __asm__("$28"); 58 static inline struct thread_info *current_thread_info(void) current_thread_info()
|
H A D | switch_to.h | 40 struct task_struct *next, struct thread_info *next_ti, 62 struct thread_info *__prev_ti = task_thread_info(prev); \
|
/linux-4.1.27/arch/nios2/kernel/ |
H A D | asm-offsets.c | 24 #include <linux/thread_info.h> 81 /* struct thread_info */ main() 82 OFFSET(TI_FLAGS, thread_info, flags); main() 83 OFFSET(TI_PREEMPT_COUNT, thread_info, preempt_count); main()
|
H A D | vmlinux.lds.S | 21 #include <asm/thread_info.h>
|
/linux-4.1.27/arch/c6x/include/asm/ |
H A D | thread_info.h | 41 struct thread_info { struct 63 #define init_thread_info (init_thread_union.thread_info) 68 struct thread_info *current_thread_info(void) current_thread_info() 70 struct thread_info *ti; current_thread_info()
|
/linux-4.1.27/arch/arm/mach-ep93xx/ |
H A D | crunch.c | 26 void crunch_task_release(struct thread_info *thread) crunch_task_release() 41 struct thread_info *thread = (struct thread_info *)t; crunch_do()
|
H A D | crunch-bits.S | 17 #include <asm/thread_info.h> 62 * r10 = struct thread_info pointer 207 * r0 = struct thread_info pointer of target task or NULL for any 252 * r0 = struct thread_info pointer of target task 285 * r0 = struct thread_info pointer of target task
|
/linux-4.1.27/arch/arc/kernel/ |
H A D | asm-offsets.c | 12 #include <linux/thread_info.h> 32 DEFINE(THREAD_INFO_FLAGS, offsetof(struct thread_info, flags)); main() 34 offsetof(struct thread_info, preempt_count)); main()
|
H A D | head.S | 101 ; tsk->thread_info is really a PAGE, whose bottom hoists stack 125 ; set it's stack base to tsk->thread_info bottom
|
/linux-4.1.27/arch/sparc/include/asm/ |
H A D | thread_info_32.h | 2 * thread_info.h: sparc low-level thread information 27 struct thread_info { struct 65 #define init_thread_info (init_thread_union.thread_info) 69 register struct thread_info *current_thread_info_reg asm("g6"); 83 * Offsets in thread_info structure, used in assembly code
|
H A D | current.h | 14 #include <linux/thread_info.h>
|
H A D | thread_info_64.h | 0 /* thread_info.h: sparc64 low-level thread information 35 struct thread_info { struct 68 /* offsets into the thread_info struct for assembly code access */ 94 /* We embed this in the uppermost byte of thread_info->flags */ 122 #define init_thread_info (init_thread_union.thread_info) 126 register struct thread_info *current_thread_info_reg asm("g6"); 231 struct thread_info *ti = current_thread_info(); set_restore_sigmask() 245 struct thread_info *ti = current_thread_info(); test_and_clear_restore_sigmask()
|
/linux-4.1.27/arch/frv/include/asm/ |
H A D | thread_info.h | 0 /* thread_info.h: description 5 * Derived from include/asm-i386/thread_info.h 32 struct thread_info { struct 67 #define init_thread_info (init_thread_union.thread_info) 71 register struct thread_info *__current_thread_info asm("gr15");
|
H A D | switch_to.h | 15 #include <linux/thread_info.h>
|
/linux-4.1.27/arch/microblaze/kernel/ |
H A D | asm-offsets.c | 17 #include <linux/thread_info.h> 89 /* struct thread_info */ main() 90 DEFINE(TI_TASK, offsetof(struct thread_info, task)); main() 91 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); main() 92 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); main() 93 DEFINE(TI_CPU_CONTEXT, offsetof(struct thread_info, cpu_context)); main() 94 DEFINE(TI_PREEMPT_COUNT, offsetof(struct thread_info, preempt_count)); main()
|
H A D | stacktrace.c | 15 #include <linux/thread_info.h>
|
H A D | traps.c | 40 fp = ((struct thread_info *) show_stack()
|
H A D | process.c | 58 struct thread_info *ti = task_thread_info(p); copy_thread() 126 &(((struct thread_info *)(tsk->stack))->cpu_context); thread_saved_pc()
|
/linux-4.1.27/arch/tile/include/asm/ |
H A D | thread_info.h | 27 struct thread_info { struct 61 #define init_thread_info (init_thread_union.thread_info) 80 void arch_release_thread_info(struct thread_info *info); 86 ((struct thread_info *)(stack_pointer & -THREAD_SIZE)) 170 struct thread_info *ti = current_thread_info(); set_restore_sigmask() 184 struct thread_info *ti = current_thread_info(); test_and_clear_restore_sigmask()
|
H A D | current.h | 18 #include <linux/thread_info.h>
|
/linux-4.1.27/arch/mn10300/include/asm/ |
H A D | thread_info.h | 41 struct thread_info { struct 82 #define init_thread_info (init_thread_union.thread_info) 88 extern struct thread_info *__current_ti; 92 struct thread_info *current_thread_info(void) current_thread_info() 94 struct thread_info *ti; current_thread_info() 118 void arch_release_thread_info(struct thread_info *ti);
|
H A D | current.h | 14 #include <linux/thread_info.h>
|
H A D | smp.h | 27 #include <linux/thread_info.h> 61 * thread_info struct, and that can be cached.
|
/linux-4.1.27/arch/s390/kernel/ |
H A D | asm-offsets.c | 36 DEFINE(__TI_task, offsetof(struct thread_info, task)); main() 37 DEFINE(__TI_flags, offsetof(struct thread_info, flags)); main() 38 DEFINE(__TI_sysc_table, offsetof(struct thread_info, sys_call_table)); main() 39 DEFINE(__TI_cpu, offsetof(struct thread_info, cpu)); main() 40 DEFINE(__TI_precount, offsetof(struct thread_info, preempt_count)); main() 41 DEFINE(__TI_user_timer, offsetof(struct thread_info, user_timer)); main() 42 DEFINE(__TI_system_timer, offsetof(struct thread_info, system_timer)); main() 43 DEFINE(__TI_last_break, offsetof(struct thread_info, last_break)); main() 145 DEFINE(__LC_THREAD_INFO, offsetof(struct _lowcore, thread_info)); main()
|
H A D | stacktrace.c | 80 S390_lowcore.thread_info, save_stack_trace() 81 S390_lowcore.thread_info + THREAD_SIZE, 1); save_stack_trace()
|
H A D | vmlinux.lds.S | 5 #include <asm/thread_info.h>
|
H A D | dumpstack.c | 90 __show_trace(sp, S390_lowcore.thread_info, show_trace() 91 S390_lowcore.thread_info + THREAD_SIZE); show_trace()
|
/linux-4.1.27/arch/nios2/include/asm/ |
H A D | thread_info.h | 40 struct thread_info { struct 66 #define init_thread_info (init_thread_union.thread_info) 70 static inline struct thread_info *current_thread_info(void) current_thread_info() 74 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); current_thread_info()
|
/linux-4.1.27/arch/hexagon/kernel/ |
H A D | asm-offsets.c | 77 COMMENT("Hexagon thread_info definitions"); main() 78 OFFSET(_THREAD_INFO_FLAGS, thread_info, flags); main() 79 OFFSET(_THREAD_INFO_PT_REGS, thread_info, regs); main() 80 OFFSET(_THREAD_INFO_SP, thread_info, sp); main()
|
H A D | smp.c | 150 /* Calculate thread_info pointer from stack pointer */ start_secondary() 195 struct thread_info *thread = (struct thread_info *)idle->stack; __cpu_up()
|
H A D | stacktrace.c | 23 #include <linux/thread_info.h>
|
H A D | vm_entry.S | 24 #include <asm/thread_info.h> 36 * Save full register state, while setting up thread_info struct 38 * register, putting prior thread_info.regs pointer in a callee-save 40 * and updating thread_info.regs to point to current stack frame, 132 * Restore registers and thread_info.regs state. THREADINFO_REG
|
/linux-4.1.27/arch/powerpc/kernel/ |
H A D | kgdb.c | 153 static DEFINE_PER_CPU(struct thread_info, kgdb_thread_info); kgdb_singlestep() 156 struct thread_info *thread_info, *exception_thread_info; kgdb_singlestep() local 157 struct thread_info *backup_current_thread_info = kgdb_singlestep() 166 * to fail, since it it locates the thread_info by masking off kgdb_singlestep() 168 * this issue by copying the thread_info from the kernel stack kgdb_singlestep() 171 * exception_thread_info == thread_info. kgdb_singlestep() 173 thread_info = (struct thread_info *)(regs->gpr[1] & ~(THREAD_SIZE-1)); kgdb_singlestep() 176 if (thread_info != exception_thread_info) { kgdb_singlestep() 178 memcpy(backup_current_thread_info, exception_thread_info, sizeof *thread_info); kgdb_singlestep() 179 memcpy(exception_thread_info, thread_info, sizeof *thread_info); kgdb_singlestep() 184 if (thread_info != exception_thread_info) kgdb_singlestep() 186 memcpy(exception_thread_info, backup_current_thread_info, sizeof *thread_info); kgdb_singlestep()
|
H A D | irq.c | 471 if (unlikely(sp < (sizeof(struct thread_info) + 2048))) { check_stack_overflow() 473 sp - sizeof(struct thread_info)); check_stack_overflow() 513 struct thread_info *curtp, *irqtp, *sirqtp; do_IRQ() 527 /* Prepare the thread_info in the irq stack */ do_IRQ() 540 /* Copy back updates to the thread_info */ do_IRQ() 558 struct thread_info *critirq_ctx[NR_CPUS] __read_mostly; 559 struct thread_info *dbgirq_ctx[NR_CPUS] __read_mostly; 560 struct thread_info *mcheckirq_ctx[NR_CPUS] __read_mostly; 564 struct thread_info *tp; exc_lvl_ctx_init() 598 struct thread_info *softirq_ctx[NR_CPUS] __read_mostly; 599 struct thread_info *hardirq_ctx[NR_CPUS] __read_mostly; 603 struct thread_info *tp; irq_ctx_init() 619 struct thread_info *curtp, *irqtp; do_softirq_own_stack()
|
H A D | setup_32.c | 227 softirq_ctx[i] = (struct thread_info *) for_each_possible_cpu() 229 hardirq_ctx[i] = (struct thread_info *) for_each_possible_cpu() 248 critirq_ctx[hw_cpu] = (struct thread_info *) for_each_possible_cpu() 251 dbgirq_ctx[hw_cpu] = (struct thread_info *) for_each_possible_cpu() 253 mcheckirq_ctx[hw_cpu] = (struct thread_info *) for_each_possible_cpu()
|
H A D | epapr_hcalls.S | 15 #include <asm/thread_info.h>
|
H A D | idle_power4.S | 14 #include <asm/thread_info.h>
|
/linux-4.1.27/arch/s390/oprofile/ |
H A D | backtrace.c | 75 __show_trace(&depth, head, S390_lowcore.thread_info, s390_backtrace() 76 S390_lowcore.thread_info + THREAD_SIZE); s390_backtrace()
|
/linux-4.1.27/arch/score/kernel/ |
H A D | asm-offsets.c | 101 COMMENT("SCORE thread_info offsets."); output_thread_info_defines() 102 OFFSET(TI_TASK, thread_info, task); output_thread_info_defines() 103 OFFSET(TI_FLAGS, thread_info, flags); output_thread_info_defines() 104 OFFSET(TI_TP_VALUE, thread_info, tp_value); output_thread_info_defines() 105 OFFSET(TI_CPU, thread_info, cpu); output_thread_info_defines() 106 OFFSET(TI_PRE_COUNT, thread_info, preempt_count); output_thread_info_defines() 107 OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit); output_thread_info_defines() 108 OFFSET(TI_REGS, thread_info, regs); output_thread_info_defines()
|
/linux-4.1.27/arch/arm/vfp/ |
H A D | entry.S | 13 #include <asm/thread_info.h> 23 @ r10 = this threads thread_info structure
|
H A D | vfpmodule.c | 65 static bool vfp_state_in_hw(unsigned int cpu, struct thread_info *thread) vfp_state_in_hw() 79 static void vfp_force_reload(unsigned int cpu, struct thread_info *thread) vfp_force_reload() 93 static void vfp_thread_flush(struct thread_info *thread) vfp_thread_flush() 121 static void vfp_thread_exit(struct thread_info *thread) vfp_thread_exit() 132 static void vfp_thread_copy(struct thread_info *thread) vfp_thread_copy() 134 struct thread_info *parent = current_thread_info(); vfp_thread_copy() 168 struct thread_info *thread = v; vfp_notifier() 451 struct thread_info *ti = current_thread_info(); vfp_pm_suspend() 516 void vfp_sync_hwstate(struct thread_info *thread) vfp_sync_hwstate() 535 void vfp_flush_hwstate(struct thread_info *thread) vfp_flush_hwstate() 551 struct thread_info *thread = current_thread_info(); vfp_preserve_user_clear_hwstate() 594 struct thread_info *thread = current_thread_info(); vfp_restore_user_hwstate() 679 struct thread_info *thread = current_thread_info(); kernel_neon_begin()
|
/linux-4.1.27/arch/c6x/kernel/ |
H A D | switch_to.S | 16 * void __switch_to(struct thread_info *prev, 17 * struct thread_info *next,
|
H A D | asm-offsets.c | 8 #include <linux/thread_info.h> 102 OFFSET(THREAD_INFO_FLAGS, thread_info, flags); foo() 103 OFFSET(THREAD_INFO_PREEMPT_COUNT, thread_info, preempt_count); foo()
|
H A D | vmlinux.lds.S | 8 #include <asm/thread_info.h>
|
/linux-4.1.27/kernel/locking/ |
H A D | mutex-debug.h | 23 struct thread_info *ti); 25 struct thread_info *ti);
|
H A D | mutex-debug.c | 52 struct thread_info *ti) debug_mutex_add_waiter() 61 struct thread_info *ti) mutex_remove_waiter()
|
/linux-4.1.27/arch/m68k/68360/ |
H A D | entry.S | 16 #include <asm/thread_info.h> 74 movel %sp,%d1 /* get thread_info pointer */ 100 movel %sp,%d1 /* get thread_info pointer */ 104 move %a2@(TINFO_FLAGS),%d1 /* thread_info->flags */ 109 movel %a2@(TINFO_FLAGS),%d1 /* thread_info->flags */
|
/linux-4.1.27/arch/um/kernel/ |
H A D | irq.c | 368 * thread_info structure at the bottom so that current et al continue 371 * to_irq_stack copies the current task's thread_info to the IRQ stack 372 * thread_info and sets the tasks's stack to point to the IRQ stack. 374 * from_irq_stack copies the thread_info struct back (flags may have 382 * thread_info. 385 * The first interrupt on the stack - sets up the thread_info and 387 * A nested interrupt interrupting the copying of the thread_info - 390 * thread_info - doesn't do any setup, just handles the interrupt 393 * This is done by xchging the signal mask with thread_info->pending. 401 * one. As part of setting up the stack, thread_info->real_thread is 411 struct thread_info *ti; to_irq_stack() 438 struct thread_info *tti; to_irq_stack() 455 struct thread_info *ti, *to; from_irq_stack()
|
/linux-4.1.27/arch/m68k/coldfire/ |
H A D | entry.S | 31 #include <asm/thread_info.h> 75 movel %sp,%d2 /* get thread_info pointer */ 112 movel %sp,%d1 /* get thread_info pointer */ 115 movel %a0@(TINFO_FLAGS),%d1 /* get thread_info->flags */ 136 movel %sp,%d1 /* get thread_info pointer */ 139 moveb %a0@(TINFO_FLAGS+3),%d1 /* thread_info->flags (low 8 bits) */ 146 movel %a0@(TINFO_FLAGS),%d1 /* get thread_info->flags */
|
/linux-4.1.27/arch/mips/kernel/ |
H A D | smp-cmp.c | 79 * (unsigned long)idle->thread_info the gp 83 struct thread_info *gp = task_thread_info(idle); cmp_boot_secondary() 94 (unsigned long)(gp + sizeof(struct thread_info))); cmp_boot_secondary()
|
H A D | irq.c | 124 if (unlikely(sp < (sizeof(struct thread_info) + STACK_WARN))) { check_stack_overflow() 126 sp - sizeof(struct thread_info)); check_stack_overflow()
|
H A D | asm-offsets.c | 93 COMMENT("MIPS thread_info offsets."); output_thread_info_defines() 94 OFFSET(TI_TASK, thread_info, task); output_thread_info_defines() 95 OFFSET(TI_FLAGS, thread_info, flags); output_thread_info_defines() 96 OFFSET(TI_TP_VALUE, thread_info, tp_value); output_thread_info_defines() 97 OFFSET(TI_CPU, thread_info, cpu); output_thread_info_defines() 98 OFFSET(TI_PRE_COUNT, thread_info, preempt_count); output_thread_info_defines() 99 OFFSET(TI_R2_EMUL_RET, thread_info, r2_emul_return); output_thread_info_defines() 100 OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit); output_thread_info_defines() 101 OFFSET(TI_REGS, thread_info, regs); output_thread_info_defines()
|
H A D | r2300_switch.S | 20 #include <asm/thread_info.h> 45 * struct thread_info *next_ti, int usedfpu)
|
/linux-4.1.27/arch/openrisc/include/asm/ |
H A D | thread_info.h | 49 struct thread_info { struct 82 #define init_thread_info (init_thread_union.thread_info) 85 register struct thread_info *current_thread_info_reg asm("r10");
|
H A D | processor.h | 66 #define user_regs(thread_info) (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE - STACK_FRAME_OVERHEAD)) - 1)
|
/linux-4.1.27/arch/hexagon/include/asm/ |
H A D | thread_info.h | 48 struct thread_info { struct 87 #define init_thread_info (init_thread_union.thread_info) 95 register struct thread_info *__current_thread_info asm(QUOTED_THREADINFO_REG);
|
/linux-4.1.27/arch/m68k/kernel/ |
H A D | asm-offsets.c | 40 /* offsets into the thread_info struct */ main() 41 DEFINE(TINFO_PREEMPT, offsetof(struct thread_info, preempt_count)); main() 42 DEFINE(TINFO_FLAGS, offsetof(struct thread_info, flags)); main()
|
/linux-4.1.27/arch/sparc/prom/ |
H A D | cif.S | 9 #include <asm/thread_info.h>
|
/linux-4.1.27/arch/tile/lib/ |
H A D | delay.c | 17 #include <linux/thread_info.h>
|
/linux-4.1.27/include/trace/ |
H A D | syscall.h | 7 #include <linux/thread_info.h>
|
/linux-4.1.27/arch/powerpc/sysdev/ |
H A D | 6xx-suspend.S | 16 #include <asm/thread_info.h>
|
/linux-4.1.27/arch/s390/boot/compressed/ |
H A D | head.S | 12 #include <asm/thread_info.h>
|
/linux-4.1.27/arch/avr32/lib/ |
H A D | clear_user.S | 9 #include <asm/thread_info.h>
|
H A D | strncpy_from_user.S | 13 #include <asm/thread_info.h>
|
H A D | strnlen_user.S | 11 #include <asm/thread_info.h>
|
/linux-4.1.27/arch/blackfin/kernel/ |
H A D | entry.S | 8 #include <asm/thread_info.h>
|
H A D | stacktrace.c | 10 #include <linux/thread_info.h>
|
H A D | asm-offsets.c | 15 #include <linux/thread_info.h> 45 /* offsets in thread_info struct */ main() 46 OFFSET(TI_TASK, thread_info, task); main() 47 OFFSET(TI_FLAGS, thread_info, flags); main() 48 OFFSET(TI_CPU, thread_info, cpu); main() 49 OFFSET(TI_PREEMPT, thread_info, preempt_count); main()
|
H A D | irqchip.c | 56 if (unlikely(sp < (sizeof(struct thread_info) + STACK_WARN))) { check_stack_overflow() 59 irq, sp - sizeof(struct thread_info)); check_stack_overflow()
|
/linux-4.1.27/arch/arm64/kernel/ |
H A D | asm-offsets.c | 25 #include <asm/thread_info.h> 36 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); main() 37 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); main() 38 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); main() 39 DEFINE(TI_TASK, offsetof(struct thread_info, task)); main() 40 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); main()
|
/linux-4.1.27/arch/m68k/68000/ |
H A D | entry.S | 14 #include <asm/thread_info.h> 78 movel %sp,%d1 /* get thread_info pointer */ 104 movel %sp,%d1 /* get thread_info pointer */ 108 move %a2@(TINFO_FLAGS),%d1 /* thread_info->flags */ 113 movel %a2@(TINFO_FLAGS),%d1 /* thread_info->flags */
|
/linux-4.1.27/arch/parisc/kernel/ |
H A D | asm-offsets.c | 32 #include <linux/thread_info.h> 244 DEFINE(TI_TASK, offsetof(struct thread_info, task)); main() 245 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); main() 246 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); main() 247 DEFINE(TI_SEGMENT, offsetof(struct thread_info, addr_limit)); main() 248 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); main() 249 DEFINE(THREAD_SZ, sizeof(struct thread_info)); main() 251 DEFINE(THREAD_SZ_ALGN, align_frame(sizeof(struct thread_info), FRAME_ALIGN)); main()
|
/linux-4.1.27/arch/x86/lib/ |
H A D | putuser.S | 15 #include <asm/thread_info.h>
|
H A D | copy_user_nocache_64.S | 16 #include <asm/thread_info.h>
|
/linux-4.1.27/arch/x86/um/ |
H A D | ptrace_32.c | 195 int err, n, cpu = ((struct thread_info *) child->stack)->cpu; get_fpregs() 211 int n, cpu = ((struct thread_info *) child->stack)->cpu; set_fpregs() 224 int err, n, cpu = ((struct thread_info *) child->stack)->cpu; get_fpxregs() 240 int n, cpu = ((struct thread_info *) child->stack)->cpu; set_fpxregs()
|
/linux-4.1.27/arch/xtensa/include/uapi/asm/ |
H A D | ptrace.h | 36 * | struct thread_info | | | |
|
/linux-4.1.27/arch/sh/mm/ |
H A D | tlbex_32.c | 16 #include <asm/thread_info.h>
|
/linux-4.1.27/arch/sparc/lib/ |
H A D | VISsave.S | 13 #include <asm/thread_info.h>
|
/linux-4.1.27/arch/avr32/boot/u-boot/ |
H A D | head.S | 11 #include <asm/thread_info.h>
|
/linux-4.1.27/arch/avr32/oprofile/ |
H A D | backtrace.c | 28 static inline int valid_stack_ptr(struct thread_info *tinfo, unsigned long p) valid_stack_ptr()
|
/linux-4.1.27/tools/virtio/virtio-trace/ |
H A D | trace-agent-rw.c | 106 static void *rw_thread_main(void *thread_info) rw_thread_main() argument 110 struct rw_thread_info *ts = (struct rw_thread_info *)thread_info; rw_thread_main()
|
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/ |
H A D | linux-curproc.c | 47 #include <linux/thread_info.h>
|