Home
last modified time | relevance | path

Searched refs:stack_size (Results 1 – 25 of 86) sorted by relevance

1234

/openbmc/linux/tools/testing/selftests/powerpc/include/
H A Dfpu_asm.h10 #define PUSH_FPU(stack_size) \ argument
11 stfd f31,(stack_size + STACK_FRAME_MIN_SIZE)(%r1); \
12 stfd f30,(stack_size + STACK_FRAME_MIN_SIZE - 8)(%r1); \
13 stfd f29,(stack_size + STACK_FRAME_MIN_SIZE - 16)(%r1); \
14 stfd f28,(stack_size + STACK_FRAME_MIN_SIZE - 24)(%r1); \
15 stfd f27,(stack_size + STACK_FRAME_MIN_SIZE - 32)(%r1); \
16 stfd f26,(stack_size + STACK_FRAME_MIN_SIZE - 40)(%r1); \
17 stfd f25,(stack_size + STACK_FRAME_MIN_SIZE - 48)(%r1); \
18 stfd f24,(stack_size + STACK_FRAME_MIN_SIZE - 56)(%r1); \
30 #define POP_FPU(stack_size) \ argument
[all …]
H A Dgpr_asm.h51 #define PUSH_NVREGS(stack_size) \ argument
52 __PUSH_NVREGS(stack_size + STACK_FRAME_MIN_SIZE)
55 #define PUSH_NVREGS_BELOW_FPU(stack_size) \ argument
56 __PUSH_NVREGS(stack_size + STACK_FRAME_MIN_SIZE - (18 * 8))
58 #define POP_NVREGS(stack_size) \ argument
59 __POP_NVREGS(stack_size + STACK_FRAME_MIN_SIZE)
62 #define POP_NVREGS_BELOW_FPU(stack_size) \ argument
63 __POP_NVREGS(stack_size + STACK_FRAME_MIN_SIZE - (18 * 8))
/openbmc/linux/tools/perf/arch/x86/tests/
H A Ddwarf-unwind.c19 u64 stack_size, *buf; in sample_ustack() local
36 stack_size = map__end(map) - sp; in sample_ustack()
37 stack_size = stack_size > STACK_SIZE ? STACK_SIZE : stack_size; in sample_ustack()
39 memcpy(buf, (void *) sp, stack_size); in sample_ustack()
45 __msan_unpoison(buf, stack_size); in sample_ustack()
48 stack->size = stack_size; in sample_ustack()
/openbmc/linux/tools/testing/selftests/powerpc/mm/
H A Dstack_expansion_signal.c32 static int consume_stack(unsigned int stack_size, union pipe write_pipe) in consume_stack() argument
36 if ((stack_base_ptr - &stack_cur) < stack_size) in consume_stack()
37 return consume_stack(stack_size, write_pipe); in consume_stack()
50 static int child(unsigned int stack_size, union pipe write_pipe) in child() argument
63 FAIL_IF(consume_stack(stack_size, write_pipe)); in child()
66 stack_size, stack_base_ptr, stack_top_ptr, in child()
72 static int test_one_size(unsigned int stack_size) in test_one_size() argument
84 exit(child(stack_size, read_pipe)); in test_one_size()
/openbmc/linux/tools/perf/arch/arm/tests/
H A Ddwarf-unwind.c19 u64 stack_size, *buf; in sample_ustack() local
36 stack_size = map__end(map) - sp; in sample_ustack()
37 stack_size = stack_size > STACK_SIZE ? STACK_SIZE : stack_size; in sample_ustack()
39 memcpy(buf, (void *) sp, stack_size); in sample_ustack()
41 stack->size = stack_size; in sample_ustack()
/openbmc/linux/tools/perf/arch/powerpc/tests/
H A Ddwarf-unwind.c19 u64 stack_size, *buf; in sample_ustack() local
36 stack_size = map__end(map) - sp; in sample_ustack()
37 stack_size = stack_size > STACK_SIZE ? STACK_SIZE : stack_size; in sample_ustack()
39 memcpy(buf, (void *) sp, stack_size); in sample_ustack()
41 stack->size = stack_size; in sample_ustack()
/openbmc/linux/tools/perf/arch/arm64/tests/
H A Ddwarf-unwind.c19 u64 stack_size, *buf; in sample_ustack() local
36 stack_size = map__end(map) - sp; in sample_ustack()
37 stack_size = stack_size > STACK_SIZE ? STACK_SIZE : stack_size; in sample_ustack()
39 memcpy(buf, (void *) sp, stack_size); in sample_ustack()
41 stack->size = stack_size; in sample_ustack()
/openbmc/qemu/util/
H A Dcoroutine-ucontext.c48 size_t stack_size; member
109 leaderp->stack_size = size_old; in finish_switch_fiber()
167 leaderp->stack, leaderp->stack_size); in coroutine_trampoline()
201 co->stack_size = COROUTINE_STACK_SIZE; in qemu_coroutine_new()
202 co->stack = qemu_alloc_stack(&co->stack_size); in qemu_coroutine_new()
211 uc.uc_stack.ss_size = co->stack_size; in qemu_coroutine_new()
216 VALGRIND_STACK_REGISTER(co->stack, co->stack + co->stack_size); in qemu_coroutine_new()
227 start_switch_fiber_asan(&fake_stack_save, co->stack, co->stack_size); in qemu_coroutine_new()
275 start_switch_fiber_asan(NULL, to->stack, to->stack_size); in terminate_asan()
295 qemu_free_stack(co->stack, co->stack_size); in qemu_coroutine_delete()
[all …]
H A Dcoroutine-sigaltstack.c39 size_t stack_size; member
171 co->stack_size = COROUTINE_STACK_SIZE; in qemu_coroutine_new()
172 co->stack = qemu_alloc_stack(&co->stack_size); in qemu_coroutine_new()
203 ss.ss_size = co->stack_size; in qemu_coroutine_new()
269 qemu_free_stack(co->stack, co->stack_size); in qemu_coroutine_delete()
H A Dcoroutine-windows.c74 const size_t stack_size = COROUTINE_STACK_SIZE; in qemu_coroutine_new() local
78 co->fiber = CreateFiber(stack_size, coroutine_trampoline, &co->base); in qemu_coroutine_new()
/openbmc/linux/tools/testing/selftests/sigaltstack/
H A Dsas.c33 static unsigned int stack_size; variable
51 sp >= (unsigned long)sstack + stack_size) { in my_usr1()
113 stack_size = getauxval(AT_MINSIGSTKSZ) + SIGSTKSZ; in main()
114 ksft_print_msg("[NOTE]\tthe stack size is %lu\n", stack_size); in main()
125 sstack = mmap(NULL, stack_size, PROT_READ | PROT_WRITE, in main()
147 stk.ss_size = stack_size; in main()
169 ustack = mmap(NULL, stack_size, PROT_READ | PROT_WRITE, in main()
178 uc.uc_stack.ss_size = stack_size; in main()
/openbmc/qemu/system/
H A Dasync-teardown.c119 size_t stack_size = CLONE_STACK_SIZE; in new_stack_for_clone() local
123 stack_ptr = qemu_alloc_stack(&stack_size); in new_stack_for_clone()
124 stack_ptr += stack_size; in new_stack_for_clone()
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp.c1957 int stack_size) in clean_stack_garbage() argument
2066 -stack_size); in save_args()
2070 stack_size -= 8; in save_args()
2087 -stack_size); in save_args()
2088 stack_size -= 8; in save_args()
2098 int stack_size) in restore_regs() argument
2116 -stack_size); in restore_regs()
2411 stack_size += 8; in arch_prepare_bpf_trampoline()
2417 stack_size += 8; in arch_prepare_bpf_trampoline()
2425 stack_size += 8; in arch_prepare_bpf_trampoline()
[all …]
/openbmc/linux/arch/arm64/include/asm/
H A Dvmap_stack.h18 static inline unsigned long *arch_alloc_vmap_stack(size_t stack_size, int node) in arch_alloc_vmap_stack() argument
24 p = __vmalloc_node(stack_size, THREAD_ALIGN, THREADINFO_GFP, node, in arch_alloc_vmap_stack()
/openbmc/linux/arch/riscv/include/asm/
H A Dirq_stack.h20 static inline unsigned long *arch_alloc_vmap_stack(size_t stack_size, int node) in arch_alloc_vmap_stack() argument
24 p = __vmalloc_node(stack_size, THREAD_ALIGN, THREADINFO_GFP, node, in arch_alloc_vmap_stack()
/openbmc/linux/samples/pidfd/
H A Dpidfd-metadata.c36 size_t stack_size = 1024; in pidfd_clone() local
40 return __clone2(do_child, stack, stack_size, flags | SIGCHLD, NULL, pidfd); in pidfd_clone()
42 return clone(do_child, stack + stack_size, flags | SIGCHLD, NULL, pidfd); in pidfd_clone()
/openbmc/linux/arch/riscv/net/
H A Dbpf_jit_comp64.c854 stack_size += 16; in __arch_prepare_bpf_trampoline()
859 retval_off = stack_size; in __arch_prepare_bpf_trampoline()
862 stack_size += nregs * 8; in __arch_prepare_bpf_trampoline()
863 args_off = stack_size; in __arch_prepare_bpf_trampoline()
865 stack_size += 8; in __arch_prepare_bpf_trampoline()
866 nregs_off = stack_size; in __arch_prepare_bpf_trampoline()
869 stack_size += 8; in __arch_prepare_bpf_trampoline()
870 ip_off = stack_size; in __arch_prepare_bpf_trampoline()
876 stack_size += 8; in __arch_prepare_bpf_trampoline()
877 sreg_off = stack_size; in __arch_prepare_bpf_trampoline()
[all …]
/openbmc/linux/arch/x86/include/asm/
H A Dshstk.h20 unsigned long stack_size);
30 unsigned long stack_size) { return 0; } in shstk_alloc_thread_stack() argument
/openbmc/linux/tools/testing/selftests/user_events/
H A Dabi_test.c213 int i, stack_size = 4096; in TEST_F() local
214 void *stack = mmap(NULL, stack_size, PROT_READ | PROT_WRITE, in TEST_F()
223 ASSERT_NE(-1, clone(&clone_check, stack + stack_size, in TEST_F()
229 munmap(stack, stack_size); in TEST_F()
/openbmc/qemu/bsd-user/arm/
H A Dtarget_arch_thread.h25 abi_ulong arg, abi_ulong stack_base, abi_ulong stack_size) in target_thread_set_upcall() argument
33 sp = (u_int)(stack_base + stack_size) & ~0x7; in target_thread_set_upcall()
/openbmc/openbmc-test-automation/lib/
H A Dcall_stack.tcl128 set stack_size [info level]
130 set stack_bottom_ix [expr 1 - $stack_size]
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c79 u32 stack_size; member
1835 int stack_size; in prepare_trampoline() local
1874 stack_size = 0; in prepare_trampoline()
1879 ip_off = stack_size; in prepare_trampoline()
1882 stack_size += 8; in prepare_trampoline()
1886 stack_size += 8; in prepare_trampoline()
1888 args_off = stack_size; in prepare_trampoline()
1896 stack_size += 8; in prepare_trampoline()
1899 regs_off = stack_size; in prepare_trampoline()
1900 stack_size += 16; in prepare_trampoline()
[all …]
/openbmc/linux/fs/
H A Dbinfmt_elf_fdpic.c171 params->stack_size = phdr->p_memsz; in elf_fdpic_fetch_phdrs()
187 unsigned long stack_size, entryaddr; in load_elf_fdpic_binary() local
315 stack_size = exec_params.stack_size; in load_elf_fdpic_binary()
323 if (stack_size == 0) { in load_elf_fdpic_binary()
324 stack_size = interp_params.stack_size; in load_elf_fdpic_binary()
334 if (stack_size == 0) in load_elf_fdpic_binary()
335 stack_size = 131072UL; /* same as exec.c's default commit */ in load_elf_fdpic_binary()
411 stack_size = (stack_size + PAGE_SIZE - 1) & PAGE_MASK; in load_elf_fdpic_binary()
412 if (stack_size < PAGE_SIZE * 2) in load_elf_fdpic_binary()
413 stack_size = PAGE_SIZE * 2; in load_elf_fdpic_binary()
[all …]
/openbmc/linux/arch/ia64/mm/
H A Dinit.c96 unsigned long stack_size = rlimit_max(RLIMIT_STACK) & -16; in ia64_set_rbs_bot() local
98 if (stack_size > MAX_USER_STACK_SIZE) in ia64_set_rbs_bot()
99 stack_size = MAX_USER_STACK_SIZE; in ia64_set_rbs_bot()
100 current->thread.rbs_bot = PAGE_ALIGN(current->mm->start_stack - stack_size); in ia64_set_rbs_bot()
/openbmc/u-boot/arch/x86/cpu/
H A Dsipi_vector.S111 movl stack_size, %eax
203 stack_size: label

1234