/openbmc/linux/tools/testing/selftests/powerpc/include/ |
H A D | fpu_asm.h | 10 #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); \ 19 stfd f23,(stack_size + STACK_FRAME_MIN_SIZE - 64)(%r1); \ [all …]
|
H A D | gpr_asm.h | 51 #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 D | dwarf-unwind.c | 19 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 D | stack_expansion_signal.c | 32 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/powerpc/tests/ |
H A D | dwarf-unwind.c | 19 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 D | dwarf-unwind.c | 19 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/arm/tests/ |
H A D | dwarf-unwind.c | 19 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 D | coroutine-ucontext.c | 48 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 D | coroutine-sigaltstack.c | 39 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 D | coroutine-windows.c | 74 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 D | sas.c | 33 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 D | async-teardown.c | 84 size_t stack_size = CLONE_STACK_SIZE; in new_stack_for_clone() local 88 stack_ptr = qemu_alloc_stack(&stack_size); in new_stack_for_clone() 89 stack_ptr += stack_size; in new_stack_for_clone()
|
/openbmc/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 2000 int stack_size) in clean_stack_garbage() argument 2034 off = -(stack_size - 4); in clean_stack_garbage() 2064 int stack_size, bool for_call_origin) in save_args() argument 2109 -stack_size); in save_args() 2112 first_off = stack_size; in save_args() 2113 stack_size -= 8; in save_args() 2130 -stack_size); in save_args() 2131 stack_size -= 8; in save_args() 2141 int stack_size) in restore_regs() argument 2159 -stack_size); in restore_regs() [all …]
|
/openbmc/linux/arch/riscv/net/ |
H A D | bpf_jit_comp64.c | 212 int stack_adjust = ctx->stack_size, store_offset = stack_adjust - 8; in __build_epilogue() 793 int stack_size = 0, nregs = m->nr_args; in __arch_prepare_bpf_trampoline() local 854 stack_size += 16; in __arch_prepare_bpf_trampoline() 858 stack_size += 16; /* Save both A5 (BPF R0) and A0 */ 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() [all …]
|
/openbmc/linux/samples/pidfd/ |
H A D | pidfd-metadata.c | 36 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/arm64/include/asm/ |
H A D | vmap_stack.h | 18 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 D | irq_stack.h | 20 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/tools/testing/selftests/user_events/ |
H A D | abi_test.c | 213 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/aarch64/ |
H A D | target_arch_thread.h | 25 abi_ulong arg, abi_ulong stack_base, abi_ulong stack_size) in target_thread_set_upcall() argument 33 sp = ROUND_DOWN(stack_base + stack_size, 16); in target_thread_set_upcall()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | shstk.h | 20 unsigned long stack_size); 31 unsigned long stack_size) { return 0; } in shstk_alloc_thread_stack() argument
|
/openbmc/qemu/bsd-user/riscv/ |
H A D | target_arch_thread.h | 26 abi_ulong stack_size) in target_thread_set_upcall() argument 30 sp = ROUND_DOWN(stack_base + stack_size, 16); in target_thread_set_upcall()
|
/openbmc/qemu/bsd-user/arm/ |
H A D | target_arch_thread.h | 25 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 D | call_stack.tcl | 128 set stack_size [info level] 130 set stack_bottom_ix [expr 1 - $stack_size]
|
/openbmc/linux/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 79 u32 stack_size; member 371 ctx->stack_size = round_up(prog->aux->stack_depth, 16); in build_prologue() 374 emit(A64_SUB_I(1, A64_SP, A64_SP, ctx->stack_size), ctx); in build_prologue() 429 emit(A64_ADD_I(1, A64_SP, A64_SP, ctx->stack_size), ctx); in emit_bpf_tail_call() 667 emit(A64_ADD_I(1, A64_SP, A64_SP, ctx->stack_size), ctx); in build_epilogue() 1841 int stack_size; in prepare_trampoline() local 1881 stack_size = 0; in prepare_trampoline() 1882 run_ctx_off = stack_size; in prepare_trampoline() 1884 stack_size += round_up(sizeof(struct bpf_tramp_run_ctx), 8); in prepare_trampoline() 1886 ip_off = stack_size; in prepare_trampoline() [all …]
|
/openbmc/linux/fs/ |
H A D | binfmt_elf_fdpic.c | 171 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 && interp_params.flags & ELF_FDPIC_FLAG_PRESENT) { 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 …]
|