/linux/arch/um/os-Linux/skas/ |
A D | mem.c | 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() 119 stack += *stack / sizeof(long); in run_syscall_stub() 121 *stack++ = syscall; in run_syscall_stub() 122 *stack++ = args[0]; in run_syscall_stub() 123 *stack++ = args[1]; in run_syscall_stub() 129 *stack = 0; in run_syscall_stub() 133 *addr = stack; in run_syscall_stub() [all …]
|
/linux/drivers/misc/altera-stapl/ |
A D | altera.c | 213 long *stack = astate->stack; in altera_execute() local 528 stack[stack_ptr] = stack[stack_ptr - 1]; in altera_execute() 542 stack[stack_ptr - 1] += stack[stack_ptr]; in altera_execute() 548 stack[stack_ptr - 1] -= stack[stack_ptr]; in altera_execute() 554 stack[stack_ptr - 1] *= stack[stack_ptr]; in altera_execute() 560 stack[stack_ptr - 1] /= stack[stack_ptr]; in altera_execute() 566 stack[stack_ptr - 1] %= stack[stack_ptr]; in altera_execute() 572 stack[stack_ptr - 1] <<= stack[stack_ptr]; in altera_execute() 589 stack[stack_ptr - 1] &= stack[stack_ptr]; in altera_execute() 595 stack[stack_ptr - 1] |= stack[stack_ptr]; in altera_execute() [all …]
|
/linux/arch/x86/kernel/ |
A D | dumpstack_32.c | 47 if (stack < begin || stack > end) in in_hardirq_stack() 72 if (stack < begin || stack > end) in in_softirq_stack() 93 void *begin = ss->stack; in in_doublefault_stack() 94 void *end = begin + sizeof(ss->stack); in in_doublefault_stack() 96 if ((void *)stack < begin || (void *)stack >= end) in in_doublefault_stack() 111 if (!stack) in get_stack_info() 116 if (in_task_stack(stack, task, info)) in get_stack_info() 122 if (in_entry_stack(stack, info)) in get_stack_info() 125 if (in_hardirq_stack(stack, info)) in get_stack_info() 128 if (in_softirq_stack(stack, info)) in get_stack_info() [all …]
|
A D | dumpstack.c | 38 if (stack < begin || stack >= end) in in_task_stack() 57 if ((void *)stack < begin || (void *)stack >= end) in in_entry_stack() 187 unsigned long *stack, const char *log_lvl) in show_trace_log_lvl() argument 197 unwind_start(&state, task, regs, stack); in show_trace_log_lvl() 198 stack = stack ? : get_stack_pointer(task, regs); in show_trace_log_lvl() 217 for ( ; stack; stack = PTR_ALIGN(stack_info.next_sp, sizeof(long))) { in show_trace_log_lvl() 227 stack = (unsigned long *)PAGE_ALIGN((unsigned long)stack); in show_trace_log_lvl() 249 for (; stack < stack_info.end; stack++) { in show_trace_log_lvl() 263 if (regs && stack == ®s->ip) in show_trace_log_lvl() 266 if (stack == ret_addr_p) in show_trace_log_lvl() [all …]
|
A D | dumpstack_64.c | 96 unsigned long begin, end, stk = (unsigned long)stack; in in_exception_stack() 135 static __always_inline bool in_irq_stack(unsigned long *stack, struct stack_info *info) in in_irq_stack() argument 153 if (stack < begin || stack >= end) in in_irq_stack() 170 bool noinstr get_stack_info_noinstr(unsigned long *stack, struct task_struct *task, in get_stack_info_noinstr() argument 173 if (in_task_stack(stack, task, info)) in get_stack_info_noinstr() 179 if (in_exception_stack(stack, info)) in get_stack_info_noinstr() 182 if (in_irq_stack(stack, info)) in get_stack_info_noinstr() 185 if (in_entry_stack(stack, info)) in get_stack_info_noinstr() 191 int get_stack_info(unsigned long *stack, struct task_struct *task, in get_stack_info() argument 196 if (!stack) in get_stack_info() [all …]
|
/linux/tools/lib/traceevent/plugins/ |
A D | plugin_function.c | 15 char **stack; member 60 if (pos < stack->size) in add_child() 61 free(stack->stack[pos]); in add_child() 65 ptr = realloc(stack->stack, sizeof(char *) * in add_child() 72 stack->stack = ptr; in add_child() 74 for (i = stack->size; i < stack->size + STK_BLK; i++) in add_child() 75 stack->stack[i] = NULL; in add_child() 76 stack->size += STK_BLK; in add_child() 79 stack->stack[pos] = strdup(child); in add_child() 273 free(fstack[i].stack[x]); in TEP_PLUGIN_UNLOADER() [all …]
|
/linux/arch/um/kernel/skas/ |
A D | mmu.c | 21 unsigned long stack = 0; in init_new_context() local 24 stack = get_zeroed_page(GFP_KERNEL); in init_new_context() 25 if (stack == 0) in init_new_context() 28 to_mm->id.stack = stack; in init_new_context() 34 to_mm->id.u.pid = copy_context_skas0(stack, in init_new_context() 36 else to_mm->id.u.pid = start_userspace(stack); in init_new_context() 54 if (to_mm->id.stack != 0) in init_new_context() 55 free_page(to_mm->id.stack); in init_new_context() 77 free_page(mmu->id.stack); in destroy_context()
|
/linux/lib/ |
A D | stackdepot.c | 107 struct stack_record *stack; in depot_alloc_stack() local 133 stack->hash = hash; in depot_alloc_stack() 134 stack->size = size; in depot_alloc_stack() 135 stack->handle.slabindex = depot_index; in depot_alloc_stack() 137 stack->handle.valid = 1; in depot_alloc_stack() 138 memcpy(stack->entries, entries, flex_array_size(stack, entries, size)); in depot_alloc_stack() 141 return stack; in depot_alloc_stack() 274 struct stack_record *stack; in stack_depot_fetch() local 288 stack = slab + offset; in stack_depot_fetch() 290 *entries = stack->entries; in stack_depot_fetch() [all …]
|
/linux/arch/nios2/kernel/ |
A D | traps.c | 60 void show_stack(struct task_struct *task, unsigned long *stack, in show_stack() argument 66 if (!stack) { in show_stack() 68 stack = (unsigned long *)task->thread.ksp; in show_stack() 70 stack = (unsigned long *)&stack; in show_stack() 73 addr = (unsigned long) stack; in show_stack() 76 printk("%sStack from %08lx:", loglvl, (unsigned long)stack); in show_stack() 78 if (stack + 1 > endstack) in show_stack() 82 printk("%s %08lx", loglvl, *stack++); in show_stack() 87 while (stack + 1 <= endstack) { in show_stack() 88 addr = *stack++; in show_stack()
|
/linux/arch/um/os-Linux/ |
A D | helper.c | 45 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; 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; in run_helper_thread() 142 free_stack(stack, 0); in run_helper_thread() [all …]
|
/linux/Documentation/x86/ |
A D | kernel-stacks.rst | 14 Like all other architectures, x86_64 has a kernel stack for every 17 zombie. While the thread is in user space the kernel stack is empty 25 * Interrupt stack. IRQ_STACK_SIZE 32 of every per thread stack. 34 The interrupt stack is also used when processing a softirq. 46 point to dedicated stacks; each stack can be a different size. 60 NMI. arch/x86_64/kernel/entry.S::paranoidentry adjusts the stack 83 assumptions about the previous state of the kernel stack. 93 stack. 106 assumptions about the previous state of the kernel stack. [all …]
|
/linux/drivers/gpu/drm/i915/ |
A D | intel_runtime_pm.c | 76 depot_stack_handle_t stack, *stacks; in track_intel_runtime_pm_wakeref() local 82 stack = __save_depot_stack(); in track_intel_runtime_pm_wakeref() 83 if (!stack) in track_intel_runtime_pm_wakeref() 89 rpm->debug.last_acquire = stack; in track_intel_runtime_pm_wakeref() 95 stacks[rpm->debug.count++] = stack; in track_intel_runtime_pm_wakeref() 98 stack = -1; in track_intel_runtime_pm_wakeref() 103 return stack; in track_intel_runtime_pm_wakeref() 107 depot_stack_handle_t stack) in untrack_intel_runtime_pm_wakeref() argument 115 if (unlikely(stack == -1)) in untrack_intel_runtime_pm_wakeref() 120 if (rpm->debug.owners[n] == stack) { in untrack_intel_runtime_pm_wakeref() [all …]
|
/linux/security/ |
A D | Kconfig.hardening | 8 stack variable initializations, this warning is silenced for 32 prompt "Initialize kernel stack variables at function entry" 38 This option enables initialization of stack variables at 52 Disable automatic stack variable initialization. 54 classes of uninitialized stack variable exploits 63 Zero-initialize any structures on the stack containing 65 uninitialized stack variable exploits and information 76 Zero-initialize any structures on the stack that may 95 Zero-initialize any stack variables that may be passed 130 classes of uninitialized stack variable exploits and [all …]
|
/linux/arch/openrisc/kernel/ |
A D | unwinder.c | 60 void unwind_stack(void *data, unsigned long *stack, in unwind_stack() argument 67 while (!kstack_end(stack)) { in unwind_stack() 68 frameinfo = container_of(stack, in unwind_stack() 83 stack++; in unwind_stack() 93 void unwind_stack(void *data, unsigned long *stack, in unwind_stack() argument 98 while (!kstack_end(stack)) { in unwind_stack() 99 addr = *stack++; in unwind_stack()
|
/linux/tools/testing/selftests/vDSO/ |
A D | vdso_standalone_test_x86.c | 73 __attribute__((externally_visible)) void c_main(void **stack) in c_main() argument 76 long argc = (long)*stack; in c_main() 77 stack += argc + 2; in c_main() 80 while(*stack) in c_main() 81 stack++; in c_main() 82 stack++; in c_main() 85 vdso_init_from_auxv((void *)stack); in c_main()
|
/linux/arch/h8300/kernel/ |
A D | traps.c | 116 unsigned long *stack, addr; in show_stack() local 122 stack = esp; in show_stack() 124 printk("%sStack from %08lx:", loglvl, (unsigned long)stack); in show_stack() 126 if (((unsigned long)stack & (THREAD_SIZE - 1)) >= in show_stack() 131 pr_cont(" %08lx", *stack++); in show_stack() 136 stack = esp; in show_stack() 137 while (((unsigned long)stack & (THREAD_SIZE - 1)) < THREAD_SIZE-4) { in show_stack() 138 addr = *stack++; in show_stack()
|
/linux/include/linux/sched/ |
A D | task_stack.h | 21 return task->stack; in task_stack_page() 29 return (unsigned long *)((unsigned long)task->stack + THREAD_SIZE) - 1; in end_of_stack() 31 return task->stack; in end_of_stack() 37 #define task_stack_page(task) ((void *)(task)->stack) 87 void *stack = task_stack_page(current); in object_is_on_stack() local 89 return (obj >= stack) && (obj < (stack + THREAD_SIZE)); in object_is_on_stack()
|
/linux/tools/perf/scripts/python/ |
A D | stackcollapse.py | 97 stack = list() 103 stack.append(tidy_function_name(entry['sym']['name'], 108 stack.append(tidy_function_name(param_dict['symbol'], 119 stack.append(comm) 121 stack_string = ';'.join(reversed(stack)) 126 for stack in list: 127 print("%s %d" % (stack, lines[stack]))
|
/linux/scripts/kconfig/ |
A D | symbol.c | 977 memset(stack, 0, sizeof(*stack)); in dep_stack_insert() 981 stack->sym = sym; in dep_stack_insert() 982 check_top = stack; in dep_stack_insert() 1010 for (stack = check_top; stack != NULL; stack = stack->prev) in sym_check_print_recursive() 1013 if (!stack) { in sym_check_print_recursive() 1018 for (; stack; stack = stack->next) { in sym_check_print_recursive() 1019 sym = stack->sym; in sym_check_print_recursive() 1020 next_sym = stack->next ? stack->next->sym : last_sym; in sym_check_print_recursive() 1144 stack.expr = NULL; in sym_check_sym_deps() 1150 stack.prop = prop; in sym_check_sym_deps() [all …]
|
/linux/arch/x86/include/asm/ |
A D | stacktrace.h | 31 bool in_task_stack(unsigned long *stack, struct task_struct *task, 34 bool in_entry_stack(unsigned long *stack, struct stack_info *info); 36 int get_stack_info(unsigned long *stack, struct task_struct *task, 38 bool get_stack_info_noinstr(unsigned long *stack, struct task_struct *task, 42 bool get_stack_guard_info(unsigned long *stack, struct stack_info *info) in get_stack_guard_info() argument 45 if (get_stack_info_noinstr(stack, current, info)) in get_stack_guard_info() 48 return get_stack_info_noinstr((void *)stack + PAGE_SIZE, current, info); in get_stack_guard_info()
|
/linux/security/apparmor/ |
A D | domain.c | 105 if (stack) in match_component() 566 const char *stack = NULL; in x_to_label() local 576 if (*stack != '&') { in x_to_label() 579 stack = NULL; in x_to_label() 610 if (new && stack) { in x_to_label() 809 if (!stack) { in handle_onexec() 1327 if (stack) in aa_change_profile() 1333 if (stack) in aa_change_profile() 1340 stack = true; in aa_change_profile() 1406 if (!stack) { in aa_change_profile() [all …]
|
/linux/arch/powerpc/kernel/ |
A D | stacktrace.c | 43 unsigned long *stack = (unsigned long *) sp; in arch_stack_walk() local 49 newsp = stack[0]; in arch_stack_walk() 50 ip = stack[STACK_FRAME_LR_SAVE]; in arch_stack_walk() 112 unsigned long *stack = (unsigned long *) sp; in arch_stack_walk_reliable() local 119 newsp = stack[0]; in arch_stack_walk_reliable() 139 stack[STACK_FRAME_MARKER] == STACK_FRAME_REGS_MARKER) { in arch_stack_walk_reliable() 144 ip = stack[STACK_FRAME_LR_SAVE]; in arch_stack_walk_reliable() 152 ip = ftrace_graph_ret_addr(task, &graph_idx, ip, stack); in arch_stack_walk_reliable()
|
/linux/Documentation/ABI/testing/ |
A D | sysfs-ocfs2 | 38 * '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/arch/um/kernel/ |
A D | sysrq.c | 30 void show_stack(struct task_struct *task, unsigned long *stack, in show_stack() argument 42 if (!stack) in show_stack() 43 stack = get_stack_pointer(task, segv_regs); in show_stack() 47 if (kstack_end(stack)) in show_stack() 51 pr_cont(" %08lx", *stack++); in show_stack()
|
/linux/tools/perf/util/ |
A D | thread-stack.c | 89 struct thread_stack_entry *stack; member 130 ts->stack = new_stack; in thread_stack__grow() 201 if (!ts->stack && in thread_stack__new() 220 if (!ts->stack) in thread__cpu_stack() 283 if (ts->stack[--i].trace_end) in thread_stack__pop_trace_end() 311 tse = &ts->stack[idx]; in thread_stack__call_return() 490 zfree(&ts->stack); in __thread_stack__free() 797 tse = &ts->stack[ts->cnt++]; in thread_stack__push_cp() 839 ts->stack[i].non_call) in thread_stack__pop_cp() 1007 tse = &ts->stack[ts->cnt - 1]; in thread_stack__trace_begin() [all …]
|