Home
last modified time | relevance | path

Searched refs:stack (Results 1 – 200 of 650) sorted by relevance

1234

/linux-4.4.14/arch/um/os-Linux/skas/
Dmem.c26 unsigned long *stack) in check_init_stack() argument
28 if (stack == NULL) { in check_init_stack()
29 stack = (unsigned long *) mm_idp->stack + 2; in check_init_stack()
30 *stack = 0; in check_init_stack()
32 return stack; in check_init_stack()
78 ret = *((unsigned long *) mm_idp->stack); in do_syscall_stub()
79 offset = *((unsigned long *) mm_idp->stack + 1); in do_syscall_stub()
81 data = (unsigned long *)(mm_idp->stack + offset - STUB_DATA); in do_syscall_stub()
114 unsigned long *stack = check_init_stack(mm_idp, *addr); in run_syscall_stub() local
116 *stack += sizeof(long); in run_syscall_stub()
[all …]
Dprocess.c184 static int userspace_tramp(void *stack) in userspace_tramp() argument
208 if (stack != NULL) { in userspace_tramp()
209 fd = phys_mapping(to_phys(stack), &offset); in userspace_tramp()
220 if (stack != NULL) { in userspace_tramp()
250 void *stack; in start_userspace() local
254 stack = mmap(NULL, UM_KERN_PAGE_SIZE, in start_userspace()
257 if (stack == MAP_FAILED) { in start_userspace()
264 sp = (unsigned long) stack + UM_KERN_PAGE_SIZE - sizeof(void *); in start_userspace()
301 if (munmap(stack, UM_KERN_PAGE_SIZE) < 0) { in start_userspace()
526 void new_thread(void *stack, jmp_buf *buf, void (*handler)(void)) in new_thread() argument
[all …]
/linux-4.4.14/arch/x86/kernel/
Ddumpstack_64.c34 static unsigned long *in_exception_stack(unsigned cpu, unsigned long stack, in in_exception_stack() argument
49 if (stack >= end) in in_exception_stack()
55 if (stack >= end - EXCEPTION_STKSZ) { in in_exception_stack()
74 if (k == DEBUG_STACK - 1 && stack >= end - DEBUG_STKSZ) { in in_exception_stack()
87 } while (stack < end - EXCEPTION_STKSZ); in in_exception_stack()
100 in_irq_stack(unsigned long *stack, unsigned long *irq_stack, in in_irq_stack() argument
103 return (stack >= irq_stack && stack < irq_stack_end); in in_irq_stack()
117 analyze_stack(int cpu, struct task_struct *task, unsigned long *stack, in analyze_stack() argument
123 addr = ((unsigned long)stack & (~(THREAD_SIZE - 1))); in analyze_stack()
127 *stack_end = in_exception_stack(cpu, (unsigned long)stack, in analyze_stack()
[all …]
Ddumpstack_32.c27 static void *is_hardirq_stack(unsigned long *stack, int cpu) in is_hardirq_stack() argument
31 return is_irq_stack(stack, irq); in is_hardirq_stack()
34 static void *is_softirq_stack(unsigned long *stack, int cpu) in is_softirq_stack() argument
38 return is_irq_stack(stack, irq); in is_softirq_stack()
42 unsigned long *stack, unsigned long bp, in dump_trace() argument
52 if (!stack) { in dump_trace()
55 stack = &dummy; in dump_trace()
57 stack = (unsigned long *)task->thread.sp; in dump_trace()
67 end_stack = is_hardirq_stack(stack, cpu); in dump_trace()
69 end_stack = is_softirq_stack(stack, cpu); in dump_trace()
[all …]
Ddumpstack.c97 unsigned long *stack, unsigned long bp, in print_context_stack() argument
103 while (valid_stack_ptr(tinfo, stack, sizeof(*stack), end)) { in print_context_stack()
106 addr = *stack; in print_context_stack()
108 if ((unsigned long) stack == bp + sizeof(long)) { in print_context_stack()
117 stack++; in print_context_stack()
125 unsigned long *stack, unsigned long bp, in print_context_stack_bp() argument
164 .stack = print_trace_stack,
171 unsigned long *stack, unsigned long bp, char *log_lvl) in show_trace_log_lvl() argument
174 dump_trace(task, regs, stack, bp, &print_trace_ops, log_lvl); in show_trace_log_lvl()
178 unsigned long *stack, unsigned long bp) in show_trace() argument
[all …]
Dirq_32.c55 static void call_on_stack(void *func, void *stack) in call_on_stack() argument
60 : "=b" (stack) in call_on_stack()
61 : "0" (stack), in call_on_stack()
Dstacktrace.c47 .stack = save_stack_stack,
53 .stack = save_stack_stack,
Dkexec-bzimage64.c343 void *stack; in bzImage64_load() local
476 stack = kexec_purgatory_get_symbol_addr(image, "stack_end"); in bzImage64_load()
477 if (IS_ERR(stack)) { in bzImage64_load()
483 regs64.rsp = (unsigned long)stack; in bzImage64_load()
/linux-4.4.14/drivers/misc/altera-stapl/
Daltera.c227 long *stack = astate->stack; in altera_execute() local
542 stack[stack_ptr] = stack[stack_ptr - 1]; in altera_execute()
548 long_tmp = stack[stack_ptr - 2]; in altera_execute()
549 stack[stack_ptr - 2] = stack[stack_ptr - 1]; in altera_execute()
550 stack[stack_ptr - 1] = long_tmp; in altera_execute()
556 stack[stack_ptr - 1] += stack[stack_ptr]; in altera_execute()
562 stack[stack_ptr - 1] -= stack[stack_ptr]; in altera_execute()
568 stack[stack_ptr - 1] *= stack[stack_ptr]; in altera_execute()
574 stack[stack_ptr - 1] /= stack[stack_ptr]; in altera_execute()
580 stack[stack_ptr - 1] %= stack[stack_ptr]; in altera_execute()
[all …]
/linux-4.4.14/tools/lib/traceevent/
Dplugin_function.c29 char **stack; member
59 static void add_child(struct func_stack *stack, const char *child, int pos) in add_child() argument
66 if (pos < stack->size) in add_child()
67 free(stack->stack[pos]); in add_child()
71 ptr = realloc(stack->stack, sizeof(char *) * in add_child()
72 (stack->size + STK_BLK)); in add_child()
78 stack->stack = ptr; in add_child()
80 for (i = stack->size; i < stack->size + STK_BLK; i++) in add_child()
81 stack->stack[i] = NULL; in add_child()
82 stack->size += STK_BLK; in add_child()
[all …]
/linux-4.4.14/arch/blackfin/kernel/
Ddumpstack.c35 void show_stack(struct task_struct *task, unsigned long *stack) in show_stack() argument
49 if (stack == NULL) { in show_stack()
52 stack = (unsigned long *)task->thread.ksp; in show_stack()
53 endstack = (unsigned int *)(((unsigned int)(stack) & ~(THREAD_SIZE - 1)) + THREAD_SIZE); in show_stack()
56 stack = (unsigned long *)&stack; in show_stack()
57 endstack = (unsigned int *)PAGE_ALIGN((unsigned int)stack); in show_stack()
60 endstack = (unsigned int *)PAGE_ALIGN((unsigned int)stack); in show_stack()
63 decode_address(buf, (unsigned int)stack); in show_stack()
64 printk(KERN_NOTICE " SP: [0x%p] %s\n", stack, buf); in show_stack()
66 if (!access_ok(VERIFY_READ, stack, (unsigned int)endstack - (unsigned int)stack)) { in show_stack()
[all …]
Dtraps.c464 unsigned long *stack; in trap_c() local
466 stack = (unsigned long *)rdusp(); in trap_c()
468 show_stack(NULL, stack); in trap_c()
/linux-4.4.14/arch/cris/kernel/
Dtraps.c41 void show_trace(unsigned long *stack) in show_trace() argument
53 while (((long)stack & (THREAD_SIZE - 1)) != 0) { in show_trace()
54 if (__get_user(addr, stack)) { in show_trace()
58 pr_err("Failing address 0x%lx\n", (unsigned long)stack); in show_trace()
61 stack++; in show_trace()
104 unsigned long *stack, addr; in show_stack() local
119 stack = sp; in show_stack()
121 pr_err("\nStack from %08lx:\n ", (unsigned long)stack); in show_stack()
123 if (((long)stack & (THREAD_SIZE-1)) == 0) in show_stack()
127 if (__get_user(addr, stack)) { in show_stack()
[all …]
/linux-4.4.14/arch/openrisc/kernel/
Dtraps.c49 void show_trace(struct task_struct *task, unsigned long *stack) in show_trace() argument
55 ((unsigned long)stack & (~(THREAD_SIZE - 1))); in show_trace()
57 while (valid_stack_ptr(context, stack)) { in show_trace()
58 addr = *stack++; in show_trace()
71 unsigned long addr, *stack; in show_stack() local
77 stack = esp; in show_stack()
81 if (kstack_end(stack)) in show_stack()
83 if (__get_user(addr, stack)) { in show_stack()
87 printk("Failing address 0x%lx\n", (unsigned long)stack); in show_stack()
90 stack++; in show_stack()
[all …]
Dprocess.c100 return (unsigned long)user_regs(t->stack)->pc; in thread_saved_pc()
230 new_ti = new->stack; in __switch_to()
231 old_ti = old->stack; in __switch_to()
/linux-4.4.14/arch/um/kernel/skas/
Dmmu.c54 unsigned long stack = 0; in init_new_context() local
57 stack = get_zeroed_page(GFP_KERNEL); in init_new_context()
58 if (stack == 0) in init_new_context()
61 to_mm->id.stack = stack; in init_new_context()
67 to_mm->id.u.pid = copy_context_skas0(stack, in init_new_context()
69 else to_mm->id.u.pid = start_userspace(stack); in init_new_context()
87 if (to_mm->id.stack != 0) in init_new_context()
88 free_page(to_mm->id.stack); in init_new_context()
102 ret = init_stub_pte(mm, STUB_DATA, mm->context.id.stack); in uml_setup_stubs()
107 mm->context.stub_pages[1] = virt_to_page(mm->context.id.stack); in uml_setup_stubs()
[all …]
Dprocess.c51 return current->mm->context.id.stack; in current_stub_stack()
/linux-4.4.14/arch/nios2/kernel/
Dtraps.c65 void show_stack(struct task_struct *task, unsigned long *stack) in show_stack() argument
70 if (!stack) { in show_stack()
72 stack = (unsigned long *)task->thread.ksp; in show_stack()
74 stack = (unsigned long *)&stack; in show_stack()
77 addr = (unsigned long) stack; in show_stack()
80 pr_emerg("Stack from %08lx:", (unsigned long)stack); in show_stack()
82 if (stack + 1 > endstack) in show_stack()
86 pr_emerg(" %08lx", *stack++); in show_stack()
91 while (stack + 1 <= endstack) { in show_stack()
92 addr = *stack++; in show_stack()
Dprocess.c104 struct switch_stack *stack; in copy_thread() local
128 stack = ((struct switch_stack *) regs) - 1; in copy_thread()
129 *childstack = *stack; in copy_thread()
/linux-4.4.14/arch/um/os-Linux/
Dhelper.c45 unsigned long stack, sp; in run_helper() local
48 stack = alloc_stack(0, __cant_sleep()); in run_helper()
49 if (stack == 0) in run_helper()
67 sp = stack + UM_KERN_PAGE_SIZE - sizeof(void *); in run_helper()
109 free_stack(stack, 0); in run_helper()
116 unsigned long stack, sp; in run_helper_thread() local
119 stack = alloc_stack(0, __cant_sleep()); in run_helper_thread()
120 if (stack == 0) in run_helper_thread()
123 sp = stack + UM_KERN_PAGE_SIZE - sizeof(void *); in run_helper_thread()
142 free_stack(stack, 0); in run_helper_thread()
[all …]
Dsignal.c119 stack_t stack = { in set_sigstack() local
125 if (sigaltstack(&stack, NULL) != 0) in set_sigstack()
/linux-4.4.14/arch/um/kernel/
Dsysrq.c30 void show_stack(struct task_struct *task, unsigned long *stack) in show_stack() argument
32 unsigned long *sp = stack; in show_stack()
42 if (!stack) in show_stack()
46 stack = sp; in show_stack()
48 if (kstack_end(stack)) in show_stack()
52 pr_cont(" %08lx", *stack++); in show_stack()
Dprocess.c58 void free_stack(unsigned long stack, int order) in free_stack() argument
60 free_pages(stack, order); in free_stack()
221 unsigned long stack; in user_context() local
223 stack = sp & (PAGE_MASK << CONFIG_KERNEL_STACK_ORDER); in user_context()
224 return stack != (unsigned long) current_thread_info(); in user_context()
Dum_arch.c255 unsigned long stack; in linux_main() local
326 stack = (unsigned long) argv; in linux_main()
327 stack &= ~(1024 * 1024 - 1); in linux_main()
328 avail = stack - start_vm; in linux_main()
/linux-4.4.14/Documentation/vDSO/
Dvdso_standalone_test_x86.c75 __attribute__((externally_visible)) void c_main(void **stack) in c_main() argument
78 long argc = (long)*stack; in c_main()
79 stack += argc + 2; in c_main()
82 while(*stack) in c_main()
83 stack++; in c_main()
84 stack++; in c_main()
87 vdso_init_from_auxv((void *)stack); in c_main()
DMakefile12 HOSTCFLAGS_vdso_standalone_test_x86.o := -fno-asynchronous-unwind-tables -fno-stack-protector
/linux-4.4.14/arch/h8300/kernel/
Dtraps.c118 unsigned long *stack, addr; in show_stack() local
124 stack = esp; in show_stack()
126 pr_info("Stack from %08lx:", (unsigned long)stack); in show_stack()
128 if (((unsigned long)stack & (THREAD_SIZE - 1)) == 0) in show_stack()
132 pr_info(" %08lx", *stack++); in show_stack()
137 stack = esp; in show_stack()
138 while (((unsigned long)stack & (THREAD_SIZE - 1)) != 0) { in show_stack()
139 addr = *stack++; in show_stack()
/linux-4.4.14/Documentation/x86/
Dkernel-stacks8 Like all other architectures, x86_64 has a kernel stack for every
11 zombie. While the thread is in user space the kernel stack is empty
19 * Interrupt stack. IRQ_STACK_SIZE
23 kernel switches from the current task to the interrupt stack. Like
26 of every per thread stack.
28 The interrupt stack is also used when processing a softirq.
30 Switching to the kernel interrupt stack is done by software based on a
35 to automatically switch to a new stack for designated events such as
40 point to dedicated stacks; each stack can be a different size.
44 loads such a descriptor, the hardware automatically sets the new stack
[all …]
Dentry_64.txt41 the IDT entries push an error code onto the stack; others don't.
42 IDT entries using the IST alternative stack mechanism need their own
43 magic to get the stack frames right. (You can find some
62 stack, from the CS of the ptregs area of the kernel stack:
82 use the faster check: the stack will be a reliable indicator of
90 stack but before we executed SWAPGS, then the only safe way to check
98 - Interrupt entry from user mode will switch off the IST stack.
/linux-4.4.14/Documentation/sound/alsa/
DHD-Audio-Models.txt5 3stack 3-jack in back and a headphone out
6 3stack-digout 3-jack in back, a HP out and a SPDIF out
7 5stack 5-jack in back, 2-jack in front
8 5stack-digout 5-jack in back, 2-jack in front, a SPDIF out
9 6stack 6-jack in back, 2-jack in front
10 6stack-digout 6-jack with a SPDIF out
91 3stack 3-stack mode
92 3stack-automute 3-stack with automute front HP (default)
93 6stack 6-stack mode
97 desktop 3-stack desktop (default)
[all …]
/linux-4.4.14/arch/x86/include/asm/
Dstacktrace.h18 unsigned long *stack,
27 unsigned long *stack, unsigned long bp,
33 unsigned long *stack, unsigned long bp,
42 int (*stack)(void *data, char *name); member
47 unsigned long *stack, unsigned long bp,
86 unsigned long *stack, unsigned long bp, char *log_lvl);
/linux-4.4.14/Documentation/wimax/
DREADME.wimax2 Linux kernel WiMAX stack
6 This provides a basic Linux kernel WiMAX stack to provide a common
11 The WiMAX stack is designed to provide for common WiMAX control
19 The stack works by embedding a struct wimax_dev in your device's
21 stack will call in order to implement control operations requested by
22 the user. As well, the stack provides API functions that the driver
25 The stack exports the API calls needed to control the device to user
30 For detailed information on the stack, please see
38 When a device is registered with the WiMAX stack, a set of debugfs
44 The WiMAX stack is compiled, by default, with debug messages that can
[all …]
/linux-4.4.14/Documentation/mn10300/
DABI.txt12 The stack grows downwards, and should always be 32-bit aligned. There are
13 separate stack pointer registers for userspace and the kernel.
22 on the stack.
25 registers and the stack. If the first argument is a 64-bit value, it will be
27 is, the second will be passed entirely on the stack and D1 will be unused.
29 Arguments smaller than 32-bits are not coalesced within a register or a stack
31 registers or word-sized stack slots.
38 The caller must allocate twelve bytes on the stack for the callee's use before
40 word, but won't actually modify the stack pointer; similarly, the RET
41 instruction reads from the TOS word of the stack, but doesn't move the stack
[all …]
/linux-4.4.14/fs/jfs/
Djfs_btree.h121 struct btframe stack[MAXTREEHEIGHT]; member
125 (btstack)->top = (btstack)->stack
128 ( (btstack)->top == &((btstack)->stack[MAXTREEHEIGHT-1]))
139 ( (btstack)->top == (btstack)->stack ? NULL : --(btstack)->top )
142 ( (btstack)->top == (btstack)->stack ? NULL : (btstack)->top )
150 (long long)btstack->stack[i].bn, in BT_STACK_DUMP()
151 btstack->stack[i].index); in BT_STACK_DUMP()
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-ocfs238 * 'o2cb' - The classic o2cb cluster stack that ocfs2 has
62 the cluster stack in use. The contents may change
63 when all filesystems are unmounted and the cluster stack
71 of current ocfs2 cluster stack. This value is set by
72 userspace tools when bringing the cluster stack online.
74 Cluster stack names are 4 characters in length.
76 When the 'o2cb' cluster stack is used, the 'o2cb' cluster
81 cluster stack on a single line.
83 Writing a new stack name to this file changes the current
84 cluster stack unless there are mounted ocfs2 filesystems.
[all …]
/linux-4.4.14/arch/powerpc/include/asm/
Dxics.h93 unsigned char stack[MAX_NUM_PRIORITIES]; member
107 os_cppr->stack[++os_cppr->index] = IPI_PRIORITY; in xics_push_cppr()
109 os_cppr->stack[++os_cppr->index] = DEFAULT_PRIORITY; in xics_push_cppr()
119 return os_cppr->stack[--os_cppr->index]; in xics_pop_cppr()
131 os_cppr->stack[0] = cppr; in xics_set_base_cppr()
138 return os_cppr->stack[os_cppr->index]; in xics_cppr_top()
/linux-4.4.14/arch/m32r/kernel/
Dtraps.c125 static void show_trace(struct task_struct *task, unsigned long *stack) in show_trace() argument
129 if (!stack) in show_trace()
130 stack = (unsigned long*)&stack; in show_trace()
133 while (!kstack_end(stack)) { in show_trace()
134 addr = *stack++; in show_trace()
143 unsigned long *stack; in show_stack() local
158 stack = sp; in show_stack()
160 if (kstack_end(stack)) in show_stack()
164 printk("%08lx ", *stack++); in show_stack()
Dptrace.c41 unsigned long *stack; in get_stack_long() local
43 stack = (unsigned long *)task_pt_regs(task); in get_stack_long()
45 return stack[offset]; in get_stack_long()
54 unsigned long *stack; in put_stack_long() local
56 stack = (unsigned long *)task_pt_regs(task); in put_stack_long()
57 stack[offset] = data; in put_stack_long()
/linux-4.4.14/arch/unicore32/kernel/
Dsleep.S29 @ store them plus current virtual stack ptr on stack
36 @ preserve phys address of stack
53 stm.w (r16 - r27, lr), [sp-] @ save registers on stack
54 stm.w (r4 - r15), [sp-] @ save registers on stack
165 ldw r0, sleep_save_sp @ stack phys addr
167 ldm (r3 - r6), [r0]+ @ CP regs + virt stack ptr
168 mov sp, r6 @ CP regs + virt stack ptr
186 .word 0 @ preserve stack phys ptr here
201 ldm.w (r4 - r15), [sp]+ @ restore registers from stack
Dsetup.c48 struct stack { struct
54 static struct stack stacks[NR_CPUS]; argument
109 struct stack *stk = &stacks[cpu]; in cpu_init()
125 "I" (offsetof(struct stack, irq[0])), in cpu_init()
127 "I" (offsetof(struct stack, abt[0])), in cpu_init()
129 "I" (offsetof(struct stack, und[0])), in cpu_init()
Dentry.S25 @ Most of the stack format comes from struct pt_regs, but with
170 @ from the exception stack
175 @ We are now ready to fill in the remaining blanks on the stack:
201 @ from the exception stack
204 @ We are now ready to fill in the remaining blanks on the stack:
221 @ Clear FP to mark the first stack frame
285 @ INTRs off again before pulling preserved data off the stack
339 @ r1 - pointer to registers on stack
348 @ INTRs off again before pulling preserved data off the stack
/linux-4.4.14/scripts/kconfig/
Dsymbol.c1058 static void dep_stack_insert(struct dep_stack *stack, struct symbol *sym) in dep_stack_insert() argument
1060 memset(stack, 0, sizeof(*stack)); in dep_stack_insert()
1062 check_top->next = stack; in dep_stack_insert()
1063 stack->prev = check_top; in dep_stack_insert()
1064 stack->sym = sym; in dep_stack_insert()
1065 check_top = stack; in dep_stack_insert()
1082 struct dep_stack *stack; in sym_check_print_recursive() local
1093 for (stack = check_top; stack != NULL; stack = stack->prev) in sym_check_print_recursive()
1094 if (stack->sym == last_sym) in sym_check_print_recursive()
1096 if (!stack) { in sym_check_print_recursive()
[all …]
/linux-4.4.14/arch/unicore32/include/asm/
Dprocessor.h55 unsigned long *stack = (unsigned long *)sp; \
60 regs->UCreg_02 = stack[2]; /* r2 (envp) */ \
61 regs->UCreg_01 = stack[1]; /* r1 (argv) */ \
62 regs->UCreg_00 = stack[0]; /* r0 (argc) */ \
/linux-4.4.14/arch/mn10300/kernel/
Dtraps.c236 unsigned long bottom, stack, addr, fp, raslot; in show_trace() local
241 asm("mov sp,%0" : "=a"(stack)); in show_trace()
245 bottom = (stack + THREAD_SIZE) & ~(THREAD_SIZE - 1); in show_trace()
246 for (; stack < bottom; stack += sizeof(addr)) { in show_trace()
247 addr = *(unsigned long *)stack; in show_trace()
248 if (stack == fp) { in show_trace()
249 if (addr > stack && addr < bottom) { in show_trace()
251 raslot = stack + sizeof(addr); in show_trace()
260 if (stack >= raslot) in show_trace()
277 unsigned long *stack; in show_stack() local
[all …]
Dptrace.c71 unsigned long stack; in put_stack_long() local
73 stack = (unsigned long) task->thread.uregs + offset; in put_stack_long()
74 *(unsigned long *) stack = data; in put_stack_long()
/linux-4.4.14/arch/c6x/kernel/
Dtraps.c355 static void show_trace(unsigned long *stack, unsigned long *endstack) in show_trace() argument
362 while (stack + 1 <= endstack) { in show_trace()
363 addr = *stack++; in show_trace()
385 void show_stack(struct task_struct *task, unsigned long *stack) in show_stack() argument
390 if (!stack) { in show_stack()
394 stack = (unsigned long *)thread_saved_ksp(task); in show_stack()
396 stack = (unsigned long *)&stack; in show_stack()
398 endstack = (unsigned long *)(((unsigned long)stack + THREAD_SIZE - 1) in show_stack()
401 pr_debug("Stack from %08lx:", (unsigned long)stack); in show_stack()
402 for (i = 0, p = stack; i < kstack_depth_to_print; i++) { in show_stack()
[all …]
/linux-4.4.14/arch/m68k/ifpsp060/
Dilsp.doc86 subq.l &0x8,%sp # make room for result on stack
87 pea (%sp) # pass: result addr on stack
88 mov.l %d0,-(%sp) # pass: multiplicand on stack
89 mov.l _multiplier,-(%sp) # pass: multiplier on stack
91 add.l &0xc,%sp # clear arguments from stack
100 subq.l &0x8,%sp # make room for result on stack
101 pea (%sp) # pass: result addr on stack
102 mov.l %d0,-(%sp) # pass: dividend hi on stack
103 mov.l %d1,-(%sp) # pass: dividend hi on stack
104 mov.l _divisor,-(%sp) # pass: divisor on stack
[all …]
Dfskeleton.S72 | for enabled overflow conditions. The exception stack frame is an overflow
73 | stack frame. The FP state frame holds the EXCEPTIONAL OPERAND.
91 | for enabled underflow conditions. The exception stack frame is an underflow
92 | stack frame. The FP state frame holds the EXCEPTIONAL OPERAND.
109 | for enabled operand error exceptions. The exception stack frame is an operand error
110 | stack frame. The FP state frame holds the source operand of the faulting
128 | for enabled signalling NaN exceptions. The exception stack frame is a signalling NaN
129 | stack frame. The FP state frame holds the source operand of the faulting
147 | for enabled divide-by-zero exceptions. The exception stack frame is a divide-by-zero
148 | stack frame. The FP state frame holds the source operand of the faulting
[all …]
Diskeleton.S61 | can do any clean-up desired. The stack frame is the
62 | Unimplemented Integer Instruction stack frame with
87 | a CHK exception stack frame from the Unimplemented Integer Instrcution
88 | stack frame and branches to this routine.
122 | creates a Divide-by-zero exception stack frame from the Unimplemented
123 | Integer Instruction stack frame and branches to this routine.
127 | then it create a Trace exception stack frame from the "chk" exception
128 | stack frame and branches to the _real_trace() entry point.
DCHANGES73 the package creates a 16-byte access error stack frame
74 from the current exception stack frame and exits
81 VOFF = $4008 (stack frame format type)
103 VOFF = $4008 (stack frame format type)
/linux-4.4.14/tools/perf/util/
Dthread-stack.c97 struct thread_stack_entry *stack; member
116 new_stack = realloc(ts->stack, sz); in thread_stack__grow()
120 ts->stack = new_stack; in thread_stack__grow()
161 ts->stack[ts->cnt++].ret_addr = ret_addr; in thread_stack__push()
180 if (ts->stack[--i].ret_addr == ret_addr) { in thread_stack__pop()
192 return ts->stack[ts->cnt - 1].cp->in_kernel; in thread_stack__in_kernel()
207 tse = &ts->stack[idx]; in thread_stack__call_return()
317 zfree(&thread->ts->stack); in thread_stack__free()
335 chain->ips[i] = thread->ts->stack[thread->ts->cnt - i].ret_addr; in thread_stack__sample()
482 tse = &ts->stack[ts->cnt++]; in thread_stack__push_cp()
[all …]
Dunwind-libdw.c112 struct stack_dump *stack = &ui->sample->user_stack; in memory_read() local
121 end = start + stack->size; in memory_read()
139 *result = *(Dwarf_Word *)&stack->data[offset]; in memory_read()
/linux-4.4.14/Documentation/metag/
Dkernel-ABI.txt94 kernel stack pointer and saving
96 A0.15 !SMP Protected Stores kernel stack pointer.
99 On UP A0.15 is used to store the kernel stack pointer for storing the userland
102 available A1GbP is reserved for use as a temporary to allow a percpu stack
165 These calling conventions apply to both user and kernel code. The stack grows
166 from low addresses to high addresses in the metag ABI. The stack pointer (A0StP)
167 should always point to the next free address on the stack and should at all
193 arguments are stored on the stack in reverse order (earlier arguments at higher
205 easily pushed onto stack */
208 /* If frame pointer in use, set it to stack pointer */
[all …]
/linux-4.4.14/Documentation/ia64/
Dmca.txt42 assume that the kernel stack is in a fit state to be used. Mainly
43 because PAL may or may not maintain the stack pointer internally.
44 Because the MCA/INIT handlers cannot trust the kernel stack, they
50 the kernel stack[1]. So switching to a new kernel stack means that
53 stack also means a new value for current.
73 switches to an MCA/INIT stack, registers its new stack using
82 own stack as running on that cpu. Then a recursive error gets a
133 stack, so switching stack means switching task.
138 kernel stack.
152 OS has no idea what unwind data is available for the user space stack,
[all …]
Dfsys.txt17 Both the register stack and the memory stack have been
19 in a pt-regs structure at the top of the kernel memory stack.
22 Both the register stack and the kernel stack are in
45 - neither the memory-stack nor the register-stack can be trusted while
71 executing on the user-level stack(s). Finally, fsys_mode() returns
131 (register-stack engine) traffic.
/linux-4.4.14/arch/s390/kernel/
Ddumpstack.c67 static void show_trace(struct task_struct *task, unsigned long *stack) in show_trace() argument
74 sp = (unsigned long) stack; in show_trace()
100 unsigned long *stack; in show_stack() local
104 stack = task ? (unsigned long *) task->thread.ksp : __r15; in show_stack()
106 stack = sp; in show_stack()
109 if (((addr_t) stack & (THREAD_SIZE-1)) == 0) in show_stack()
113 printk("%016lx ", *stack++); in show_stack()
Dkprobes.c681 unsigned long stack; in setjmp_pre_handler() local
690 stack = (unsigned long) regs->gprs[15]; in setjmp_pre_handler()
692 memcpy(kcb->jprobes_stack, (void *) stack, MIN_STACK_SIZE(stack)); in setjmp_pre_handler()
706 unsigned long stack; in longjmp_break_handler() local
708 stack = (unsigned long) kcb->jprobe_saved_regs.gprs[15]; in longjmp_break_handler()
713 memcpy((void *) stack, kcb->jprobes_stack, MIN_STACK_SIZE(stack)); in longjmp_break_handler()
Dhead64.S33 # Setup stack
40 stg %r15,__LC_KERNEL_STACK # set end of kernel stack
67 .quad .Llinkage_stack # cr15: linkage stack operations
Dperf_event.c51 struct stack_frame *stack = (struct stack_frame *) regs->gprs[15]; in sie_block() local
53 if (!stack) in sie_block()
56 return (struct kvm_s390_sie_block *) stack->empty1[0]; in sie_block()
Dentry.S98 0: lg %r14,__LC_ASYNC_STACK # are we already on the async stack?
107 2: lg %r15,__LC_ASYNC_STACK # load async stack
180 stg %r15,__THREAD_ksp(%r1) # store kernel stack of prev
184 aghi %r15,STACK_INIT # end of kernel stack of next
187 stg %r15,__LC_KERNEL_STACK # store end of kernel stack
188 lg %r15,__THREAD_ksp(%r1) # load kernel stack of next
609 # Before any work can be done, a switch to the kernel stack is required.
620 # switch to kernel stack
637 # Need to do work before returning to userspace, switch to kernel stack
910 lg %r1,__LC_KERNEL_STACK # switch to kernel stack
[all …]
/linux-4.4.14/arch/arm/lib/
Dbacktrace.S17 @ fp is 0 or stack frame
33 beq no_frame @ we have no stack frames
117 #define stack r6 macro
119 .Ldumpstm: stmfd sp!, {instr, reg, stack, r7, lr}
120 mov stack, r0
134 ldr r2, [stack], #-4
143 ldmfd sp!, {instr, reg, stack, r7, pc}
/linux-4.4.14/arch/powerpc/kernel/
Dstacktrace.c26 unsigned long *stack = (unsigned long *) sp; in save_context_stack() local
32 newsp = stack[0]; in save_context_stack()
33 ip = stack[STACK_FRAME_LR_SAVE]; in save_context_stack()
/linux-4.4.14/arch/unicore32/lib/
Dbacktrace.S16 @ fp is 0 or stack frame
36 beq no_frame @ we have no stack frames
117 #define stack v6 macro
119 .Ldumpstm: stm.w (instr, reg, stack, v7, lr), [sp-]
120 mov stack, r0
136 ldw.w r3, [stack]+, #-4
154 201: ldm.w (instr, reg, stack, v7, pc), [sp]+
/linux-4.4.14/scripts/
Dcheckstack.pl37 my (@stack, $re, $dre, $x, $xs, $funcre);
155 push @stack, "$intro$size\n";
171 push @stack, "$intro$size\n";
176 print sort { ($b =~ /:\t*(\d+)$/)[0] <=> ($a =~ /:\t*(\d+)$/)[0] } @stack;
DMakefile.kasan14 --param asan-stack=1 --param asan-globals=1 \
/linux-4.4.14/net/ipv4/
Dinetpeer.c241 static void peer_avl_rebalance(struct inet_peer __rcu **stack[], in peer_avl_rebalance() argument
249 while (stackend > stack) { in peer_avl_rebalance()
326 peer_avl_rebalance(stack, stackptr, base); \
335 struct inet_peer __rcu **stack[PEER_MAXDEPTH]) in unlink_from_pool()
339 if (lookup(&p->daddr, stack, base) != p) in unlink_from_pool()
361 peer_avl_rebalance(stack, stackptr, base); in unlink_from_pool()
368 struct inet_peer __rcu **stack[PEER_MAXDEPTH], in inet_peer_gc()
382 while (stackptr > stack) { in inet_peer_gc()
398 unlink_from_pool(p, base, stack); in inet_peer_gc()
407 struct inet_peer __rcu **stack[PEER_MAXDEPTH], ***stackptr; in inet_getpeer() local
[all …]
/linux-4.4.14/tools/perf/util/intel-pt-decoder/
Dintel-pt-decoder.c111 struct intel_pt_stack stack; member
241 static void intel_pt_pop_blk(struct intel_pt_stack *stack) in intel_pt_pop_blk() argument
243 struct intel_pt_blk *blk = stack->blk; in intel_pt_pop_blk()
245 stack->blk = blk->prev; in intel_pt_pop_blk()
246 if (!stack->spare) in intel_pt_pop_blk()
247 stack->spare = blk; in intel_pt_pop_blk()
252 static uint64_t intel_pt_pop(struct intel_pt_stack *stack) in intel_pt_pop() argument
254 if (!stack->pos) { in intel_pt_pop()
255 if (!stack->blk) in intel_pt_pop()
257 intel_pt_pop_blk(stack); in intel_pt_pop()
[all …]
/linux-4.4.14/arch/metag/kernel/
Dtbiunexp.S15 MSETL [A0StP],D0Ar6,D0Ar4,D0Ar2 ! Save args on stack
17 SWITCH #0xC20208 ! Total stack frame size 8 Dwords
20 SUB A0StP,A0StP,#(8*3) ! Recover stack frame
/linux-4.4.14/fs/overlayfs/
Dsuper.c439 struct path *stack = NULL; in ovl_lookup() local
474 stack = kcalloc(poe->numlower, sizeof(struct path), GFP_KERNEL); in ovl_lookup()
475 if (!stack) in ovl_lookup()
523 stack[ctr].dentry = this; in ovl_lookup()
524 stack[ctr].mnt = lowerpath.mnt; in ovl_lookup()
539 realdentry = upperdentry ? upperdentry : stack[0].dentry; in ovl_lookup()
551 memcpy(oe->lowerstack, stack, sizeof(struct path) * ctr); in ovl_lookup()
552 kfree(stack); in ovl_lookup()
562 dput(stack[i].dentry); in ovl_lookup()
563 kfree(stack); in ovl_lookup()
[all …]
/linux-4.4.14/tools/perf/arch/x86/tests/
Ddwarf-unwind.c15 struct stack_dump *stack = &sample->user_stack; in sample_ustack() local
39 stack->data = (char *) buf; in sample_ustack()
40 stack->size = stack_size; in sample_ustack()
/linux-4.4.14/tools/perf/arch/arm64/tests/
Ddwarf-unwind.c14 struct stack_dump *stack = &sample->user_stack; in sample_ustack() local
38 stack->data = (char *) buf; in sample_ustack()
39 stack->size = stack_size; in sample_ustack()
/linux-4.4.14/tools/perf/arch/arm/tests/
Ddwarf-unwind.c14 struct stack_dump *stack = &sample->user_stack; in sample_ustack() local
38 stack->data = (char *) buf; in sample_ustack()
39 stack->size = stack_size; in sample_ustack()
/linux-4.4.14/arch/sh/kernel/
Ddumpstack.c123 .stack = print_trace_stack,
147 unsigned long stack; in show_stack() local
156 stack = (unsigned long)sp; in show_stack()
157 dump_mem("Stack: ", stack, THREAD_SIZE + in show_stack()
Dptrace_64.c60 unsigned char *stack; in get_stack_long() local
62 stack = (unsigned char *)(task->thread.uregs); in get_stack_long()
63 stack += offset; in get_stack_long()
64 return (*((int *)stack)); in get_stack_long()
101 unsigned char *stack; in put_stack_long() local
103 stack = (unsigned char *)(task->thread.uregs); in put_stack_long()
104 stack += offset; in put_stack_long()
105 *(unsigned long *) stack = data; in put_stack_long()
Dptrace_32.c44 unsigned char *stack; in get_stack_long() local
46 stack = (unsigned char *)task_pt_regs(task); in get_stack_long()
47 stack += offset; in get_stack_long()
48 return (*((int *)stack)); in get_stack_long()
57 unsigned char *stack; in put_stack_long() local
59 stack = (unsigned char *)task_pt_regs(task); in put_stack_long()
60 stack += offset; in put_stack_long()
61 *(unsigned long *) stack = data; in put_stack_long()
Dstacktrace.c45 .stack = save_stack_stack,
80 .stack = save_stack_stack,
Dperf_callchain.c31 .stack = callchain_stack,
/linux-4.4.14/net/llc/
Dllc_sap.c365 struct sock **stack, int count) in llc_do_mcast() argument
373 sock_put(stack[i]); in llc_do_mcast()
377 llc_sap_rcv(sap, skb1, stack[i]); in llc_do_mcast()
378 sock_put(stack[i]); in llc_do_mcast()
395 struct sock *sk, *stack[count]; in llc_sap_mcast() local
409 stack[i++] = sk; in llc_sap_mcast()
411 llc_do_mcast(sap, skb, stack, i); in llc_sap_mcast()
417 llc_do_mcast(sap, skb, stack, i); in llc_sap_mcast()
/linux-4.4.14/arch/x86/purgatory/
Dstack.S15 .globl stack, stack_end
17 stack: label
/linux-4.4.14/kernel/trace/
Dtrace_stack.c75 check_stack(unsigned long ip, unsigned long *stack) in check_stack() argument
82 this_size = ((unsigned long)stack) & (THREAD_SIZE-1); in check_stack()
91 if (!object_is_on_stack(stack)) in check_stack()
139 start = stack; in check_stack()
174 tracer_frame = (p - stack) * in check_stack()
204 unsigned long stack; in stack_trace_call() local
216 check_stack(ip, &stack); in stack_trace_call()
Dtrace_events_filter.c723 static int __alloc_pred_stack(struct pred_stack *stack, int n_preds) in __alloc_pred_stack() argument
725 stack->preds = kcalloc(n_preds + 1, sizeof(*stack->preds), GFP_KERNEL); in __alloc_pred_stack()
726 if (!stack->preds) in __alloc_pred_stack()
728 stack->index = n_preds; in __alloc_pred_stack()
732 static void __free_pred_stack(struct pred_stack *stack) in __free_pred_stack() argument
734 kfree(stack->preds); in __free_pred_stack()
735 stack->index = 0; in __free_pred_stack()
738 static int __push_pred_stack(struct pred_stack *stack, in __push_pred_stack() argument
741 int index = stack->index; in __push_pred_stack()
746 stack->preds[--index] = pred; in __push_pred_stack()
[all …]
/linux-4.4.14/arch/x86/oprofile/
Dbacktrace.c35 .stack = backtrace_stack,
115 unsigned long stack = kernel_stack_pointer(regs); in x86_backtrace() local
117 dump_trace(NULL, regs, (unsigned long *)stack, 0, in x86_backtrace()
/linux-4.4.14/arch/sh/include/asm/
Dstacktrace.h15 int (*stack)(void *data, char *name); member
19 unsigned long *stack,
/linux-4.4.14/mm/kasan/
DMakefile6 CFLAGS_kasan.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
Dreport.c113 return addr >= (void *)&init_thread_union.stack && in init_task_stack_addr()
114 (addr <= (void *)&init_thread_union.stack + in init_task_stack_addr()
115 sizeof(init_thread_union.stack)); in init_task_stack_addr()
/linux-4.4.14/arch/powerpc/mm/
Dslb.c198 unsigned long stack = KSTK_ESP(tsk); in switch_slb() local
240 if (is_kernel_addr(pc) || is_kernel_addr(stack) || in switch_slb()
246 if (!esids_match(pc, stack)) in switch_slb()
247 slb_allocate(stack); in switch_slb()
250 !esids_match(stack, exec_base)) in switch_slb()
/linux-4.4.14/arch/m68k/kernel/
Dentry.S87 movel %sp,%sp@- | stack frame pointer argument
95 movel %sp,%sp@- | stack frame pointer argument
232 | kernel stack, otherwise stack overflow can occur during
283 movel %d0,%sp@- | put vector # on stack
286 addql #8,%sp | pop parameters off stack
300 movel %d0,%sp@- | put vector # on stack
302 addql #8,%sp | pop parameters off stack
Dtraps.c813 void show_trace(unsigned long *stack) in show_trace() argument
820 addr = (unsigned long)stack + THREAD_SIZE - 1; in show_trace()
823 while (stack + 1 <= endstack) { in show_trace()
824 addr = *stack++; in show_trace()
937 void show_stack(struct task_struct *task, unsigned long *stack) in show_stack() argument
943 if (!stack) { in show_stack()
945 stack = (unsigned long *)task->thread.esp0; in show_stack()
947 stack = (unsigned long *)&stack; in show_stack()
949 endstack = (unsigned long *)(((unsigned long)stack + THREAD_SIZE - 1) & -THREAD_SIZE); in show_stack()
951 pr_info("Stack from %08lx:", (unsigned long)stack); in show_stack()
[all …]
/linux-4.4.14/arch/arm/kernel/
Dentry-header.S20 @ Most of the stack format comes from struct pt_regs, but with
78 @ exception happend that is either on the main or the process stack.
79 @ Bit 2 of EXC_RETURN stored in the lr register specifies which stack
90 @ Linux expects to have irqs off. Do it here before taking stack space
102 @ calculate the original stack pointer value.
105 @ The cpu might automatically 8-byte align the stack. Bit 9
106 @ of the saved xPSR specifies if stack aligning took place. In this case
107 @ another 32-bit value is included in the stack.
Dreboot.c62 u64 *stack = soft_restart_stack + ARRAY_SIZE(soft_restart_stack); in _soft_restart() local
73 call_with_stack(__soft_restart, (void *)addr, (void *)stack); in _soft_restart()
Dsetup.c138 struct stack { struct
146 static struct stack stacks[NR_CPUS]; argument
457 struct stack *stk = &stacks[cpu]; in cpu_init()
502 "I" (offsetof(struct stack, irq[0])), in cpu_init()
504 "I" (offsetof(struct stack, abt[0])), in cpu_init()
506 "I" (offsetof(struct stack, und[0])), in cpu_init()
508 "I" (offsetof(struct stack, fiq[0])), in cpu_init()
/linux-4.4.14/tools/testing/selftests/memfd/
Dfuse_test.c202 uint8_t *stack; in spawn_sealing_thread() local
205 stack = malloc(STACK_SIZE); in spawn_sealing_thread()
206 if (!stack) { in spawn_sealing_thread()
212 stack + STACK_SIZE, in spawn_sealing_thread()
/linux-4.4.14/arch/sh/kernel/cpu/sh2a/
Dentry.S39 ! stack
58 add r2,r0 ! r0 = kernel stack tail
59 mov r15,r2 ! r2 = user stack top
60 mov r0,r15 ! switch kernel stack
74 mov r2,r8 ! r8 = previus stack top
76 ! restore previous stack
87 mov r2,r8 ! r8 = previous stack top
/linux-4.4.14/arch/tile/include/gxio/
Dmpipe.h440 unsigned int stack,
458 unsigned int stack, void *buffer) in gxio_mpipe_push_buffer() argument
470 offset.stack = stack; in gxio_mpipe_push_buffer()
488 unsigned int stack) in gxio_mpipe_pop_buffer() argument
499 offset.stack = stack; in gxio_mpipe_pop_buffer()
/linux-4.4.14/arch/tile/gxio/
Dmpipe.c136 unsigned int stack, in gxio_mpipe_init_buffer_stack() argument
146 mem_flags, stack, in gxio_mpipe_init_buffer_stack()
152 context->__stacks.stacks[buffer_size_enum] = stack; in gxio_mpipe_init_buffer_stack()
237 int stack = 255; in gxio_mpipe_rules_begin() local
288 stack = maybe; in gxio_mpipe_rules_begin()
289 rule->stacks.stacks[i] = stack; in gxio_mpipe_rules_begin()
292 if (stack == 255) in gxio_mpipe_rules_begin()
298 rule->stacks.stacks[i] = stack; in gxio_mpipe_rules_begin()
Diorpc_mpipe.c44 unsigned int stack; member
50 unsigned int mem_flags, unsigned int stack, in gxio_mpipe_init_buffer_stack_aux() argument
66 params->stack = stack; in gxio_mpipe_init_buffer_stack_aux()
/linux-4.4.14/arch/m68k/fpsp040/
Dskeleton.S74 movel %sp,%sp@- | stack frame pointer argument
132 | We do not have the bug 1232 case. Clean up the stack and call
165 movel %sp,%sp@- | stack frame pointer argument
191 movel %sp,%sp@- | stack frame pointer argument
217 movel %sp,%sp@- | stack frame pointer argument
239 movel %sp,%sp@- | stack frame pointer argument
261 movel %sp,%sp@- | stack frame pointer argument
289 movel %sp,%sp@- | stack frame pointer argument
398 | stack. The result is that a UNIX
443 | destination address on the supervisor stack. Also like mem_write,
Dget_op.S39 | routine. The number is normalized, put back on the stack and
507 bra finish |special already on stack
537 fmovex %fp0,ETEMP(%a6) |put the unpacked sop in the fsave stack
564 bra finish |special already on stack
607 | ;put the unpacked sop in the fsave stack
614 movew %d0,CMDREG1B(%a6) |write command word back to fsave stack
620 |Converted result is now in etemp on fsave stack, now set the source
Dsgetem.S17 | the floating-point save stack.
84 movew %d0,LOCAL_EX(%a0) |move the sign & exp back to fsave stack
97 movel %d0,LOCAL_HI(%a0) |put ms mant back on stack
98 movel %d1,LOCAL_LO(%a0) |put ls mant back on stack
Dx_snan.S176 movel %d1,-(%a7) |move the snan onto the stack
180 movel (%a7)+,%d1 |clear off stack
198 movel %d1,-(%a7) |move the snan onto the stack
202 movel (%a7)+,%d1 |clear off stack
219 movel %d1,-(%a7) |move the snan onto the stack
223 movel (%a7)+,%d1 |clear off stack
Dx_fline.S36 | long onto the stack.
54 | ;a6 can point correctly to the stack frame
65 | ;if an FMOVECR instruction, fix stack
Dx_operr.S256 | the stack at (a7). D1 has size: 1=byte,2=word,4=long/single
302 | End_operr tests for operr enabled. If not, it cleans up the stack
303 | and does an rte. If enabled, it cleans up the stack and branches
305 | frame on the stack and the fpu in the original exceptional state
Dx_store.S53 | in the USER_FPn variable on the stack because all exception
151 movel %d0,LOCAL_EX(%a1) |put the new exp back on the stack
157 movel %d0,LOCAL_EX(%a1) |put the new exp back on the stack
/linux-4.4.14/arch/parisc/kernel/
Dprocess.c192 void *stack = task_stack_page(p); in copy_thread() local
208 cregs->ksp = (unsigned long)stack + THREAD_SZ_ALGN + FRAME_SIZE; in copy_thread()
231 cregs->ksp = (unsigned long)stack + THREAD_SZ_ALGN + FRAME_SIZE; in copy_thread()
/linux-4.4.14/arch/sh/kernel/cpu/sh3/
Dentry.S99 ! It can be valid access, such as stack grow and/or C-O-W.
210 ! - restore r0, r1, r2, r3, r4, r5, r6, r7 from the stack
212 ! - restore r8, r9, r10, r11, r12, r13, r14, r15 from the stack
216 ! k4 returns original stack pointer
242 mov.l @r15+, k4 ! original stack pointer
305 ! - switch to kernel stack
330 ! Switch to kernel stack if needed
/linux-4.4.14/arch/m68k/ifpsp060/src/
Dpfpsp.S1224 mov.l %a0,EXC_A7(%a6) # save on stack
1242 # stack frame and protocol.
1580 # is the ea mode pre-decrement of the stack pointer from supervisor mode?
1587 # somewhere on the stack until we can copy it to its final resting place.
1706 fmovm.x &0x40,FP_SRC(%a6) # save EXOP to the stack
1757 # frame or it will get overwritten when the exc stack frame is shifted "down".
1758 fmovm.x &0x80,FP_SRC(%a6) # put answer on stack
1759 fmovm.x &0x40,FP_DST(%a6) # put EXOP on stack
1776 # now, copy the result to the proper place on the stack
1787 fmovm.x &0x40,FP_SRC(%a6) # save EXOP to the stack
[all …]
/linux-4.4.14/tools/testing/selftests/x86/
Dsyscall_arg_fault.c69 stack_t stack = { in main() local
73 if (sigaltstack(&stack, NULL) != 0) in main()
Dsysret_ss_attrs.c44 extern unsigned long call32_from_64(void *stack, void (*function)(void));
/linux-4.4.14/arch/arm/boot/compressed/
Dvmlinux.lds.S78 .stack : { *(.stack) }
/linux-4.4.14/arch/x86/um/
Dptrace_32.c196 int err, n, cpu = ((struct thread_info *) child->stack)->cpu; in get_fpregs()
212 int n, cpu = ((struct thread_info *) child->stack)->cpu; in set_fpregs()
225 int err, n, cpu = ((struct thread_info *) child->stack)->cpu; in get_fpxregs()
241 int n, cpu = ((struct thread_info *) child->stack)->cpu; in set_fpxregs()
Dsetjmp_64.S24 pop %rsi # Return address, and adjust the stack
28 push %rsi # Make the call/return stack happy
Dsetjmp_32.S27 popl %ecx # Return address, and adjust the stack
31 pushl %ecx # Make the call/return stack happy
Dptrace_64.c224 int err, n, cpu = ((struct thread_info *) child->stack)->cpu; in get_fpregs()
241 int n, cpu = ((struct thread_info *) child->stack)->cpu; in set_fpregs()
/linux-4.4.14/Documentation/vm/
Dovercommit-accounting38 The C language stack growth does an implicit mremap. If you want absolute
39 guarantees and run close to the edge you MUST mmap your stack for the
40 largest size you think you will need. For typical stack usage this does
74 o Review stack handling/building on exec
/linux-4.4.14/arch/x86/
DMakefile29 $(call cc-option, -fno-stack-protector) \
30 $(call cc-option, -mpreferred-stack-boundary=2)
68 KBUILD_CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2)
101 KBUILD_CFLAGS += $(call cc-option,-mpreferred-stack-boundary=3)
131 cc_has_sp := $(srctree)/scripts/gcc-x86_$(BITS)-has-stack-protector.sh
133 $(warning stack-protector enabled but compiler support broken)
/linux-4.4.14/arch/um/include/asm/
Dprocessor-generic.h68 #define init_stack (init_thread_union.stack)
92 unsigned long stack);
Dsysrq.h5 extern void show_trace(struct task_struct* task, unsigned long *stack);
Dthread_info.h38 #define init_stack (init_thread_union.stack)
/linux-4.4.14/arch/mips/boot/compressed/
Dhead.S52 PTR_LA sp, (.stack + 8192) /* stack address */
72 .comm .stack,4096*2,4
/linux-4.4.14/arch/nios2/
DKconfig.debug9 bool "Enable stack utilization instrumentation"
12 Enables the display of the minimum amount of free stack which each
/linux-4.4.14/arch/
DKconfig240 the API needed to access registers and stack entries from pt_regs,
287 Support user stack dumps for perf event samples. This needs
288 access to the user stack pointer which is not unified across
364 - it has implemented a stack canary (e.g. __stack_chk_guard)
369 Set when a stack-protector mode is enabled, so that the build
377 This option turns on the "stack-protector" GCC feature. This
379 the stack just before the return address, and validates
388 Disable "stack-protector" GCC feature.
394 Functions will have the stack-protector canary logic added if they
395 have an 8-byte or larger character array on the stack.
[all …]
/linux-4.4.14/drivers/firewire/
DKconfig8 tristate "FireWire driver stack"
11 This is the new-generation IEEE 1394 (FireWire) driver stack
15 for information about migration from the older Linux 1394 stack
16 to the new driver stack.
Dcore-topology.c187 struct list_head stack, *h; in build_tree() local
195 INIT_LIST_HEAD(&stack); in build_tree()
227 for (i = 0, h = &stack; i < child_port_count; i++) in build_tree()
292 __list_del(h->prev, &stack); in build_tree()
293 list_add_tail(&node->link, &stack); in build_tree()
/linux-4.4.14/Documentation/networking/
Dieee802154.txt14 of the IEEE 802.15.4 and 6LoWPAN protocols. IEEE 802.15.4 is a stack
17 The stack is composed of three main parts:
19 the generic Linux networking stack to transfer IEEE 802.15.4 messages
73 The MAC is the middle layer in the IEEE 802.15.4 Linux stack. This moment it
77 stack interface for network sniffers (e.g. WireShark).
109 provides possibility to test and debug stack without usage of real hardware.
Dipvlan.txt39 In this mode TX processing happens on the stack instance attached to the
45 In this mode TX processing upto L3 happens on the stack instance attached
46 to the slave device and packets are switched to the stack instance of the
Dirda.txt5 For more information about how to use the IrDA protocol stack, see the
/linux-4.4.14/tools/perf/Documentation/
Dperf-top.txt161 Enables call-graph (stack chain/backtrace) recording.
164 Setup and enable call-graph (stack chain/backtrace) recording,
174 --max-stack::
175 Set the stack depth limit when parsing the callchain, anything
178 workloads that can have a very long callchain stack.
214 Enable taken branch stack sampling. Any type of taken branch may be sampled.
219 Enable taken branch stack sampling. Each sample captures a series of consecutive
228 levels are subject to permissions. When sampling on multiple events, branch stack sampling
Dperf-record.txt59 - 'stack-size': user stack size for dwarf mode
143 Enables call-graph (stack chain/backtrace) recording.
146 Setup and enable call-graph (stack chain/backtrace) recording,
162 doesn't work with branch stack sampling at the same time.
164 When "dwarf" recording is used, perf also records (user) stack dump
165 when sampled. Default size of the stack dump is 8192 (bytes).
229 Enable taken branch stack sampling. Any type of taken branch may be sampled.
234 Enable taken branch stack sampling. Each sample captures a series of consecutive
257 levels are subject to permissions. When sampling on multiple events, branch stack sampling
Dperf-report.txt104 If --branch-stack option is used, following sort keys are also
118 and symbol_to, see '--branch-stack'.
131 (incompatible with --branch-stack):
213 --max-stack::
214 Set the stack depth limit when parsing the callchain, anything
217 workloads that can have a very long callchain stack.
288 --branch-stack::
295 unless --no-branch-stack is used.
/linux-4.4.14/net/nfc/
DKconfig21 tristate "NFC Digital Protocol stack support"
24 Say Y if you want to build NFC digital protocol stack support.
/linux-4.4.14/arch/arc/include/asm/
Dentry-arcv2.h13 ; 1. SP auto-switched to kernel mode stack
22 ; Auto stack switch works
101 st.as r10, [sp, 10] ; save status32 at it's right stack slot
Dthread_info.h66 #define init_stack (init_thread_union.stack)
/linux-4.4.14/arch/unicore32/boot/compressed/
Dvmlinux.lds.in58 .stack : { *(.stack) }
/linux-4.4.14/arch/um/include/shared/
Dos.h274 extern int copy_context_skas0(unsigned long stack, int pid);
277 unsigned long stack);
278 extern void new_thread(void *stack, jmp_buf *buf, void (*handler)(void));
280 extern int start_idle_thread(void *stack, jmp_buf *switch_buf);
/linux-4.4.14/arch/s390/include/asm/
Dcompat.h292 unsigned long stack; in arch_compat_alloc_user_space() local
294 stack = KSTK_ESP(current); in arch_compat_alloc_user_space()
296 stack &= 0x7fffffffUL; in arch_compat_alloc_user_space()
297 return (void __user *) (stack - len); in arch_compat_alloc_user_space()
/linux-4.4.14/arch/um/drivers/
Dchan_user.c276 unsigned long stack; in register_winch() local
290 thread = winch_tramp(fd, port, &thread_fd, &stack); in register_winch()
294 register_winch_irq(thread_fd, fd, thread, port, stack); in register_winch()
Dline.c601 unsigned long stack; member
612 if (winch->stack != 0) in __free_winch()
613 free_stack(winch->stack, 0); in __free_winch()
675 unsigned long stack) in register_winch_irq() argument
690 .stack = stack }); in register_winch_irq()
710 if (stack != 0) in register_winch_irq()
711 free_stack(stack, 0); in register_winch_irq()
Dchan_user.h44 struct tty_port *port, unsigned long stack);
/linux-4.4.14/arch/mn10300/include/asm/
Dframe.inc29 # build a stack frame from the registers
59 # restore the registers from a stack frame
63 # peel back the stack to the calling frame
/linux-4.4.14/Documentation/powerpc/
Dtransactional_memory.txt152 the stack. It's possible that the stack has moved back up after the tbegin.
154 returns before a tend. In this case, the stack is part of the checkpointed
157 stack pointer will be back at the tbegin but our in memory stack won't be valid
161 the stack pointer from the checkpointed state, rather than the speculated
163 written below the stack required for the rollback. The transaction is aborted
168 normal/non-checkpointed stack pointer.
/linux-4.4.14/arch/x86/boot/
Dpmjump.S58 # The 32-bit code sets up its own stack, but this way we do have
59 # a valid stack if some debugging hack wants to use it.
/linux-4.4.14/drivers/gpu/drm/nouveau/nvif/
Dobject.c146 u8 stack[128]; in nvif_object_mthd() local
149 if (sizeof(*args) + size > sizeof(stack)) { in nvif_object_mthd()
153 args = (void *)stack; in nvif_object_mthd()
163 if (args != (void *)stack) in nvif_object_mthd()
/linux-4.4.14/drivers/media/
Dmedia-entity.c111 graph->stack[graph->top].link = 0; in stack_push()
112 graph->stack[graph->top].entity = entity; in stack_push()
119 entity = graph->stack[graph->top].entity; in stack_pop()
125 #define link_top(en) ((en)->stack[(en)->top].link)
126 #define stack_top(en) ((en)->stack[(en)->top].entity)
142 graph->stack[graph->top].entity = NULL; in media_entity_graph_walk_start()
/linux-4.4.14/crypto/
Dalgapi.c90 struct list_head *stack, in crypto_more_spawns() argument
96 if (list_empty(stack)) in crypto_more_spawns()
99 spawn = list_first_entry(stack, struct crypto_spawn, list); in crypto_more_spawns()
102 if (spawn->alg && &n->list != stack && !n->alg) in crypto_more_spawns()
103 n->alg = (n->list.next == stack) ? alg : in crypto_more_spawns()
109 return &n->list == stack ? top : &n->inst->alg.cra_users; in crypto_more_spawns()
142 LIST_HEAD(stack); in crypto_remove_spawns()
164 list_move(&spawn->list, &stack); in crypto_remove_spawns()
172 } while ((spawns = crypto_more_spawns(alg, &stack, &top, in crypto_remove_spawns()
/linux-4.4.14/arch/m68k/math-emu/
Dfp_entry.S110 | directly, others are on the stack, as we read/write the stack
112 | instruction decoding, otherwise the stack pointer is incorrect
113 | and the stack gets corrupted.
/linux-4.4.14/arch/x86/crypto/
Dsalsa20-x86_64-asm_64.S19 # comment:fp stack unchanged by jump
22 # comment:fp stack unchanged by fallthrough
77 # comment:fp stack unchanged by jump
92 # comment:fp stack unchanged by fallthrough
597 # comment:fp stack unchanged by jump
748 # comment:fp stack unchanged by jump
751 # comment:fp stack unchanged by jump
762 # comment:fp stack unchanged by fallthrough
785 # comment:fp stack unchanged by fallthrough
801 # comment:fp stack unchanged by jump
[all …]
/linux-4.4.14/drivers/net/wireless/realtek/rtl8xxxu/
DKconfig9 parts written to utilize the Linux mac80211 stack.
17 from the in kernel mac80211 stack.
/linux-4.4.14/arch/tile/include/arch/
Dmpipe.h122 uint_reg_t stack : 5; member
142 uint_reg_t stack : 5;
/linux-4.4.14/arch/alpha/kernel/
Dprocess.c252 struct switch_stack *childstack, *stack; in copy_thread() local
282 stack = ((struct switch_stack *) regs) - 1; in copy_thread()
283 *childstack = *stack; in copy_thread()
/linux-4.4.14/arch/um/include/shared/skas/
Dmm_id.h14 unsigned long stack; member
Dskas.h13 extern int user_thread(unsigned long stack, int flags);
/linux-4.4.14/tools/perf/bench/
Dmem-memcpy-x86-64-asm.S10 .section .note.GNU-stack,"",@progbits
Dmem-memset-x86-64-asm.S11 .section .note.GNU-stack,"",@progbits
/linux-4.4.14/arch/arm/common/
DbL_switcher.c128 void *stack = current_thread_info() + 1; in bL_switchpoint() local
129 stack = PTR_ALIGN(stack, L1_CACHE_BYTES); in bL_switchpoint()
130 stack += clusterid * STACK_SIZE + STACK_SIZE; in bL_switchpoint()
131 call_with_stack(bL_do_switch, (void *)_arg, stack); in bL_switchpoint()
/linux-4.4.14/arch/x86/lguest/
DMakefile2 CFLAGS_boot.o := $(call cc-option, -fno-stack-protector)
/linux-4.4.14/arch/arm64/kernel/
Dtraps.c175 unsigned long stack; in dump_backtrace() local
182 stack = frame.sp; in dump_backtrace()
184 dump_mem("", "Exception stack", stack, in dump_backtrace()
185 stack + sizeof(struct pt_regs), false); in dump_backtrace()
/linux-4.4.14/net/wimax/
Ddebug-levels.h40 D_SUBMODULE_DECLARE(stack),
DMakefile10 stack.o
/linux-4.4.14/arch/x86/power/
DMakefile3 nostackp := $(call cc-option, -fno-stack-protector)
/linux-4.4.14/arch/frv/lib/
Dmemcpy.S20 # - NOTE: must not use any stack. exception detection performs function return
Dmemset.S20 # - NOTE: must not use any stack. exception detection performs function return
/linux-4.4.14/arch/sh/
DKconfig.debug23 bool "Check for stack overflows"
26 This option will cause messages to be printed if free stack space
36 kernel stack attached to each process/thread. This facilitates
/linux-4.4.14/arch/m32r/include/asm/
Dassembler.h201 ; switch to kernel stack (spi)
213 ;; called from kernel context: previous stack = spi
218 ;; called from user context: previous stack = spu
/linux-4.4.14/Documentation/trace/
Dkprobetrace.txt40 $stackN : Fetch Nth entry of stack (N >= 0)
41 $stack : Fetch stack address.
100 …echo 'p:myprobe do_sys_open dfd=%ax filename=%dx flags=%cx mode=+4($stack)' > /sys/kernel/debug/tr…
103 1st to 4th arguments as "myprobe" event. Note, which register/stack entry is
/linux-4.4.14/drivers/staging/rts5208/
DTODO4 - We will use the stack in drivers/mmc to implement
/linux-4.4.14/arch/xtensa/include/asm/
Dsmp.h18 unsigned long stack; member
/linux-4.4.14/arch/ia64/kernel/
Dinit_task.c35 unsigned long stack[KERNEL_STACK_SIZE/sizeof (unsigned long)]; member
Dprocess.c339 struct switch_stack *child_stack, *stack; in copy_thread() local
409 stack = ((struct switch_stack *) regs) - 1; in copy_thread()
411 memcpy(child_stack, stack, sizeof(*child_ptregs) + sizeof(*child_stack)); in copy_thread()
414 rbs_size = stack->ar_bspstore - rbs; in copy_thread()
/linux-4.4.14/drivers/net/wireless/mediatek/
DKconfig5 Those drivers make use of the Linux mac80211 stack.
/linux-4.4.14/arch/arm64/include/asm/
Dsmp.h59 void *stack; member
/linux-4.4.14/arch/sparc/kernel/
Detrap_32.S101 mov %t_kstack, %sp ! jump onto new stack
128 mov %t_kstack, %sp ! and onto new kernel stack
192 mov %t_kstack, %sp ! and onto kernel stack
/linux-4.4.14/security/keys/
Dkeyring.c619 } stack[KEYRING_SEARCH_MAX_DEPTH]; in search_nested_keyrings() local
749 stack[sp].keyring = keyring; in search_nested_keyrings()
750 stack[sp].node = node; in search_nested_keyrings()
751 stack[sp].slot = slot; in search_nested_keyrings()
798 keyring = stack[sp].keyring; in search_nested_keyrings()
799 node = stack[sp].node; in search_nested_keyrings()
800 slot = stack[sp].slot + 1; in search_nested_keyrings()
812 stack[--sp].keyring->last_used_at = ctx->now.tv_sec; in search_nested_keyrings()
/linux-4.4.14/arch/s390/
DMakefile64 ifeq ($(call cc-option-yn,-mpacked-stack),y)
65 cflags-$(CONFIG_PACK_STACK) += -mpacked-stack -D__PACK_STACK
/linux-4.4.14/arch/um/
DMakefile123 $(call cc-option, -fno-stack-protector,) \
124 $(call cc-option, -fno-stack-protector-all,)
/linux-4.4.14/Documentation/DocBook/
Ddebugobjects.xml.db2 API-debug-object-init-on-stack
/linux-4.4.14/arch/xtensa/kernel/
Dtraps.c480 unsigned long *stack; in show_stack() local
484 stack = sp; in show_stack()
496 show_trace(task, stack); in show_stack()
/linux-4.4.14/arch/cris/include/asm/
Dprocessor.h63 #define init_stack (init_thread_union.stack)
/linux-4.4.14/drivers/staging/wlan-ng/
DREADME4 - move to use the in-kernel wireless stack
/linux-4.4.14/arch/m68k/include/asm/
Dthread_info.h43 #define init_stack (init_thread_union.stack)
/linux-4.4.14/Documentation/usb/
DWUSB-Design-overview.txt27 This code implements a Ultra Wide Band stack for Linux, as well as
39 2. The UWB stack
85 *UWB*: the Ultra-Wide-Band stack -- manages the radio and
109 USB-based UWB Radio Controller to the UWB stack.
151 The UWB stack
153 The main mission of the UWB stack is to keep a tally of which devices
170 interface that the UWB stack provides through a struct uwb_rc_ops. The
197 Wire-Adaptor environment and then suck it into the UWB stack's vision of
202 [*] The stack should put a new RC to scan for devices
245 The UWB stack maintains a local copy of DRP availability through
[all …]
/linux-4.4.14/drivers/isdn/mISDN/
DMakefile11 mISDN_core-objs := core.o fsm.o socket.o clock.o hwchannel.o stack.o layer1.o layer2.o tei.o timerd…
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-tracefile.c192 unsigned long stack) in cfs_set_ptldebug_header() argument
206 header->ph_stack = stack; in cfs_set_ptldebug_header()
/linux-4.4.14/drivers/net/ethernet/wiznet/
DKconfig26 PHY and hardware TCP/IP stack, but this driver is limited to
39 PHY and hardware TCP/IP stack, but this driver is limited to
/linux-4.4.14/arch/score/include/asm/
Dthread_info.h61 #define init_stack (init_thread_union.stack)
/linux-4.4.14/arch/mips/sgi-ip32/
DPlatform6 # a multiple of the kernel stack size or the handling of the current variable
/linux-4.4.14/arch/frv/include/asm/
Dthread_info.h68 #define init_stack (init_thread_union.stack)
/linux-4.4.14/arch/sh/oprofile/
Dbacktrace.c41 .stack = backtrace_stack,
/linux-4.4.14/arch/c6x/include/asm/
Dthread_info.h64 #define init_stack (init_thread_union.stack)
/linux-4.4.14/arch/blackfin/include/asm/
Dthread_info.h60 #define init_stack (init_thread_union.stack)
/linux-4.4.14/net/sched/
Dematch.c504 int stack[CONFIG_NET_EMATCH_STACK]; in __tcf_em_tree_match() local
514 stack[stackp++] = match_idx; in __tcf_em_tree_match()
529 match_idx = stack[--stackp]; in __tcf_em_tree_match()
/linux-4.4.14/arch/nios2/include/asm/
Dthread_info.h67 #define init_stack (init_thread_union.stack)
/linux-4.4.14/arch/microblaze/kernel/
Dtraps.c41 (task->stack))->cpu_context.r1; in show_stack()
/linux-4.4.14/arch/arc/
DKconfig.debug9 kernel stack attached to each process/thread. The default is 8K.
/linux-4.4.14/drivers/md/persistent-data/
DKconfig11 bool "Keep stack trace of persistent data block lock holders"
/linux-4.4.14/arch/openrisc/include/asm/
Dprocessor.h101 #define init_stack (init_thread_union.stack)
/linux-4.4.14/arch/hexagon/include/asm/
Dthread_info.h88 #define init_stack (init_thread_union.stack)
/linux-4.4.14/Documentation/features/debug/stackprotector/
Darch-support.txt4 # description: arch supports compiler driven stack overflow protection
/linux-4.4.14/Documentation/features/perf/perf-stackdump/
Darch-support.txt4 # description: arch supports perf events stack dumps
/linux-4.4.14/Documentation/features/vm/ELF-ASLR/
Darch-support.txt4 # description: arch randomizes the stack, heap and binary images of ELF binaries
/linux-4.4.14/arch/cris/boot/compressed/
Dhead_v32.S42 ;; Setup the stack to a suitably high address.

1234