| /linux-6.15/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); \ 30 #define POP_FPU(stack_size) \ argument [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))
|
| /linux-6.15/tools/testing/selftests/arm64/gcs/ |
| H A D | libc-gcs.c | 308 size_t stack_size; in FIXTURE_VARIANT() local 314 .stack_size = 2 * 1024, in FIXTURE_VARIANT_ADD() 320 .stack_size = 2 * 1024, in FIXTURE_VARIANT_ADD() 326 .stack_size = 2 * 1024, in FIXTURE_VARIANT_ADD() 332 .stack_size = 2 * 1024, in FIXTURE_VARIANT_ADD() 338 .stack_size = 4 * 1024, in FIXTURE_VARIANT_ADD() 344 .stack_size = 4 * 1024, in FIXTURE_VARIANT_ADD() 350 .stack_size = 4 * 1024, in FIXTURE_VARIANT_ADD() 605 size_t stack_size; in FIXTURE_VARIANT() local 619 .stack_size = 8, in FIXTURE_VARIANT_ADD() [all …]
|
| /linux-6.15/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() 38 stack_size = stack_size > STACK_SIZE ? STACK_SIZE : stack_size; in sample_ustack() 40 memcpy(buf, (void *) sp, stack_size); in sample_ustack() 46 __msan_unpoison(buf, stack_size); in sample_ustack() 49 stack->size = stack_size; in sample_ustack()
|
| /linux-6.15/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()
|
| /linux-6.15/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()
|
| /linux-6.15/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()
|
| /linux-6.15/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()
|
| /linux-6.15/tools/testing/selftests/signal/ |
| 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 %u\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.15/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()
|
| /linux-6.15/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()
|
| /linux-6.15/arch/riscv/include/asm/ |
| H A D | irq_stack.h | 23 static inline unsigned long *arch_alloc_vmap_stack(size_t stack_size, int node) in arch_alloc_vmap_stack() argument 27 p = __vmalloc_node(stack_size, THREAD_ALIGN, THREADINFO_GFP, node, in arch_alloc_vmap_stack()
|
| /linux-6.15/arch/riscv/net/ |
| H A D | bpf_jit_comp64.c | 873 stack_size += 16; in __arch_prepare_bpf_trampoline() 878 retval_off = stack_size; in __arch_prepare_bpf_trampoline() 882 args_off = stack_size; in __arch_prepare_bpf_trampoline() 884 stack_size += 8; in __arch_prepare_bpf_trampoline() 885 nregs_off = stack_size; in __arch_prepare_bpf_trampoline() 888 stack_size += 8; in __arch_prepare_bpf_trampoline() 889 ip_off = stack_size; in __arch_prepare_bpf_trampoline() 893 run_ctx_off = stack_size; in __arch_prepare_bpf_trampoline() 895 stack_size += 8; in __arch_prepare_bpf_trampoline() 896 sreg_off = stack_size; in __arch_prepare_bpf_trampoline() [all …]
|
| /linux-6.15/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 2660 int stack_size) in clean_stack_garbage() argument 2769 -stack_size); in save_args() 2773 stack_size -= 8; in save_args() 2790 -stack_size); in save_args() 2791 stack_size -= 8; in save_args() 2801 int stack_size) in restore_regs() argument 2819 -stack_size); in restore_regs() 3132 stack_size += 8; in __arch_prepare_bpf_trampoline() 3138 stack_size += 8; in __arch_prepare_bpf_trampoline() 3146 stack_size += 8; in __arch_prepare_bpf_trampoline() [all …]
|
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | task_kfunc.c | 115 const int stack_size = 1024 * 1024; in run_vpid_success_test() local 119 stack = (char *)malloc(stack_size); in run_vpid_success_test() 123 child_pid = clone(run_vpid_test, stack + stack_size, in run_vpid_success_test()
|
| /linux-6.15/arch/x86/include/asm/ |
| H A D | shstk.h | 20 unsigned long stack_size); 32 unsigned long stack_size) { return 0; } in shstk_alloc_thread_stack() argument
|
| /linux-6.15/arch/arm64/net/ |
| H A D | bpf_jit_comp.c | 85 u32 stack_size; member 562 if (ctx->stack_size) in build_prologue() 626 if (ctx->stack_size) in emit_bpf_tail_call() 994 if (ctx->stack_size) in build_epilogue() 2249 int stack_size; in prepare_trampoline() local 2289 stack_size = 0; in prepare_trampoline() 2297 stack_size += 8; in prepare_trampoline() 2301 stack_size += 8; in prepare_trampoline() 2311 stack_size += 8; in prepare_trampoline() 2315 stack_size += 16; in prepare_trampoline() [all …]
|
| /linux-6.15/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() 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() 420 current->mm->start_brk = vm_mmap(NULL, 0, stack_size, stack_prot, in load_elf_fdpic_binary() [all …]
|
| /linux-6.15/tools/testing/selftests/user_events/ |
| H A D | abi_test.c | 400 int i, stack_size = 4096; in TEST_F() local 401 void *stack = mmap(NULL, stack_size, PROT_READ | PROT_WRITE, in TEST_F() 410 ASSERT_NE(-1, clone(&clone_check, stack + stack_size, in TEST_F() 416 munmap(stack, stack_size); in TEST_F()
|
| /linux-6.15/drivers/md/dm-vdo/indexer/ |
| H A D | radix-sort.c | 211 unsigned int stack_size = count / INSERTION_SORT_THRESHOLD; in uds_make_radix_sorter() local 214 result = vdo_allocate_extended(struct radix_sorter, stack_size, struct task, in uds_make_radix_sorter() 220 radix_sorter->end_of_stack = radix_sorter->stack + stack_size; in uds_make_radix_sorter()
|
| /linux-6.15/tools/objtool/ |
| H A D | check.c | 2846 cfi->stack_size = cfa->offset; in update_cfi_state() 2896 cfi->stack_size += 8; in update_cfi_state() 2906 cfi->stack_size -= op->src.offset; in update_cfi_state() 2953 -cfi->stack_size + op->src.offset; in update_cfi_state() 2987 cfa->offset = cfi->stack_size = 0; in update_cfi_state() 3028 cfi->stack_size -= 8; in update_cfi_state() 3040 cfa->offset = cfi->stack_size; in update_cfi_state() 3083 cfi->stack_size += 8; in update_cfi_state() 3095 cfa->offset = -cfi->stack_size; in update_cfi_state() 3103 cfi->stack_size = 0; in update_cfi_state() [all …]
|
| /linux-6.15/tools/objtool/include/objtool/ |
| H A D | cfi.h | 32 int stack_size; member
|
| /linux-6.15/arch/mips/include/asm/octeon/ |
| H A D | cvmx-sysinfo.h | 63 uint32_t stack_size; member
|
| /linux-6.15/include/linux/ |
| H A D | elf-fdpic.h | 36 unsigned long stack_size; /* stack size requested (PT_GNU_STACK) */ member
|
| H A D | flat.h | 34 __be32 stack_size; /* Size of stack, in bytes */ member
|