/linux-6.6.21/tools/testing/selftests/powerpc/include/ |
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 …]
|
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))
|
/linux-6.6.21/tools/perf/arch/x86/tests/ |
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()
|
/linux-6.6.21/tools/testing/selftests/powerpc/mm/ |
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()
|
/linux-6.6.21/tools/perf/arch/arm64/tests/ |
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()
|
/linux-6.6.21/tools/perf/arch/arm/tests/ |
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()
|
/linux-6.6.21/tools/perf/arch/powerpc/tests/ |
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()
|
/linux-6.6.21/tools/testing/selftests/sigaltstack/ |
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()
|
/linux-6.6.21/arch/x86/net/ |
D | bpf_jit_comp.c | 1957 int stack_size) in clean_stack_garbage() argument 1991 off = -(stack_size - 4); in clean_stack_garbage() 2021 int stack_size, bool for_call_origin) in save_args() argument 2066 -stack_size); in save_args() 2069 first_off = 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() [all …]
|
/linux-6.6.21/arch/riscv/net/ |
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 …]
|
/linux-6.6.21/samples/pidfd/ |
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()
|
/linux-6.6.21/arch/arm64/include/asm/ |
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()
|
/linux-6.6.21/arch/riscv/include/asm/ |
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()
|
/linux-6.6.21/tools/testing/selftests/user_events/ |
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()
|
/linux-6.6.21/arch/x86/include/asm/ |
D | shstk.h | 20 unsigned long stack_size); 30 unsigned long stack_size) { return 0; } in shstk_alloc_thread_stack() argument
|
/linux-6.6.21/arch/arm64/net/ |
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() 1835 int stack_size; in prepare_trampoline() local 1874 stack_size = 0; in prepare_trampoline() 1875 run_ctx_off = stack_size; in prepare_trampoline() 1877 stack_size += round_up(sizeof(struct bpf_tramp_run_ctx), 8); in prepare_trampoline() 1879 ip_off = stack_size; in prepare_trampoline() [all …]
|
/linux-6.6.21/fs/ |
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) { 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 …]
|
/linux-6.6.21/arch/ia64/mm/ |
D | init.c | 96 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()
|
/linux-6.6.21/arch/ia64/kernel/ |
D | process.c | 304 unsigned long user_stack_size = args->stack_size; in copy_thread() 406 unsigned long stack_size, unsigned long parent_tidptr, in ia64_clone() argument 416 .stack_size = stack_size, in ia64_clone()
|
/linux-6.6.21/tools/objtool/ |
D | check.c | 2200 state->stack_size = initial_func_cfi.cfa.offset; in set_func_state() 2679 if (cfi->stack_size != initial_func_cfi.cfa.offset) in has_modified_stack_frame() 2850 regs[CFI_BP].offset = -cfi->stack_size; in update_cfi_state() 2867 cfi->vals[op->dest.reg].offset = -cfi->stack_size; in update_cfi_state() 2878 cfi->stack_size = -cfi->regs[CFI_BP].offset; in update_cfi_state() 2896 cfi->stack_size = cfa->offset; in update_cfi_state() 2946 cfi->stack_size += 8; in update_cfi_state() 2956 cfi->stack_size -= op->src.offset; in update_cfi_state() 2965 cfi->stack_size = -(op->src.offset + regs[CFI_BP].offset); in update_cfi_state() 2986 -cfi->stack_size + op->src.offset; in update_cfi_state() [all …]
|
/linux-6.6.21/tools/objtool/include/objtool/ |
D | cfi.h | 32 int stack_size; member
|
/linux-6.6.21/tools/testing/selftests/kvm/lib/riscv/ |
D | processor.c | 284 size_t stack_size; in vm_arch_vcpu_add() local 290 stack_size = vm->page_size == 4096 ? DEFAULT_STACK_PGS * vm->page_size : in vm_arch_vcpu_add() 292 stack_vaddr = __vm_vaddr_alloc(vm, stack_size, in vm_arch_vcpu_add() 314 vcpu_set_reg(vcpu, RISCV_CORE_REG(regs.sp), stack_vaddr + stack_size); in vm_arch_vcpu_add()
|
/linux-6.6.21/tools/testing/selftests/pidfd/ |
D | pidfd_test.c | 35 size_t stack_size = 1024; in pidfd_clone() local 39 return __clone2(fn, stack, stack_size, flags | SIGCHLD, NULL, pidfd); in pidfd_clone() 41 return clone(fn, stack + stack_size, flags | SIGCHLD, NULL, pidfd); in pidfd_clone()
|
/linux-6.6.21/include/linux/ |
D | elf-fdpic.h | 36 unsigned long stack_size; /* stack size requested (PT_GNU_STACK) */ member
|
/linux-6.6.21/arch/mips/include/asm/octeon/ |
D | cvmx-sysinfo.h | 63 uint32_t stack_size; member
|