Home
last modified time | relevance | path

Searched refs:thread_info (Results 1 – 200 of 218) sorted by relevance

12

/linux-4.1.27/arch/arm/include/asm/
Dthread_info.h50 struct thread_info { struct
82 #define init_thread_info (init_thread_union.thread_info) argument
93 static inline struct thread_info *current_thread_info(void) __attribute_const__;
95 static inline struct thread_info *current_thread_info(void) in current_thread_info()
97 return (struct thread_info *) in 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 *);
[all …]
Dswitch_to.h21 … struct task_struct *__switch_to(struct task_struct *, struct thread_info *, struct thread_info *);
Dthread_notify.h32 static inline void thread_notify(unsigned long rc, struct thread_info *thread) in thread_notify()
Ddomain.h73 struct thread_info *thread = current_thread_info(); \
Dtls.h59 struct thread_info *thread;
/linux-4.1.27/arch/xtensa/kernel/
Dasm-offsets.c81 OFFSET(TI_TASK, thread_info, task); in main()
82 OFFSET(TI_FLAGS, thread_info, flags); in main()
83 OFFSET(TI_STSTUS, thread_info, status); in main()
84 OFFSET(TI_CPU, thread_info, cpu); in main()
85 OFFSET(TI_PRE_COUNT, thread_info, preempt_count); in main()
86 OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit); in main()
91 DEFINE(THREAD_CPENABLE, offsetof (struct thread_info, cpenable)); in main()
93 DEFINE(THREAD_XTREGS_CP0, offsetof (struct thread_info, xtregs_cp)); in main()
94 DEFINE(THREAD_XTREGS_CP1, offsetof (struct thread_info, xtregs_cp)); in main()
95 DEFINE(THREAD_XTREGS_CP2, offsetof (struct thread_info, xtregs_cp)); in main()
[all …]
Dprocess.c58 void coprocessor_release_all(struct thread_info *ti) in coprocessor_release_all()
84 void coprocessor_flush_all(struct thread_info *ti) in coprocessor_flush_all()
130 struct thread_info *ti = current_thread_info(); in flush_thread()
197 struct thread_info *ti; in copy_thread()
Dirq.c50 if (unlikely(sp < (sizeof(thread_info) + 1024))) in do_IRQ()
52 sp - sizeof(struct thread_info)); in do_IRQ()
Dptrace.c130 struct thread_info *ti = task_thread_info(child); in ptrace_getxregs()
153 struct thread_info *ti = task_thread_info(child); in ptrace_setxregs()
Dsignal.c138 struct thread_info *ti = current_thread_info(); in setup_sigcontext()
177 struct thread_info *ti = current_thread_info(); in restore_sigcontext()
/linux-4.1.27/arch/powerpc/include/asm/
Dirq.h51 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);
Dthread_info.h40 struct thread_info { struct
62 #define init_thread_info (init_thread_union.thread_info) argument
68 static inline struct thread_info *current_thread_info(void) in current_thread_info()
74 return (struct thread_info *)val; in current_thread_info()
149 struct thread_info *ti = current_thread_info(); in set_restore_sigmask()
163 struct thread_info *ti = current_thread_info(); in test_and_clear_restore_sigmask()
172 struct thread_info *ti = current_thread_info(); in test_thread_local_flags()
/linux-4.1.27/arch/m32r/kernel/
Dasm-offsets.c6 OFFSET(TI_TASK, thread_info, task); in foo()
7 OFFSET(TI_FLAGS, thread_info, flags); in foo()
8 OFFSET(TI_STATUS, thread_info, status); in foo()
9 OFFSET(TI_CPU, thread_info, cpu); in foo()
10 OFFSET(TI_PRE_COUNT, thread_info, preempt_count); in foo()
11 OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit); in foo()
/linux-4.1.27/arch/avr32/kernel/
Dasm-offsets.c14 OFFSET(TI_task, thread_info, task); in foo()
15 OFFSET(TI_flags, thread_info, flags); in foo()
16 OFFSET(TI_cpu, thread_info, cpu); in foo()
17 OFFSET(TI_preempt_count, thread_info, preempt_count); in foo()
18 OFFSET(TI_rar_saved, thread_info, rar_saved); in foo()
19 OFFSET(TI_rsr_saved, thread_info, rsr_saved); in foo()
Dprocess.c111 static inline int valid_stack_ptr(struct thread_info *tinfo, unsigned long p) in valid_stack_ptr()
122 struct thread_info *tinfo; in show_trace_log_lvl()
182 struct thread_info *tinfo; in show_stack_log_lvl()
Dptrace.c236 struct thread_info *ti; in do_debug()
Dsignal.c274 asmlinkage void do_notify_resume(struct pt_regs *regs, struct thread_info *ti) in do_notify_resume()
/linux-4.1.27/arch/tile/kernel/
Dasm-offsets.c54 offsetof(struct thread_info, task)); in foo()
56 offsetof(struct thread_info, flags)); in foo()
58 offsetof(struct thread_info, status)); in foo()
60 offsetof(struct thread_info, homecache_cpu)); in foo()
62 offsetof(struct thread_info, preempt_count)); in foo()
64 offsetof(struct thread_info, step_state)); in foo()
67 offsetof(struct thread_info, unalign_jit_base)); in foo()
69 offsetof(struct thread_info, unalign_jit_tmp)); in foo()
Dmessaging.c61 if (unlikely(sp < (sizeof(struct thread_info) + STACK_WARN))) { in hv_message_intr()
63 __func__, sp - sizeof(struct thread_info)); in hv_message_intr()
Dirq.c109 if (unlikely(sp < (sizeof(struct thread_info) + STACK_WARN))) { in tile_dev_intr()
111 __func__, sp - sizeof(struct thread_info)); in tile_dev_intr()
Dsingle_step.c284 struct thread_info *ti = current_thread_info(); in single_step_execve()
312 struct thread_info *info = (void *)current_thread_info(); in single_step_once()
744 struct thread_info *info = (void *)current_thread_info(); in gx_singlestep_handle()
Dprocess.c75 void arch_release_thread_info(struct thread_info *info) in arch_release_thread_info()
Dstack.c211 else if (sp < ksp0_base + sizeof(struct thread_info)) { in validate_stack()
/linux-4.1.27/arch/ia64/include/asm/
Dthread_info.h21 struct thread_info { struct
50 #define current_thread_info() ((struct thread_info *) ((char *) current + IA64_TASK_SIZE)) argument
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(); in set_restore_sigmask()
144 struct thread_info *ti = current_thread_info(); in test_and_clear_restore_sigmask()
/linux-4.1.27/arch/um/include/asm/
Dthread_info.h15 struct thread_info { struct
24 struct thread_info *real_thread; /* Points to non-IRQ stack */ argument
37 #define init_thread_info (init_thread_union.thread_info)
42 static inline struct thread_info *current_thread_info(void) in current_thread_info()
44 struct thread_info *ti; in current_thread_info()
49 ti = (struct thread_info *) (((unsigned long)p) & ~mask); in current_thread_info()
/linux-4.1.27/arch/m32r/include/asm/
Dthread_info.h25 struct thread_info { struct
58 #define init_thread_info (init_thread_union.thread_info) argument
62 static inline struct thread_info *current_thread_info(void) in current_thread_info()
64 struct thread_info *ti; in current_thread_info()
79 struct thread_info *ti = current_thread_info(); in set_thread_fault_code()
86 struct thread_info *ti = current_thread_info(); in get_thread_fault_code()
/linux-4.1.27/arch/sh/include/asm/
Dthread_info.h28 struct thread_info { struct
65 #define init_thread_info (init_thread_union.thread_info)
72 static inline struct thread_info *current_thread_info(void) in current_thread_info()
74 struct thread_info *ti; in current_thread_info()
162 struct thread_info *ti = current_thread_info(); in set_restore_sigmask()
174 struct thread_info *ti = current_thread_info(); in set_thread_fault_code()
181 struct thread_info *ti = current_thread_info(); in get_thread_fault_code()
195 struct thread_info *ti = current_thread_info(); in test_and_clear_restore_sigmask()
/linux-4.1.27/arch/blackfin/include/asm/
Dthread_info.h38 struct thread_info { struct
59 #define init_thread_info (init_thread_union.thread_info) argument
67 static inline struct thread_info *current_thread_info(void) in current_thread_info()
69 struct thread_info *ti; in current_thread_info()
71 return (struct thread_info *)((long)ti & ~((long)THREAD_SIZE-1)); in current_thread_info()
/linux-4.1.27/arch/mn10300/include/asm/
Dthread_info.h41 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) in current_thread_info()
94 struct thread_info *ti; in current_thread_info()
118 void arch_release_thread_info(struct thread_info *ti);
Dframe.inc21 #include <asm/thread_info.h>
/linux-4.1.27/arch/s390/include/asm/
Dthread_info.h30 struct thread_info { struct
53 #define init_thread_info (init_thread_union.thread_info) argument
57 static inline struct thread_info *current_thread_info(void) in current_thread_info()
59 return (struct thread_info *) S390_lowcore.thread_info; in current_thread_info()
Dlowcore.h119 __u64 thread_info; /* 0x0318 */ member
/linux-4.1.27/arch/arm/kernel/
Dasm-offsets.c66 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
67 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
68 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); in main()
69 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
70 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in main()
71 DEFINE(TI_CPU_DOMAIN, offsetof(struct thread_info, cpu_domain)); in main()
72 DEFINE(TI_CPU_SAVE, offsetof(struct thread_info, cpu_context)); in main()
73 DEFINE(TI_USED_CP, offsetof(struct thread_info, used_cp)); in main()
74 DEFINE(TI_TP_VALUE, offsetof(struct thread_info, tp_value)); in main()
75 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); in main()
[all …]
Dxscale-cp0.c35 struct thread_info *thread = t; in dsp_do()
60 struct thread_info *thread = t; in iwmmxt_do()
Dptrace.c305 struct thread_info *thread = task_thread_info(tsk); in ptrace_getwmmxregs()
319 struct thread_info *thread = task_thread_info(tsk); in ptrace_setwmmxregs()
336 struct thread_info *thread = task_thread_info(tsk); in ptrace_getcrunchregs()
348 struct thread_info *thread = task_thread_info(tsk); in ptrace_setcrunchregs()
633 struct thread_info *thread = task_thread_info(target); in fpa_set()
671 struct thread_info *thread = task_thread_info(target); in vfp_get()
708 struct thread_info *thread = task_thread_info(target); in vfp_set()
Dprocess.c184 struct thread_info *thread = current_thread_info(); in flush_thread()
208 struct thread_info *thread = task_thread_info(p); in copy_thread()
252 struct thread_info *thread = current_thread_info(); in dump_fpu()
Dthumbee.c44 struct thread_info *thread = t; in thumbee_notifier()
Dpj4-cp0.c24 struct thread_info *thread = t; in iwmmxt_do()
/linux-4.1.27/arch/ia64/kernel/
Dinit_task.c28 #define init_thread_info init_task_mem.s.thread_info
33 struct thread_info thread_info; member
39 .thread_info = INIT_THREAD_INFO(init_task_mem.s.task)
Dasm-offsets.c25 DEFINE(IA64_THREAD_INFO_SIZE, sizeof (struct thread_info)); in foo()
38 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in foo()
39 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in foo()
40 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); in foo()
42 DEFINE(TI_AC_STAMP, offsetof(struct thread_info, ac_stamp)); in foo()
43 DEFINE(TI_AC_LEAVE, offsetof(struct thread_info, ac_leave)); in foo()
44 DEFINE(TI_AC_STIME, offsetof(struct thread_info, ac_stime)); in foo()
45 DEFINE(TI_AC_UTIME, offsetof(struct thread_info, ac_utime)); in foo()
Dtime.c89 struct thread_info *ti = task_thread_info(tsk); in vtime_account_user()
105 struct thread_info *pi = task_thread_info(prev); in arch_vtime_task_switch()
106 struct thread_info *ni = task_thread_info(current); in arch_vtime_task_switch()
118 struct thread_info *ti = task_thread_info(tsk); in vtime_delta()
/linux-4.1.27/arch/tile/include/asm/
Dthread_info.h27 struct thread_info { struct
61 #define init_thread_info (init_thread_union.thread_info) argument
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(); in set_restore_sigmask()
184 struct thread_info *ti = current_thread_info(); in test_and_clear_restore_sigmask()
/linux-4.1.27/arch/microblaze/include/asm/
Dthread_info.h66 struct thread_info { struct
89 #define init_thread_info (init_thread_union.thread_info) argument
93 static inline struct thread_info *current_thread_info(void) in current_thread_info()
97 return (struct thread_info *)(sp & ~(THREAD_SIZE-1)); in current_thread_info()
157 struct thread_info *ti = current_thread_info(); in set_restore_sigmask()
171 struct thread_info *ti = current_thread_info(); in test_and_clear_restore_sigmask()
Dswitch_to.h13 struct thread_info;
15 extern struct task_struct *_switch_to(struct thread_info *prev,
16 struct thread_info *next);
/linux-4.1.27/arch/unicore32/kernel/
Dasm-offsets.c41 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
42 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
43 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); in main()
44 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
45 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in main()
46 DEFINE(TI_CPU_SAVE, offsetof(struct thread_info, cpu_context)); in main()
47 DEFINE(TI_USED_CP, offsetof(struct thread_info, used_cp)); in main()
49 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); in main()
Dprocess.c213 struct thread_info *thread = current_thread_info(); in flush_thread()
234 struct thread_info *thread = task_thread_info(p); in copy_thread()
271 struct thread_info *thread = current_thread_info(); in dump_fpu()
Dtraps.c179 static int __die(const char *str, int err, struct thread_info *thread, in __die()
217 struct thread_info *thread = current_thread_info(); in die()
/linux-4.1.27/arch/arm64/include/asm/
Dthread_info.h45 struct thread_info { struct
61 #define init_thread_info (init_thread_union.thread_info) argument
72 static inline struct thread_info *current_thread_info(void) __attribute_const__;
74 static inline struct thread_info *current_thread_info(void) in current_thread_info()
76 return (struct thread_info *) in current_thread_info()
Dcompat.h307 static inline int is_compat_thread(struct thread_info *thread) in is_compat_thread()
314 static inline int is_compat_thread(struct thread_info *thread) in is_compat_thread()
/linux-4.1.27/arch/metag/include/asm/
Dthread_info.h29 struct thread_info { struct
76 #define init_thread_info (init_thread_union.thread_info)
83 static inline struct thread_info *current_thread_info(void) in current_thread_info()
85 return (struct thread_info *)(current_stack_pointer & in current_thread_info()
93 + sizeof(struct thread_info)); in kstack_end()
Dptrace.h25 sizeof(struct thread_info)))
29 sizeof(struct thread_info)))
/linux-4.1.27/arch/powerpc/kernel/
Dkgdb.c153 static DEFINE_PER_CPU(struct thread_info, kgdb_thread_info);
156 struct thread_info *thread_info, *exception_thread_info; in kgdb_singlestep() local
157 struct thread_info *backup_current_thread_info = in kgdb_singlestep()
173 thread_info = (struct thread_info *)(regs->gpr[1] & ~(THREAD_SIZE-1)); in kgdb_singlestep()
176 if (thread_info != exception_thread_info) { in kgdb_singlestep()
178 memcpy(backup_current_thread_info, exception_thread_info, sizeof *thread_info); in kgdb_singlestep()
179 memcpy(exception_thread_info, thread_info, sizeof *thread_info); in kgdb_singlestep()
184 if (thread_info != exception_thread_info) in kgdb_singlestep()
186 memcpy(exception_thread_info, backup_current_thread_info, sizeof *thread_info); in kgdb_singlestep()
Dirq.c471 if (unlikely(sp < (sizeof(struct thread_info) + 2048))) { in check_stack_overflow()
473 sp - sizeof(struct thread_info)); in check_stack_overflow()
513 struct thread_info *curtp, *irqtp, *sirqtp; in 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; in 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; in irq_ctx_init()
[all …]
Dsetup_32.c227 softirq_ctx[i] = (struct thread_info *) in irqstack_early_init()
229 hardirq_ctx[i] = (struct thread_info *) in irqstack_early_init()
248 critirq_ctx[hw_cpu] = (struct thread_info *) in exc_lvl_early_init()
251 dbgirq_ctx[hw_cpu] = (struct thread_info *) in exc_lvl_early_init()
253 mcheckirq_ctx[hw_cpu] = (struct thread_info *) in exc_lvl_early_init()
Dmachine_kexec_64.c340 kexec_stack.thread_info.task = current_thread_info()->task; in default_machine_kexec()
341 kexec_stack.thread_info.flags = 0; in default_machine_kexec()
342 kexec_stack.thread_info.preempt_count = HARDIRQ_OFFSET; in default_machine_kexec()
343 kexec_stack.thread_info.cpu = current_thread_info()->cpu; in default_machine_kexec()
Dsetup_64.c591 softirq_ctx[i] = (struct thread_info *) in irqstack_early_init()
594 hardirq_ctx[i] = (struct thread_info *) in irqstack_early_init()
608 critirq_ctx[i] = (struct thread_info *)__va(sp); in exc_lvl_early_init()
612 dbgirq_ctx[i] = (struct thread_info *)__va(sp); in exc_lvl_early_init()
616 mcheckirq_ctx[i] = (struct thread_info *)__va(sp); in exc_lvl_early_init()
Dsmp.c69 struct thread_info *secondary_ti;
348 struct thread_info *current_set[NR_CPUS];
470 struct thread_info *ti = task_thread_info(idle); in cpu_idle_thread_init()
Dsyscalls.c127 struct thread_info *ti; in sys_switch_endian()
Dprocess.c532 struct thread_info *ti, uint8_t cause) in tm_reclaim_thread()
1149 struct thread_info *ti = (void *)task_stack_page(p); in copy_thread()
1200 _ALIGN_UP(sizeof(struct thread_info), 16); in copy_thread()
1608 struct thread_info *ti = current_thread_info(); in __ppc64_runlatch_on()
1621 struct thread_info *ti = current_thread_info(); in __ppc64_runlatch_off()
Dasm-offsets.c85 DEFINE(THREAD_INFO_GAP, _ALIGN_UP(sizeof(struct thread_info), 16)); in main()
160 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
161 DEFINE(TI_LOCAL_FLAGS, offsetof(struct thread_info, local_flags)); in main()
162 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
163 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
164 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in main()
/linux-4.1.27/arch/sparc/kernel/
Dtraps_32.c434 if (TI_UWINMASK != offsetof(struct thread_info, uwinmask) ||
435 TI_TASK != offsetof(struct thread_info, task) ||
436 TI_FLAGS != offsetof(struct thread_info, flags) ||
437 TI_CPU != offsetof(struct thread_info, cpu) ||
438 TI_PREEMPT != offsetof(struct thread_info, preempt_count) ||
439 TI_SOFTIRQ != offsetof(struct thread_info, softirq_count) ||
440 TI_HARDIRQ != offsetof(struct thread_info, hardirq_count) ||
441 TI_KSP != offsetof(struct thread_info, ksp) ||
442 TI_KPC != offsetof(struct thread_info, kpc) ||
443 TI_KPSR != offsetof(struct thread_info, kpsr) ||
[all …]
Dwindows.c41 static inline void shift_window_buffer(int first_win, int last_win, struct thread_info *tp) in shift_window_buffer()
62 struct thread_info *tp = current_thread_info(); in synchronize_user_stack()
114 struct thread_info *tp = current_thread_info(); in try_to_clear_window_buffer()
Dkstack.h10 static inline bool kstack_valid(struct thread_info *tp, unsigned long sp) in kstack_valid()
18 if (sp >= (base + sizeof(struct thread_info)) && in kstack_valid()
36 static inline bool kstack_is_trap_frame(struct thread_info *tp, struct pt_regs *regs) in kstack_is_trap_frame()
Dprocess_64.c194 static void __global_reg_self(struct thread_info *tp, struct pt_regs *regs, in __global_reg_self()
244 struct thread_info *tp = current_thread_info(); in arch_trigger_all_cpu_backtrace()
402 struct thread_info *ti = task_thread_info(tsk); in thread_saved_pc()
422 struct thread_info *t = current_thread_info(); in exit_thread()
434 struct thread_info *t = current_thread_info(); in flush_thread()
490 struct thread_info *t) in shift_window_buffer()
503 struct thread_info *t = current_thread_info(); in synchronize_user_stack()
543 struct thread_info *t = current_thread_info(); in fault_in_user_windows()
622 struct thread_info *t = task_thread_info(p); in copy_thread()
752 struct thread_info *tp; in get_wchan()
Dstacktrace.c11 static void __save_stack_trace(struct thread_info *tp, in __save_stack_trace()
81 struct thread_info *tp = task_thread_info(tsk); in save_stack_trace_tsk()
Dtraps_64.c2323 struct thread_info *tp; in show_stack()
2407 struct thread_info *tp = current_thread_info(); in die_if_kernel()
2668 void notrace init_cur_cpu_trap(struct thread_info *t) in init_cur_cpu_trap()
2685 BUILD_BUG_ON(TI_TASK != offsetof(struct thread_info, task) || in trap_init()
2686 TI_FLAGS != offsetof(struct thread_info, flags) || in trap_init()
2687 TI_CPU != offsetof(struct thread_info, cpu) || in trap_init()
2688 TI_FPSAVED != offsetof(struct thread_info, fpsaved) || in trap_init()
2689 TI_KSP != offsetof(struct thread_info, ksp) || in trap_init()
2690 TI_FAULT_ADDR != offsetof(struct thread_info, in trap_init()
2692 TI_KREGS != offsetof(struct thread_info, kregs) || in trap_init()
[all …]
Dprocess_32.c68 struct thread_info *current_set[NR_CPUS];
164 if (fp < (task_base + sizeof(struct thread_info)) || in show_stack()
311 struct thread_info *ti = task_thread_info(p);
480 if (fp < (task_base + sizeof(struct thread_info)) ||
Dsigutil_64.c72 struct thread_info *t = current_thread_info(); in restore_rwin_state()
Dsigutil_32.c97 struct thread_info *t = current_thread_info(); in restore_rwin_state()
Dkgdb_32.c47 struct thread_info *t = task_thread_info(p); in sleeping_thread_to_gdb_regs()
Dkgdb_64.c46 struct thread_info *t = task_thread_info(p); in sleeping_thread_to_gdb_regs()
/linux-4.1.27/arch/m68k/include/asm/
Dthread_info.h26 struct thread_info { struct
47 static inline struct thread_info *current_thread_info(void) in current_thread_info() argument
49 struct thread_info *ti; in current_thread_info()
60 #define init_thread_info (init_thread_union.thread_info)
/linux-4.1.27/arch/c6x/include/asm/
Dthread_info.h41 struct thread_info { struct
63 #define init_thread_info (init_thread_union.thread_info) argument
68 struct thread_info *current_thread_info(void) in current_thread_info()
70 struct thread_info *ti; in current_thread_info()
/linux-4.1.27/arch/openrisc/kernel/
Dasm-offsets.c53 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
54 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
55 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
56 DEFINE(TI_KSP, offsetof(struct thread_info, ksp)); in main()
Dprocess.c52 struct thread_info *current_thread_info_set[NR_CPUS] = { &init_thread_info, };
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; in __switch_to()
Dtraps.c44 static inline int valid_stack_ptr(struct thread_info *tinfo, void *p) in valid_stack_ptr()
51 struct thread_info *context; in show_trace()
54 context = (struct thread_info *) in show_trace()
/linux-4.1.27/arch/arc/include/asm/
Dthread_info.h41 struct thread_info { struct
64 #define init_thread_info (init_thread_union.thread_info) argument
67 static inline __attribute_const__ struct thread_info *current_thread_info(void) in current_thread_info()
70 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
/linux-4.1.27/arch/nios2/include/asm/
Dthread_info.h40 struct thread_info { struct
66 #define init_thread_info (init_thread_union.thread_info) argument
70 static inline struct thread_info *current_thread_info(void) in current_thread_info()
74 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
/linux-4.1.27/include/linux/
Dthread_info.h69 static inline void set_ti_thread_flag(struct thread_info *ti, int flag) in set_ti_thread_flag()
74 static inline void clear_ti_thread_flag(struct thread_info *ti, int flag) in clear_ti_thread_flag()
79 static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag) in test_and_set_ti_thread_flag()
84 static inline int test_and_clear_ti_thread_flag(struct thread_info *ti, int flag) in test_and_clear_ti_thread_flag()
89 static inline int test_ti_thread_flag(struct thread_info *ti, int flag) in test_ti_thread_flag()
/linux-4.1.27/arch/unicore32/include/asm/
Dthread_info.h67 struct thread_info { struct
90 #define init_thread_info (init_thread_union.thread_info) argument
96 static inline struct thread_info *current_thread_info(void) __attribute_const__;
98 static inline struct thread_info *current_thread_info(void) in current_thread_info()
101 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
Dswitch_to.h14 struct thread_info;
22 struct thread_info *, struct thread_info *);
/linux-4.1.27/arch/x86/include/asm/
Dthread_info.h52 struct thread_info { struct
73 #define init_thread_info (init_thread_union.thread_info) argument
182 static inline struct thread_info *current_thread_info(void) in current_thread_info()
184 return (struct thread_info *)(current_top_of_stack() - THREAD_SIZE); in current_thread_info()
248 struct thread_info *ti = current_thread_info(); in set_restore_sigmask()
262 struct thread_info *ti = current_thread_info(); in test_and_clear_restore_sigmask()
Dstacktrace.h14 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,
Dswitch_to.h124 [ti_flags] "i" (offsetof(struct thread_info, flags)), \
126 [thread_info] "i" (offsetof(struct task_struct, stack)), \
Dsmp.h199 struct thread_info *ti; \
/linux-4.1.27/arch/sh/kernel/
Dasm-offsets.c23 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
24 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
25 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in main()
26 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); in main()
27 DEFINE(TI_SIZE, sizeof(struct thread_info)); in main()
Ddumpstack.c57 struct thread_info *tinfo, int *graph) in print_ftrace_graph_addr()
80 struct thread_info *tinfo, int *graph) in print_ftrace_graph_addr()
89 struct thread_info *context; in stack_reader_dump()
92 context = (struct thread_info *) in stack_reader_dump()
Dirq.c60 struct thread_info tinfo;
152 struct thread_info *curctx; in do_softirq_own_stack()
Dsmp.c215 void *thread_info; member
226 stack_start.thread_info = tsk->stack; in __cpu_up()
Dprocess_32.c129 struct thread_info *ti = task_thread_info(p); in copy_thread()
Dhead_32.S85 ldc r0, r7_bank ! ... and initial thread_info
/linux-4.1.27/arch/alpha/include/asm/
Dthread_info.h14 struct thread_info { struct
41 #define init_thread_info (init_thread_union.thread_info) argument
45 register struct thread_info *__current_thread_info __asm__("$8");
95 struct thread_info *ti = current_thread_info(); in set_restore_sigmask()
109 struct thread_info *ti = current_thread_info(); in test_and_clear_restore_sigmask()
Delf.h109 struct thread_info;
112 struct thread_info *ti);
/linux-4.1.27/arch/avr32/include/asm/
Dthread_info.h21 struct thread_info { struct
42 #define init_thread_info (init_thread_union.thread_info) argument
49 static inline struct thread_info *current_thread_info(void) in current_thread_info()
54 return (struct thread_info *)addr; in current_thread_info()
/linux-4.1.27/arch/xtensa/include/asm/
Dthread_info.h45 struct thread_info { struct
80 #define init_thread_info (init_thread_union.thread_info) argument
84 static inline struct thread_info *current_thread_info(void) in current_thread_info()
86 struct thread_info *ti; in current_thread_info()
Dcoprocessor.h159 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/frv/kernel/
Dasm-offsets.c36 OFFSET(TI_TASK, thread_info, task); in foo()
37 OFFSET(TI_FLAGS, thread_info, flags); in foo()
38 OFFSET(TI_STATUS, thread_info, status); in foo()
39 OFFSET(TI_CPU, thread_info, cpu); in foo()
40 OFFSET(TI_PREEMPT_COUNT, thread_info, preempt_count); in foo()
41 OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit); in foo()
Dentry.S153 ldi.p @(gr29,#4),gr15 ; __current_thread_info = current->thread_info
186 # GR15 - current thread_info struct pointer
/linux-4.1.27/arch/arm/vfp/
Dvfpmodule.c65 static bool vfp_state_in_hw(unsigned int cpu, struct thread_info *thread) in vfp_state_in_hw()
79 static void vfp_force_reload(unsigned int cpu, struct thread_info *thread) in vfp_force_reload()
93 static void vfp_thread_flush(struct thread_info *thread) in vfp_thread_flush()
121 static void vfp_thread_exit(struct thread_info *thread) in vfp_thread_exit()
132 static void vfp_thread_copy(struct thread_info *thread) in vfp_thread_copy()
134 struct thread_info *parent = current_thread_info(); in vfp_thread_copy()
168 struct thread_info *thread = v; in vfp_notifier()
451 struct thread_info *ti = current_thread_info(); in vfp_pm_suspend()
516 void vfp_sync_hwstate(struct thread_info *thread) in vfp_sync_hwstate()
535 void vfp_flush_hwstate(struct thread_info *thread) in vfp_flush_hwstate()
[all …]
Dentry.S23 @ r10 = this threads thread_info structure
/linux-4.1.27/arch/mn10300/kernel/
Dasm-offsets.c24 OFFSET(TI_task, thread_info, task); in foo()
25 OFFSET(TI_frame, thread_info, frame); in foo()
26 OFFSET(TI_flags, thread_info, flags); in foo()
27 OFFSET(TI_cpu, thread_info, cpu); in foo()
28 OFFSET(TI_preempt_count, thread_info, preempt_count); in foo()
29 OFFSET(TI_addr_limit, thread_info, addr_limit); in foo()
Dsetup.c61 struct thread_info *__current_ti = &init_thread_union.thread_info;
Dprocess.c147 struct thread_info *ti = task_thread_info(p); in copy_thread()
Dkgdb.c25 static struct thread_info *kgdb_sstep_thread;
400 void arch_release_thread_info(struct thread_info *ti) in arch_release_thread_info()
/linux-4.1.27/arch/score/include/asm/
Dthread_info.h29 struct thread_info { struct
60 #define init_thread_info (init_thread_union.thread_info) argument
64 register struct thread_info *__current_thread_info __asm__("r28");
/linux-4.1.27/arch/frv/include/asm/
Dthread_info.h32 struct thread_info { struct
67 #define init_thread_info (init_thread_union.thread_info) argument
71 register struct thread_info *__current_thread_info asm("gr15");
/linux-4.1.27/arch/arm/mach-ep93xx/
Dcrunch.c26 void crunch_task_release(struct thread_info *thread) in crunch_task_release()
41 struct thread_info *thread = (struct thread_info *)t; in crunch_do()
/linux-4.1.27/arch/mips/include/asm/
Dthread_info.h24 struct thread_info { struct
52 #define init_thread_info (init_thread_union.thread_info) argument
56 register struct thread_info *__current_thread_info __asm__("$28");
58 static inline struct thread_info *current_thread_info(void) in current_thread_info()
Dswitch_to.h40 struct task_struct *next, struct thread_info *next_ti,
62 struct thread_info *__prev_ti = task_thread_info(prev); \
/linux-4.1.27/arch/openrisc/include/asm/
Dthread_info.h49 struct thread_info { struct
82 #define init_thread_info (init_thread_union.thread_info) argument
85 register struct thread_info *current_thread_info_reg asm("r10");
Dprocessor.h66 #define user_regs(thread_info) (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE - S… argument
/linux-4.1.27/arch/hexagon/include/asm/
Dthread_info.h48 struct thread_info { struct
87 #define init_thread_info (init_thread_union.thread_info) argument
95 register struct thread_info *__current_thread_info asm(QUOTED_THREADINFO_REG);
/linux-4.1.27/arch/sparc/include/asm/
Dthread_info_64.h35 struct thread_info { struct
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(); in set_restore_sigmask()
245 struct thread_info *ti = current_thread_info(); in test_and_clear_restore_sigmask()
Dthread_info_32.h27 struct thread_info { struct
65 #define init_thread_info (init_thread_union.thread_info) argument
69 register struct thread_info *current_thread_info_reg asm("g6");
Dtrap_block.h22 struct thread_info;
25 struct thread_info *thread;
54 void init_cur_cpu_trap(struct thread_info *);
Dswitch_to_32.h6 extern struct thread_info *current_set[NR_CPUS];
Dptrace.h45 struct thread_info *thread;
/linux-4.1.27/arch/alpha/kernel/
Dasm-offsets.c16 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in foo()
17 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in foo()
18 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in foo()
Dprocess.c249 struct thread_info *childti = task_thread_info(p); in copy_thread()
292 dump_elf_thread(elf_greg_t *dest, struct pt_regs *pt, struct thread_info *ti) in dump_elf_thread()
/linux-4.1.27/arch/parisc/include/asm/
Dthread_info.h10 struct thread_info { struct
27 #define init_thread_info (init_thread_union.thread_info) argument
31 #define current_thread_info() ((struct thread_info *)mfctl(30))
/linux-4.1.27/arch/score/kernel/
Dasm-offsets.c102 OFFSET(TI_TASK, thread_info, task); in output_thread_info_defines()
103 OFFSET(TI_FLAGS, thread_info, flags); in output_thread_info_defines()
104 OFFSET(TI_TP_VALUE, thread_info, tp_value); in output_thread_info_defines()
105 OFFSET(TI_CPU, thread_info, cpu); in output_thread_info_defines()
106 OFFSET(TI_PRE_COUNT, thread_info, preempt_count); in output_thread_info_defines()
107 OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit); in output_thread_info_defines()
108 OFFSET(TI_REGS, thread_info, regs); in output_thread_info_defines()
Dprocess.c74 struct thread_info *ti = task_thread_info(p); in copy_thread()
/linux-4.1.27/arch/s390/kernel/
Dasm-offsets.c36 DEFINE(__TI_task, offsetof(struct thread_info, task)); in main()
37 DEFINE(__TI_flags, offsetof(struct thread_info, flags)); in main()
38 DEFINE(__TI_sysc_table, offsetof(struct thread_info, sys_call_table)); in main()
39 DEFINE(__TI_cpu, offsetof(struct thread_info, cpu)); in main()
40 DEFINE(__TI_precount, offsetof(struct thread_info, preempt_count)); in main()
41 DEFINE(__TI_user_timer, offsetof(struct thread_info, user_timer)); in main()
42 DEFINE(__TI_system_timer, offsetof(struct thread_info, system_timer)); in main()
43 DEFINE(__TI_last_break, offsetof(struct thread_info, last_break)); in main()
145 DEFINE(__LC_THREAD_INFO, offsetof(struct _lowcore, thread_info)); in main()
Dstacktrace.c80 S390_lowcore.thread_info, in save_stack_trace()
81 S390_lowcore.thread_info + THREAD_SIZE, 1); in save_stack_trace()
Dvtime.c68 struct thread_info *ti = task_thread_info(tsk); in do_account_vtime()
142 struct thread_info *ti; in vtime_task_switch()
170 struct thread_info *ti = task_thread_info(tsk); in vtime_account_irq_enter()
Ddumpstack.c90 __show_trace(sp, S390_lowcore.thread_info, in show_trace()
91 S390_lowcore.thread_info + THREAD_SIZE); in show_trace()
Dperf_event.c281 __store_trace(entry, head, S390_lowcore.thread_info, in perf_callchain_kernel()
282 S390_lowcore.thread_info + THREAD_SIZE); in perf_callchain_kernel()
Dprocess.c91 struct thread_info *ti; in copy_thread()
Dsetup.c329 lc->current_task = (unsigned long) init_thread_union.thread_info.task; in setup_lowcore()
330 lc->thread_info = (unsigned long) &init_thread_union; in setup_lowcore()
Dsmp.c257 struct thread_info *ti = task_thread_info(tsk); in pcpu_attach_task()
261 lc->thread_info = (unsigned long) task_thread_info(tsk); in pcpu_attach_task()
/linux-4.1.27/scripts/gdb/linux/
Dtasks.py81 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()
Dutils.py143 thread_info = gdb.execute("info thread 2", to_string=True)
144 return "shadowCPU0" in thread_info
/linux-4.1.27/arch/cris/include/arch-v10/arch/
Dthread_info.h5 static inline struct thread_info *current_thread_info(void) in current_thread_info()
7 struct thread_info *ti; in current_thread_info()
/linux-4.1.27/arch/cris/include/arch-v32/arch/
Dthread_info.h5 static inline struct thread_info *current_thread_info(void) in current_thread_info()
7 struct thread_info *ti; in current_thread_info()
/linux-4.1.27/arch/x86/kernel/
Dasm-offsets.c32 OFFSET(TI_flags, thread_info, flags); in common()
33 OFFSET(TI_status, thread_info, status); in common()
34 OFFSET(TI_addr_limit, thread_info, addr_limit); in common()
Ddumpstack.c45 struct thread_info *tinfo, int *graph) in print_ftrace_graph_addr()
71 struct thread_info *tinfo, int *graph) in print_ftrace_graph_addr()
82 static inline int valid_stack_ptr(struct thread_info *tinfo, in valid_stack_ptr()
96 print_context_stack(struct thread_info *tinfo, in print_context_stack()
124 print_context_stack_bp(struct thread_info *tinfo, in print_context_stack_bp()
Dirq_32.c42 return sp < (sizeof(struct thread_info) + STACK_WARN); in check_stack_overflow()
140 struct thread_info *curstk; in do_softirq_own_stack()
Dasm-offsets_32.c40 OFFSET(TI_sysenter_return, thread_info, sysenter_return); in foo()
41 OFFSET(TI_cpu, thread_info, cpu); in foo()
Dirq_64.c50 if (regs->sp >= curbase + sizeof(struct thread_info) + in stack_overflow_check()
Dasm-offsets_64.c33 OFFSET(TI_sysenter_return, thread_info, sysenter_return); in main()
Ddumpstack_32.c64 struct thread_info *context; in dump_trace()
Ddumpstack_64.c156 struct thread_info *tinfo; in dump_trace()
Dprocess_64.c552 bottom = start + sizeof(struct thread_info); in get_wchan()
/linux-4.1.27/arch/microblaze/kernel/
Dunwind.c293 struct thread_info *thread_info = in microblaze_unwind() local
294 (struct thread_info *)(task->stack); in microblaze_unwind()
296 &thread_info->cpu_context; in microblaze_unwind()
Dasm-offsets.c90 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
91 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
92 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); in main()
93 DEFINE(TI_CPU_CONTEXT, offsetof(struct thread_info, cpu_context)); in main()
94 DEFINE(TI_PREEMPT_COUNT, offsetof(struct thread_info, preempt_count)); in main()
Dprocess.c58 struct thread_info *ti = task_thread_info(p); in copy_thread()
126 &(((struct thread_info *)(tsk->stack))->cpu_context); in thread_saved_pc()
Dtraps.c40 fp = ((struct thread_info *) in show_stack()
/linux-4.1.27/arch/metag/kernel/
Dirq.c20 struct thread_info tinfo;
80 isp = (u32 *) ((char *)irqctx + sizeof(struct thread_info)); in do_IRQ()
162 struct thread_info *curctx; in do_softirq_own_stack()
171 isp = (u32 *) ((char *)irqctx + sizeof(struct thread_info)); in do_softirq_own_stack()
Dasm-offsets.c12 DEFINE(THREAD_INFO_SIZE, sizeof(struct thread_info)); in main()
Dstacktrace.c71 sizeof(struct thread_info)) || fpnew >= (unsigned long)fp) in unwind_frame()
/linux-4.1.27/arch/cris/include/asm/
Dprocessor.h43 #define user_regs(thread_info) (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE)) - … argument
Dthread_info.h29 struct thread_info { struct
58 #define init_thread_info (init_thread_union.thread_info) argument
/linux-4.1.27/arch/hexagon/kernel/
Dasm-offsets.c78 OFFSET(_THREAD_INFO_FLAGS, thread_info, flags); in main()
79 OFFSET(_THREAD_INFO_PT_REGS, thread_info, regs); in main()
80 OFFSET(_THREAD_INFO_SP, thread_info, sp); in main()
Dprocess.c74 struct thread_info *ti = task_thread_info(p); in copy_thread()
169 if (fp < (stack_page + sizeof(struct thread_info)) || in get_wchan()
Dsmp.c195 struct thread_info *thread = (struct thread_info *)idle->stack; in __cpu_up()
Dtraps.c133 low += sizeof(struct thread_info); in do_show_stack()
/linux-4.1.27/kernel/locking/
Dmutex-debug.h23 struct thread_info *ti);
25 struct thread_info *ti);
Dmutex-debug.c52 struct thread_info *ti) in debug_mutex_add_waiter()
61 struct thread_info *ti) in mutex_remove_waiter()
/linux-4.1.27/arch/x86/um/
Dptrace_32.c195 int err, n, cpu = ((struct thread_info *) child->stack)->cpu; in get_fpregs()
211 int n, cpu = ((struct thread_info *) child->stack)->cpu; in set_fpregs()
224 int err, n, cpu = ((struct thread_info *) child->stack)->cpu; in get_fpxregs()
240 int n, cpu = ((struct thread_info *) child->stack)->cpu; in set_fpxregs()
Dptrace_64.c223 int err, n, cpu = ((struct thread_info *) child->stack)->cpu; in get_fpregs()
240 int n, cpu = ((struct thread_info *) child->stack)->cpu; in set_fpregs()
/linux-4.1.27/arch/arm64/kernel/
Dasm-offsets.c36 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
37 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
38 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); in main()
39 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
40 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in main()
Dtraps.c188 static int __die(const char *str, int err, struct thread_info *thread, in __die()
225 struct thread_info *thread = current_thread_info(); in die()
/linux-4.1.27/arch/mips/kernel/
Dirq.c124 if (unlikely(sp < (sizeof(struct thread_info) + STACK_WARN))) { in check_stack_overflow()
126 sp - sizeof(struct thread_info)); in check_stack_overflow()
Dsmp-cmp.c83 struct thread_info *gp = task_thread_info(idle); in cmp_boot_secondary()
94 (unsigned long)(gp + sizeof(struct thread_info))); in cmp_boot_secondary()
Dasm-offsets.c94 OFFSET(TI_TASK, thread_info, task); in output_thread_info_defines()
95 OFFSET(TI_FLAGS, thread_info, flags); in output_thread_info_defines()
96 OFFSET(TI_TP_VALUE, thread_info, tp_value); in output_thread_info_defines()
97 OFFSET(TI_CPU, thread_info, cpu); in output_thread_info_defines()
98 OFFSET(TI_PRE_COUNT, thread_info, preempt_count); in output_thread_info_defines()
99 OFFSET(TI_R2_EMUL_RET, thread_info, r2_emul_return); in output_thread_info_defines()
100 OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit); in output_thread_info_defines()
101 OFFSET(TI_REGS, thread_info, regs); in output_thread_info_defines()
Dsmp-mt.c197 struct thread_info *gp = task_thread_info(idle); in vsmp_boot_secondary()
221 (unsigned long)(gp + sizeof(struct thread_info))); in vsmp_boot_secondary()
Dsyscall.c90 struct thread_info *ti = task_thread_info(current); in SYSCALL_DEFINE1()
Dmips-mt-fpaff.c66 struct thread_info *ti; in mipsmt_sys_sched_setaffinity()
Dkgdb.c247 struct thread_info *ti = task_thread_info(p); in sleeping_thread_to_gdb_regs()
Dprocess.c116 struct thread_info *ti = task_thread_info(p); in copy_thread()
/linux-4.1.27/arch/s390/oprofile/
Dbacktrace.c75 __show_trace(&depth, head, S390_lowcore.thread_info, in s390_backtrace()
76 S390_lowcore.thread_info + THREAD_SIZE); in s390_backtrace()
/linux-4.1.27/arch/blackfin/kernel/
Dirqchip.c56 if (unlikely(sp < (sizeof(struct thread_info) + STACK_WARN))) { in check_stack_overflow()
59 irq, sp - sizeof(struct thread_info)); in check_stack_overflow()
Dasm-offsets.c46 OFFSET(TI_TASK, thread_info, task); in main()
47 OFFSET(TI_FLAGS, thread_info, flags); in main()
48 OFFSET(TI_CPU, thread_info, cpu); in main()
49 OFFSET(TI_PREEMPT, thread_info, preempt_count); in main()
Dprocess.c154 if (fp < stack_page + sizeof(struct thread_info) || in get_wchan()
/linux-4.1.27/arch/arc/kernel/
Dasm-offsets.c32 DEFINE(THREAD_INFO_FLAGS, offsetof(struct thread_info, flags)); in main()
34 offsetof(struct thread_info, preempt_count)); in main()
Dhead.S125 ; set it's stack base to tsk->thread_info bottom
Dentry.S207 ; bump thread_info->preempt_count (Disable preemption)
690 ; decrement thread_info->preempt_count (re-enable preemption)
/linux-4.1.27/arch/nios2/kernel/
Dasm-offsets.c82 OFFSET(TI_FLAGS, thread_info, flags); in main()
83 OFFSET(TI_PREEMPT_COUNT, thread_info, preempt_count); in main()
/linux-4.1.27/tools/virtio/virtio-trace/
Dtrace-agent-rw.c106 static void *rw_thread_main(void *thread_info) in rw_thread_main() argument
110 struct rw_thread_info *ts = (struct rw_thread_info *)thread_info; in rw_thread_main()
/linux-4.1.27/arch/parisc/kernel/
Dasm-offsets.c244 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
245 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
246 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in main()
247 DEFINE(TI_SEGMENT, offsetof(struct thread_info, addr_limit)); in main()
248 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); in main()
249 DEFINE(THREAD_SZ, sizeof(struct thread_info)); in main()
251 DEFINE(THREAD_SZ_ALGN, align_frame(sizeof(struct thread_info), FRAME_ALIGN)); in main()
/linux-4.1.27/arch/m68k/kernel/
Dasm-offsets.c41 DEFINE(TINFO_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
42 DEFINE(TINFO_FLAGS, offsetof(struct thread_info, flags)); in main()
Dvmlinux-sun3.lds5 #include <asm/thread_info.h>
Dvmlinux-std.lds5 #include <asm/thread_info.h>
Dvmlinux-nommu.lds20 #include <asm/thread_info.h>
Dprocess.c268 if (fp < stack_page+sizeof(struct thread_info) || in get_wchan()
/linux-4.1.27/arch/um/kernel/
Dirq.c411 struct thread_info *ti; in to_irq_stack()
438 struct thread_info *tti; in to_irq_stack()
455 struct thread_info *ti, *to; in from_irq_stack()
/linux-4.1.27/arch/avr32/oprofile/
Dbacktrace.c28 static inline int valid_stack_ptr(struct thread_info *tinfo, unsigned long p) in valid_stack_ptr()
/linux-4.1.27/arch/c6x/kernel/
Dasm-offsets.c102 OFFSET(THREAD_INFO_FLAGS, thread_info, flags); in foo()
103 OFFSET(THREAD_INFO_PREEMPT_COUNT, thread_info, preempt_count); in foo()
/linux-4.1.27/arch/cris/kernel/
Dasm-offsets.c37 #define ENTRY(entry) DEFINE(TI_ ## entry, offsetof(struct thread_info, entry)) in main()
/linux-4.1.27/arch/arm/nwfpe/
Dfpmodule.c62 struct thread_info *thread = v; in nwfpe_notify()
/linux-4.1.27/kernel/
Dfork.c150 void __weak arch_release_thread_info(struct thread_info *ti) in arch_release_thread_info()
161 static struct thread_info *alloc_thread_info_node(struct task_struct *tsk, in alloc_thread_info_node()
170 static inline void free_thread_info(struct thread_info *ti) in free_thread_info()
177 static struct thread_info *alloc_thread_info_node(struct task_struct *tsk, in alloc_thread_info_node()
183 static void free_thread_info(struct thread_info *ti) in free_thread_info()
215 static void account_kernel_stack(struct thread_info *ti, int account) in account_kernel_stack()
331 struct thread_info *ti; in dup_task_struct()
/linux-4.1.27/arch/sh/kernel/cpu/sh5/
Dswitchto.S132 ld.l r4, 4, r9 ! next->thread_info (2nd element of next task_struct)
133 putcon r9, kcr0 ! current = next->thread_info
/linux-4.1.27/arch/arm/mm/
Dcontext.c110 struct thread_info *thread = t; in contextidr_notifier()
/linux-4.1.27/arch/powerpc/net/
Dbpf_jit.h165 do { BUILD_BUG_ON(FIELD_SIZEOF(struct thread_info, cpu) != 4); \
167 offsetof(struct thread_info, cpu)); \
/linux-4.1.27/arch/cris/arch-v32/kernel/
Dentry.S354 and.d -8192, $r10 ; Get thread_info from stackpointer.
497 ;; thread_info as first parameter
Dsignal.c468 ugdb_trap_user(struct thread_info *ti, int sig) in ugdb_trap_user()
/linux-4.1.27/arch/sparc/net/
Dbpf_jit_comp.c254 emit_load16(G6, struct thread_info, cpu, REG)
257 emit_load32(G6, struct thread_info, cpu, REG)
/linux-4.1.27/Documentation/x86/x86_64/
Dkernel-stacks9 except for the thread_info structure at the bottom.
/linux-4.1.27/Documentation/
Dgdb-kernel-debugging.txt154 function lx_thread_info -- Calculate Linux thread_info from task variable
/linux-4.1.27/arch/arm/net/
Dbpf_jit_32.c812 BUILD_BUG_ON(FIELD_SIZEOF(struct thread_info, cpu) != 4); in build_body()
813 off = offsetof(struct thread_info, cpu); in build_body()

12