Home
last modified time | relevance | path

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

123

/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); \
19 stfd f23,(stack_size + STACK_FRAME_MIN_SIZE - 64)(%r1); \
[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))
/linux/tools/testing/selftests/arm64/gcs/
H A Dlibc-gcs.c289 size_t stack_size; in TEST()
295 .stack_size = 2 * 1024, in TEST()
301 .stack_size = 2 * 1024,
307 .stack_size = 2 * 1024, in FIXTURE_VARIANT()
313 .stack_size = 2 * 1024, in FIXTURE_VARIANT_ADD()
319 .stack_size = 4 * 1024, in FIXTURE_VARIANT_ADD()
325 .stack_size = 4 * 1024, in FIXTURE_VARIANT_ADD()
331 .stack_size = 4 * 1024, in FIXTURE_VARIANT_ADD()
337 .stack_size = 4 * 1024, in FIXTURE_VARIANT_ADD()
343 .stack_size
309 size_t stack_size; FIXTURE_VARIANT() local
606 size_t stack_size; FIXTURE_VARIANT() local
646 size_t stack_size; FIXTURE() local
[all...]
/linux/tools/perf/arch/x86/tests/
H A Ddwarf-unwind.c23 u64 stack_size, *buf; in sample_ustack()
40 stack_size = map__end(map) - sp; in sample_ustack()
42 stack_size = stack_size > STACK_SIZE ? STACK_SIZE : stack_size; in sample_ustack()
44 memcpy(buf, (void *) sp, stack_size); in sample_ustack()
50 __msan_unpoison(buf, stack_size); in sample_ustack()
53 stack->size = stack_size; in test__arch_unwind_sample()
19 u64 stack_size, *buf; sample_ustack() local
/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()
/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()
38 stack_size = stack_size > STACK_SIZE ? STACK_SIZE : stack_size; in sample_ustack()
40 memcpy(buf, (void *) sp, stack_size); in sample_ustack()
42 stack->size = stack_size; in sample_ustack()
/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()
38 stack_size = stack_size > STACK_SIZE ? STACK_SIZE : stack_size; in sample_ustack()
40 memcpy(buf, (void *) sp, stack_size); in sample_ustack()
42 stack->size = stack_size; in sample_ustack()
/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()
38 stack_size = stack_size > STACK_SIZE ? STACK_SIZE : stack_size; in sample_ustack()
40 memcpy(buf, (void *) sp, stack_size); in sample_ustack()
42 stack->size = stack_size; in sample_ustack()
/linux/tools/testing/selftests/signal/
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 %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/arch/riscv/net/
H A Dbpf_jit_comp64.c202 int stack_adjust = ctx->stack_size, store_offset = stack_adjust - 8; in __build_epilogue()
1066 int stack_size = 0, nr_arg_slots = 0; in __arch_prepare_bpf_trampoline()
1138 stack_size += 16; in __arch_prepare_bpf_trampoline()
1142 stack_size += 16; /* Save both RV_REG_T6 (BPF R0) and RV_REG_A0 */ in __arch_prepare_bpf_trampoline()
1143 retval_off = stack_size; in __arch_prepare_bpf_trampoline()
1145 stack_size += nr_arg_slots * 8; in __arch_prepare_bpf_trampoline()
1146 args_off = stack_size; in __arch_prepare_bpf_trampoline()
1149 stack_size += 8; in __arch_prepare_bpf_trampoline()
1150 func_meta_off = stack_size; in __arch_prepare_bpf_trampoline()
1153 stack_size in __arch_prepare_bpf_trampoline()
1027 int stack_size = 0, nr_arg_slots = 0; __arch_prepare_bpf_trampoline() local
[all...]
/linux/arch/loongarch/net/
H A Dbpf_jit.c194 ctx->stack_size = stack_adjust; in build_prologue()
202 int stack_adjust = ctx->stack_size; in __build_epilogue()
276 int tcc_ptr_off = BPF_TAIL_CALL_CNT_PTR_STACK_OFF(ctx->stack_size); in emit_bpf_tail_call()
1220 tcc_ptr_off = BPF_TAIL_CALL_CNT_PTR_STACK_OFF(ctx->stack_size); in build_insn()
1916 int stack_size, args_off, stk_args_off, nr_arg_slots = 0; in __arch_prepare_bpf_trampoline()
1980 stack_size = 16; in __arch_prepare_bpf_trampoline()
1984 stack_size += 16; /* Save BPF R0 and A0 */ in __arch_prepare_bpf_trampoline()
1986 retval_off = stack_size; in __arch_prepare_bpf_trampoline()
1989 stack_size += nr_arg_slots * 8; in __arch_prepare_bpf_trampoline()
1990 args_off = stack_size; in __arch_prepare_bpf_trampoline()
1865 int stack_size, args_off, stk_args_off, nr_arg_slots = 0; __arch_prepare_bpf_trampoline() local
[all...]
/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()
/linux/arch/x86/net/
H A Dbpf_jit_comp.c3885 int stack_size) in emit_bpf_dispatcher()
3919 off = -(stack_size - 4); in cmp_ips()
3971 const u8 *pos_of_slot, int stack_size, in bpf_int_jit_compile()
3977 int bargs_off = stack_size; in bpf_int_jit_compile()
4020 * current 'stack_size' and ignore the regs, in bpf_int_jit_compile()
4052 doff = for_call_origin ? stack_size - off : bargs_off; in bpf_int_jit_compile()
4070 int stack_size) in bpf_int_jit_compile()
4081 for (slot = 0; slot < nr_slots; slot++, stack_size -= 8) { in bpf_int_jit_compile()
4084 BPF_REG_FP, -stack_size); in bpf_int_jit_compile()
4090 struct bpf_tramp_node *node, int stack_size, in bpf_int_jit_compile()
3008 clean_stack_garbage(const struct btf_func_model * m,u8 ** pprog,int nr_stack_slots,int stack_size) clean_stack_garbage() argument
3098 save_args(const struct btf_func_model * m,u8 ** prog,int stack_size,bool for_call_origin,u32 flags,u64 arena_base) save_args() argument
3188 restore_regs(const struct btf_func_model * m,u8 ** prog,int stack_size) restore_regs() argument
3221 invoke_bpf_prog(const struct btf_func_model * m,u8 ** pprog,struct bpf_tramp_image * im,struct bpf_tramp_node * node,int stack_size,int run_ctx_off,bool save_ret,void * image,void * rw_image) invoke_bpf_prog() argument
3343 invoke_bpf(const struct btf_func_model * m,u8 ** pprog,struct bpf_tramp_image * im,struct bpf_tramp_nodes * tl,int stack_size,int run_ctx_off,int func_meta_off,bool save_ret,void * image,void * rw_image,u64 func_meta,int cookie_off) invoke_bpf() argument
3367 invoke_bpf_mod_ret(const struct btf_func_model * m,u8 ** pprog,struct bpf_tramp_image * im,struct bpf_tramp_nodes * tl,int stack_size,int run_ctx_off,u8 ** branches,void * image,void * rw_image) invoke_bpf_mod_ret() argument
3474 int i, ret, nr_regs = m->nr_args, stack_size = 0; __arch_prepare_bpf_trampoline() local
[all...]
/linux/arch/riscv/include/asm/
H A Dirq_stack.h23 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/arch/x86/include/asm/
H A Dshstk.h20 unsigned long stack_size);
34 unsigned long stack_size) { return 0; } in shstk_alloc_thread_stack() argument
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtask_kfunc.c145 const int stack_size = 1024 * 1024; in run_vpid_success_test() local
149 stack = (char *)malloc(stack_size); in run_vpid_success_test()
153 child_pid = clone(run_vpid_test, stack + stack_size, in run_vpid_success_test()
/linux/arch/arm64/net/
H A Dbpf_jit_comp.c89 u32 stack_size;
538 * +-----+ <= (BPF_FP - ctx->stack_size) in build_prologue()
615 ctx->stack_size = round_up(prog->aux->stack_depth, 16); in build_prologue()
622 emit(A64_ADD_I(1, fp, priv_sp, ctx->stack_size), ctx); in build_prologue()
630 if (ctx->stack_size && !ctx->priv_sp_used) in build_prologue()
631 emit(A64_SUB_I(1, A64_SP, A64_SP, ctx->stack_size), ctx); in build_prologue()
700 if (ctx->stack_size && !ctx->priv_sp_used) in emit_bpf_tail_call()
701 emit(A64_ADD_I(1, A64_SP, A64_SP, ctx->stack_size), ctx); in emit_bpf_tail_call()
1065 if (ctx->stack_size && !ctx->priv_sp_used) in build_epilogue()
1066 emit(A64_ADD_I(1, A64_SP, A64_SP, ctx->stack_size), ct in build_epilogue()
88 u32 stack_size; global() member
2701 int stack_size; prepare_trampoline() local
[all...]
/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
323 stack_size = exec_params.stack_size; in load_elf_fdpic_binary()
331 if (stack_size == 0 && interp_params.flags & ELF_FDPIC_FLAG_PRESENT) { in load_elf_fdpic_binary()
332 stack_size = interp_params.stack_size; in load_elf_fdpic_binary()
342 if (stack_size == 0) in load_elf_fdpic_binary()
343 stack_size = 131072UL; /* same as exec.c's default commit */ in load_elf_fdpic_binary()
419 stack_size = (stack_size + PAGE_SIZE - 1) & PAGE_MASK; in load_elf_fdpic_binary()
420 if (stack_size < PAGE_SIZE * 2) in load_elf_fdpic_binary()
421 stack_size = PAGE_SIZE * 2; in load_elf_fdpic_binary()
[all …]
/linux/tools/testing/selftests/user_events/
H A Dabi_test.c427 int i, stack_size = 4096; in TEST_F() local
428 void *stack = mmap(NULL, stack_size, PROT_READ | PROT_WRITE, in TEST_F()
437 ASSERT_NE(-1, clone(&clone_check, stack + stack_size, in TEST_F()
443 munmap(stack, stack_size); in TEST_F()
/linux/tools/testing/selftests/kvm/lib/loongarch/
H A Dprocessor.c392 size_t stack_size; in vm_arch_vcpu_add()
398 stack_size = vm->page_size; in vcpu_arch_set_entry_point()
399 stack_gva = __vm_alloc(vm, stack_size, in vcpu_arch_set_entry_point()
406 regs.gpr[3] = stack_gva + stack_size;
374 size_t stack_size; vm_arch_vcpu_add() local
/linux/tools/objtool/
H A Dcheck.c2221 state->stack_size = initial_func_cfi.cfa.offset; in read_unwind_hints()
2718 if (cfi->stack_size != initial_func_cfi.cfa.offset) in has_modified_stack_frame()
2889 regs[CFI_BP].offset = -cfi->stack_size; in update_cfi_state()
2906 cfi->vals[op->dest.reg].offset = -cfi->stack_size; in update_cfi_state()
2917 cfi->stack_size = -cfi->regs[CFI_BP].offset; in update_cfi_state()
2935 cfi->stack_size = cfa->offset; in update_cfi_state()
2985 cfi->stack_size += 8; in update_cfi_state()
3009 cfi->stack_size -= op->src.offset; in update_cfi_state()
3034 cfi->stack_size = -(op->src.offset + regs[CFI_BP].offset); in update_cfi_state()
3056 -cfi->stack_size in update_cfi_state()
[all...]
/linux/tools/objtool/include/objtool/
H A Dcfi.h32 int stack_size; member
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_test.c35 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/include/linux/
H A Delf-fdpic.h36 unsigned long stack_size; /* stack size requested (PT_GNU_STACK) */ member
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-sysinfo.h63 uint32_t stack_size; member

123