/Linux-v5.4/arch/x86/kernel/ |
D | espfix_64.c | 139 void *stack_page; in init_espfix_ap() local 150 stack_page = READ_ONCE(espfix_pages[page]); in init_espfix_ap() 151 if (likely(stack_page)) in init_espfix_ap() 157 stack_page = READ_ONCE(espfix_pages[page]); in init_espfix_ap() 158 if (stack_page) in init_espfix_ap() 189 stack_page = page_address(alloc_pages_node(node, GFP_KERNEL, 0)); in init_espfix_ap() 194 pte = __pte(__pa(stack_page) | ((__PAGE_KERNEL_RO | _PAGE_ENC) & ptemask)); in init_espfix_ap() 199 WRITE_ONCE(espfix_pages[page], stack_page); in init_espfix_ap() 205 per_cpu(espfix_waddr, cpu) = (unsigned long)stack_page in init_espfix_ap()
|
/Linux-v5.4/arch/mips/kernel/ |
D | perf_event.c | 51 unsigned long stack_page = in perf_callchain_kernel() local 53 if (stack_page && sp >= stack_page && in perf_callchain_kernel() 54 sp <= stack_page + THREAD_SIZE - 32) in perf_callchain_kernel()
|
D | stacktrace.c | 46 unsigned long stack_page = in save_context_stack() local 48 if (stack_page && sp >= stack_page && in save_context_stack() 49 sp <= stack_page + THREAD_SIZE - 32) in save_context_stack()
|
D | process.c | 508 unsigned long notrace unwind_stack_by_address(unsigned long stack_page, in unwind_stack_by_address() argument 519 if (!stack_page) in unwind_stack_by_address() 526 low = stack_page; in unwind_stack_by_address() 528 high = stack_page + IRQ_STACK_START; in unwind_stack_by_address() 531 high = stack_page + THREAD_SIZE - 32; in unwind_stack_by_address() 603 unsigned long stack_page = 0; in unwind_stack() local 608 stack_page = (unsigned long)irq_stack[cpu]; in unwind_stack() 613 if (!stack_page) in unwind_stack() 614 stack_page = (unsigned long)task_stack_page(task); in unwind_stack() 616 return unwind_stack_by_address(stack_page, sp, pc, ra); in unwind_stack()
|
/Linux-v5.4/arch/h8300/kernel/ |
D | process.c | 136 unsigned long stack_page; in get_wchan() local 142 stack_page = (unsigned long)p; in get_wchan() 145 if (fp < stack_page+sizeof(struct thread_info) || in get_wchan() 146 fp >= 8184+stack_page) in get_wchan()
|
/Linux-v5.4/arch/hexagon/kernel/ |
D | process.c | 136 unsigned long stack_page; in get_wchan() local 141 stack_page = (unsigned long)task_stack_page(p); in get_wchan() 144 if (fp < (stack_page + sizeof(struct thread_info)) || in get_wchan() 145 fp >= (THREAD_SIZE - 8 + stack_page)) in get_wchan()
|
/Linux-v5.4/arch/m68k/kernel/ |
D | process.c | 250 unsigned long stack_page; in get_wchan() local 255 stack_page = (unsigned long)task_stack_page(p); in get_wchan() 258 if (fp < stack_page+sizeof(struct thread_info) || in get_wchan() 259 fp >= 8184+stack_page) in get_wchan()
|
/Linux-v5.4/arch/nios2/kernel/ |
D | process.c | 223 unsigned long stack_page; in get_wchan() local 229 stack_page = (unsigned long)p; in get_wchan() 232 if (fp < stack_page+sizeof(struct task_struct) || in get_wchan() 233 fp >= 8184+stack_page) /* ;dgt2;tmp */ in get_wchan()
|
/Linux-v5.4/arch/um/kernel/ |
D | process.c | 410 unsigned long stack_page, sp, ip; in get_wchan() local 416 stack_page = (unsigned long) task_stack_page(p); in get_wchan() 418 if (stack_page == 0) in get_wchan() 426 if (sp < stack_page) in get_wchan() 429 while (sp < stack_page + THREAD_SIZE) { in get_wchan()
|
/Linux-v5.4/arch/xtensa/kernel/ |
D | process.c | 303 unsigned long stack_page = (unsigned long) task_stack_page(p); in get_wchan() local 313 if (sp < stack_page + sizeof(struct task_struct) || in get_wchan() 314 sp >= (stack_page + THREAD_SIZE) || in get_wchan()
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | stacktrace.c | 103 unsigned long stack_page = (unsigned long)task_stack_page(tsk); in __save_stack_trace_tsk_reliable() local 108 stack_end = stack_page + THREAD_SIZE; in __save_stack_trace_tsk_reliable() 138 if (sp < stack_page + sizeof(struct thread_struct) || in __save_stack_trace_tsk_reliable()
|
D | process.c | 1959 unsigned long stack_page; in valid_irq_stack() local 1962 stack_page = (unsigned long)hardirq_ctx[cpu]; in valid_irq_stack() 1963 if (sp >= stack_page && sp <= stack_page + THREAD_SIZE - nbytes) in valid_irq_stack() 1966 stack_page = (unsigned long)softirq_ctx[cpu]; in valid_irq_stack() 1967 if (sp >= stack_page && sp <= stack_page + THREAD_SIZE - nbytes) in valid_irq_stack() 1976 unsigned long stack_page = (unsigned long)task_stack_page(p); in validate_sp() local 1981 if (sp >= stack_page && sp <= stack_page + THREAD_SIZE - nbytes) in validate_sp()
|
/Linux-v5.4/arch/arm/kernel/ |
D | process.c | 301 unsigned long stack_page; in get_wchan() local 310 stack_page = (unsigned long)task_stack_page(p); in get_wchan() 312 if (frame.sp < stack_page || in get_wchan() 313 frame.sp >= stack_page + THREAD_SIZE || in get_wchan()
|
/Linux-v5.4/virt/kvm/arm/ |
D | arm.c | 1322 unsigned long stack_page; in cpu_init_hyp_mode() local 1329 stack_page = __this_cpu_read(kvm_arm_hyp_stack_page); in cpu_init_hyp_mode() 1330 hyp_stack_ptr = stack_page + PAGE_SIZE; in cpu_init_hyp_mode() 1525 unsigned long stack_page; in init_hyp_mode() local 1527 stack_page = __get_free_page(GFP_KERNEL); in init_hyp_mode() 1528 if (!stack_page) { in init_hyp_mode() 1533 per_cpu(kvm_arm_hyp_stack_page, cpu) = stack_page; in init_hyp_mode() 1570 char *stack_page = (char *)per_cpu(kvm_arm_hyp_stack_page, cpu); in init_hyp_mode() local 1571 err = create_hyp_mappings(stack_page, stack_page + PAGE_SIZE, in init_hyp_mode()
|
/Linux-v5.4/arch/arm64/kernel/ |
D | process.c | 528 unsigned long stack_page, ret = 0; in get_wchan() local 533 stack_page = (unsigned long)try_get_task_stack(p); in get_wchan() 534 if (!stack_page) in get_wchan()
|
/Linux-v5.4/arch/mips/include/asm/ |
D | stacktrace.h | 13 extern unsigned long unwind_stack_by_address(unsigned long stack_page,
|