Home
last modified time | relevance | path

Searched refs:stack (Results 1 – 25 of 707) sorted by relevance

12345678910>>...29

/Linux-v5.4/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 …]
/Linux-v5.4/drivers/misc/altera-stapl/
Daltera.c213 long *stack = astate->stack; in altera_execute() local
528 stack[stack_ptr] = stack[stack_ptr - 1]; in altera_execute()
534 long_tmp = stack[stack_ptr - 2]; in altera_execute()
535 stack[stack_ptr - 2] = stack[stack_ptr - 1]; in altera_execute()
536 stack[stack_ptr - 1] = long_tmp; 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()
[all …]
/Linux-v5.4/tools/lib/traceevent/plugins/
Dplugin_function.c30 char **stack; member
60 static void add_child(struct func_stack *stack, const char *child, int pos) in add_child() argument
67 if (pos < stack->size) in add_child()
68 free(stack->stack[pos]); in add_child()
72 ptr = realloc(stack->stack, sizeof(char *) * in add_child()
73 (stack->size + STK_BLK)); in add_child()
79 stack->stack = ptr; in add_child()
81 for (i = stack->size; i < stack->size + STK_BLK; i++) in add_child()
82 stack->stack[i] = NULL; in add_child()
83 stack->size += STK_BLK; in add_child()
[all …]
/Linux-v5.4/lib/zstd/
Dzstd_common.c28 #define stack_push(stack, size) \ argument
30 void *const ptr = ZSTD_PTR_ALIGN((stack)->ptr); \
31 (stack)->ptr = (char *)ptr + (size); \
32 (stack)->ptr <= (stack)->end ? ptr : NULL; \
38 ZSTD_stack *stack = (ZSTD_stack *)workspace; in ZSTD_initStack() local
45 stack->ptr = workspace; in ZSTD_initStack()
46 stack->end = (char *)workspace + workspaceSize; in ZSTD_initStack()
47 stack_push(stack, sizeof(ZSTD_stack)); in ZSTD_initStack()
53 ZSTD_stack *stack = (ZSTD_stack *)opaque; in ZSTD_stackAllocAll() local
54 *size = (BYTE const *)stack->end - (BYTE *)ZSTD_PTR_ALIGN(stack->ptr); in ZSTD_stackAllocAll()
[all …]
/Linux-v5.4/arch/csky/kernel/
Ddumpstack.c8 void show_trace(unsigned long *stack) in show_trace() argument
15 addr = (unsigned long) stack & THREAD_MASK; in show_trace()
19 fp = stack; in show_trace()
35 void show_stack(struct task_struct *task, unsigned long *stack) in show_stack() argument
37 if (!stack) { in show_stack()
39 stack = (unsigned long *)thread_saved_fp(task); in show_stack()
42 asm volatile("mov %0, r8\n":"=r"(stack)::"memory"); in show_stack()
44 stack = (unsigned long *)&stack; in show_stack()
48 show_trace(stack); in show_stack()
/Linux-v5.4/arch/x86/kernel/
Ddumpstack_32.c35 static bool in_hardirq_stack(unsigned long *stack, struct stack_info *info) in in_hardirq_stack() argument
44 if (stack < begin || stack > end) in in_hardirq_stack()
60 static bool in_softirq_stack(unsigned long *stack, struct stack_info *info) in in_softirq_stack() argument
69 if (stack < begin || stack > end) in in_softirq_stack()
85 int get_stack_info(unsigned long *stack, struct task_struct *task, in get_stack_info() argument
88 if (!stack) in get_stack_info()
93 if (in_task_stack(stack, task, info)) in get_stack_info()
99 if (in_entry_stack(stack, info)) in get_stack_info()
102 if (in_hardirq_stack(stack, info)) in get_stack_info()
105 if (in_softirq_stack(stack, info)) in get_stack_info()
Ddumpstack.c32 bool in_task_stack(unsigned long *stack, struct task_struct *task, in in_task_stack() argument
38 if (stack < begin || stack >= end) in in_task_stack()
49 bool in_entry_stack(unsigned long *stack, struct stack_info *info) in in_entry_stack() argument
56 if ((void *)stack < begin || (void *)stack >= end) in in_entry_stack()
163 unsigned long *stack, char *log_lvl) in show_trace_log_lvl() argument
173 unwind_start(&state, task, regs, stack); in show_trace_log_lvl()
174 stack = stack ? : get_stack_pointer(task, regs); in show_trace_log_lvl()
193 for ( ; stack; stack = PTR_ALIGN(stack_info.next_sp, sizeof(long))) { in show_trace_log_lvl()
196 if (get_stack_info(stack, task, &stack_info, &visit_mask)) { in show_trace_log_lvl()
203 stack = (unsigned long *)PAGE_ALIGN((unsigned long)stack); in show_trace_log_lvl()
[all …]
Ddumpstack_64.c87 static bool in_exception_stack(unsigned long *stack, struct stack_info *info) in in_exception_stack() argument
89 unsigned long begin, end, stk = (unsigned long)stack; in in_exception_stack()
128 static bool in_irq_stack(unsigned long *stack, struct stack_info *info) in in_irq_stack() argument
137 if (stack < begin || stack >= end) in in_irq_stack()
153 int get_stack_info(unsigned long *stack, struct task_struct *task, in get_stack_info() argument
156 if (!stack) in get_stack_info()
161 if (in_task_stack(stack, task, info)) in get_stack_info()
167 if (in_exception_stack(stack, info)) in get_stack_info()
170 if (in_irq_stack(stack, info)) in get_stack_info()
173 if (in_entry_stack(stack, info)) in get_stack_info()
/Linux-v5.4/mm/kasan/
DMakefile17 CFLAGS_common.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
18 CFLAGS_generic.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
19 CFLAGS_generic_report.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
20 CFLAGS_tags.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
/Linux-v5.4/arch/um/kernel/skas/
Dmmu.c55 unsigned long stack = 0; in init_new_context() local
58 stack = get_zeroed_page(GFP_KERNEL); in init_new_context()
59 if (stack == 0) in init_new_context()
62 to_mm->id.stack = stack; in init_new_context()
68 to_mm->id.u.pid = copy_context_skas0(stack, in init_new_context()
70 else to_mm->id.u.pid = start_userspace(stack); in init_new_context()
88 if (to_mm->id.stack != 0) in init_new_context()
89 free_page(to_mm->id.stack); in init_new_context()
103 ret = init_stub_pte(mm, STUB_DATA, mm->context.id.stack); in uml_setup_stubs()
108 mm->context.stub_pages[1] = virt_to_page(mm->context.id.stack); in uml_setup_stubs()
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/
Dintel_runtime_pm.c69 static void __print_depot_stack(depot_stack_handle_t stack, in __print_depot_stack() argument
75 nr_entries = stack_depot_fetch(stack, &entries); in __print_depot_stack()
87 depot_stack_handle_t stack, *stacks; in track_intel_runtime_pm_wakeref() local
93 stack = __save_depot_stack(); in track_intel_runtime_pm_wakeref()
94 if (!stack) in track_intel_runtime_pm_wakeref()
100 rpm->debug.last_acquire = stack; in track_intel_runtime_pm_wakeref()
106 stacks[rpm->debug.count++] = stack; in track_intel_runtime_pm_wakeref()
109 stack = -1; in track_intel_runtime_pm_wakeref()
114 return stack; in track_intel_runtime_pm_wakeref()
118 depot_stack_handle_t stack) in untrack_intel_runtime_pm_wakeref() argument
[all …]
/Linux-v5.4/arch/nios2/kernel/
Dtraps.c60 void show_stack(struct task_struct *task, unsigned long *stack) in show_stack() argument
65 if (!stack) { in show_stack()
67 stack = (unsigned long *)task->thread.ksp; in show_stack()
69 stack = (unsigned long *)&stack; in show_stack()
72 addr = (unsigned long) stack; in show_stack()
75 pr_emerg("Stack from %08lx:", (unsigned long)stack); in show_stack()
77 if (stack + 1 > endstack) in show_stack()
81 pr_emerg(" %08lx", *stack++); in show_stack()
86 while (stack + 1 <= endstack) { in show_stack()
87 addr = *stack++; in show_stack()
/Linux-v5.4/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 …]
/Linux-v5.4/arch/openrisc/kernel/
Dunwinder.c60 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-v5.4/security/
DKconfig.hardening8 stack variable initializations, this warning is silenced for
26 prompt "Initialize kernel stack variables at function entry"
31 This option enables initialization of stack variables at
45 Disable automatic stack variable initialization.
47 classes of uninitialized stack variable exploits
55 Zero-initialize any structures on the stack containing
57 uninitialized stack variable exploits and information
67 Zero-initialize any structures on the stack that may
70 of uninitialized stack variable exploits and information
75 stack that can otherwise be optimized out, so combining
[all …]
/Linux-v5.4/lib/
Dstackdepot.c104 struct stack_record *stack; in depot_alloc_stack() local
127 stack = stack_slabs[depot_index] + depot_offset; in depot_alloc_stack()
129 stack->hash = hash; in depot_alloc_stack()
130 stack->size = size; in depot_alloc_stack()
131 stack->handle.slabindex = depot_index; in depot_alloc_stack()
132 stack->handle.offset = depot_offset >> STACK_ALLOC_ALIGN; in depot_alloc_stack()
133 stack->handle.valid = 1; in depot_alloc_stack()
134 memcpy(stack->entries, entries, size * sizeof(unsigned long)); in depot_alloc_stack()
137 return stack; in depot_alloc_stack()
203 struct stack_record *stack = slab + offset; in stack_depot_fetch() local
[all …]
/Linux-v5.4/arch/um/kernel/
Dsysrq.c28 void show_stack(struct task_struct *task, unsigned long *stack) in show_stack() argument
30 unsigned long *sp = stack; in show_stack()
40 if (!stack) in show_stack()
44 stack = sp; in show_stack()
46 if (kstack_end(stack)) in show_stack()
50 pr_cont(" %08lx", *stack++); in show_stack()
/Linux-v5.4/tools/testing/selftests/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()
/Linux-v5.4/arch/h8300/kernel/
Dtraps.c120 unsigned long *stack, addr; in show_stack() local
126 stack = esp; in show_stack()
128 pr_info("Stack from %08lx:", (unsigned long)stack); in show_stack()
130 if (((unsigned long)stack & (THREAD_SIZE - 1)) >= in show_stack()
135 pr_cont(" %08lx", *stack++); in show_stack()
140 stack = esp; in show_stack()
141 while (((unsigned long)stack & (THREAD_SIZE - 1)) < THREAD_SIZE-4) { in show_stack()
142 addr = *stack++; in show_stack()
/Linux-v5.4/Documentation/x86/
Dkernel-stacks.rst14 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
29 kernel switches from the current task to the interrupt stack. Like
32 of every per thread stack.
34 The interrupt stack is also used when processing a softirq.
36 Switching to the kernel interrupt stack is done by software based on a
41 to automatically switch to a new stack for designated events such as
46 point to dedicated stacks; each stack can be a different size.
50 loads such a descriptor, the hardware automatically sets the new stack
[all …]
/Linux-v5.4/tools/perf/scripts/python/
Dstackcollapse.py97 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-v5.4/include/linux/sched/
Dtask_stack.h21 return task->stack; in task_stack_page()
28 return task->stack; in end_of_stack()
33 #define task_stack_page(task) ((void *)(task)->stack)
83 void *stack = task_stack_page(current); in object_is_on_stack() local
85 return (obj >= stack) && (obj < (stack + THREAD_SIZE)); in object_is_on_stack()
/Linux-v5.4/tools/perf/util/
Dthread-stack.c85 struct thread_stack_entry *stack; member
118 new_stack = realloc(ts->stack, sz); in thread_stack__grow()
122 ts->stack = new_stack; in thread_stack__grow()
178 if (!ts->stack && in thread_stack__new()
197 if (!ts->stack) in thread__cpu_stack()
228 ts->stack[ts->cnt].trace_end = trace_end; in thread_stack__push()
229 ts->stack[ts->cnt++].ret_addr = ret_addr; in thread_stack__push()
248 if (ts->stack[--i].ret_addr == ret_addr) { in thread_stack__pop()
260 if (ts->stack[--i].trace_end) in thread_stack__pop_trace_end()
272 return ts->stack[ts->cnt - 1].cp->in_kernel; in thread_stack__in_kernel()
[all …]
/Linux-v5.4/Documentation/admin-guide/wimax/
Dwimax.rst4 Linux kernel WiMAX stack
9 This provides a basic Linux kernel WiMAX stack to provide a common
15 The WiMAX stack is designed to provide for common WiMAX control
23 The stack works by embedding a struct wimax_dev in your device's
25 stack will call in order to implement control operations requested by
26 the user. As well, the stack provides API functions that the driver
29 The stack exports the API calls needed to control the device to user
34 For detailed information on the stack, please see
43 When a device is registered with the WiMAX stack, a set of debugfs
50 The WiMAX stack is compiled, by default, with debug messages that can
[all …]
/Linux-v5.4/scripts/kconfig/
Dsymbol.c1014 static void dep_stack_insert(struct dep_stack *stack, struct symbol *sym) in dep_stack_insert() argument
1016 memset(stack, 0, sizeof(*stack)); in dep_stack_insert()
1018 check_top->next = stack; in dep_stack_insert()
1019 stack->prev = check_top; in dep_stack_insert()
1020 stack->sym = sym; in dep_stack_insert()
1021 check_top = stack; in dep_stack_insert()
1038 struct dep_stack *stack; in sym_check_print_recursive() local
1049 for (stack = check_top; stack != NULL; stack = stack->prev) in sym_check_print_recursive()
1050 if (stack->sym == last_sym) in sym_check_print_recursive()
1052 if (!stack) { in sym_check_print_recursive()
[all …]

12345678910>>...29