Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/tools/testing/selftests/powerpc/include/
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 …]
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-6.3-rc2/tools/perf/arch/x86/tests/
A Ddwarf-unwind.c19 u64 stack_size, *buf; in sample_ustack() local
36 stack_size = map->end - 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.3-rc2/tools/testing/selftests/powerpc/mm/
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-6.3-rc2/tools/perf/arch/arm/tests/
A Ddwarf-unwind.c19 u64 stack_size, *buf; in sample_ustack() local
36 stack_size = map->end - 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.3-rc2/tools/perf/arch/arm64/tests/
A Ddwarf-unwind.c19 u64 stack_size, *buf; in sample_ustack() local
36 stack_size = map->end - 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.3-rc2/tools/perf/arch/powerpc/tests/
A Ddwarf-unwind.c19 u64 stack_size, *buf; in sample_ustack() local
36 stack_size = map->end - 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.3-rc2/tools/testing/selftests/sigaltstack/
A Dsas.c32 static unsigned int stack_size; variable
56 sp >= (unsigned long)sstack + stack_size) { in my_usr1()
118 stack_size = getauxval(AT_MINSIGSTKSZ) + SIGSTKSZ; in main()
119 ksft_print_msg("[NOTE]\tthe stack size is %lu\n", stack_size); in main()
130 sstack = mmap(NULL, stack_size, PROT_READ | PROT_WRITE, in main()
152 stk.ss_size = stack_size; in main()
174 ustack = mmap(NULL, stack_size, PROT_READ | PROT_WRITE, in main()
183 uc.uc_stack.ss_size = stack_size; in main()
/linux-6.3-rc2/samples/pidfd/
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-6.3-rc2/arch/arm64/include/asm/
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()
/linux-6.3-rc2/arch/riscv/net/
A Dbpf_jit_comp64.c837 stack_size += 8; in __arch_prepare_bpf_trampoline()
839 stack_size += 8; in __arch_prepare_bpf_trampoline()
842 stack_size += 8; in __arch_prepare_bpf_trampoline()
843 fp_off = stack_size; in __arch_prepare_bpf_trampoline()
847 stack_size += 8; in __arch_prepare_bpf_trampoline()
852 args_off = stack_size; in __arch_prepare_bpf_trampoline()
854 stack_size += 8; in __arch_prepare_bpf_trampoline()
858 stack_size += 8; in __arch_prepare_bpf_trampoline()
859 ip_off = stack_size; in __arch_prepare_bpf_trampoline()
865 stack_size += 8; in __arch_prepare_bpf_trampoline()
[all …]
/linux-6.3-rc2/arch/arm64/net/
A Dbpf_jit_comp.c79 u32 stack_size; member
1770 int stack_size; in prepare_trampoline() local
1809 stack_size = 0; in prepare_trampoline()
1814 ip_off = stack_size; in prepare_trampoline()
1817 stack_size += 8; in prepare_trampoline()
1821 stack_size += 8; in prepare_trampoline()
1823 args_off = stack_size; in prepare_trampoline()
1831 stack_size += 8; in prepare_trampoline()
1834 regs_off = stack_size; in prepare_trampoline()
1835 stack_size += 16; in prepare_trampoline()
[all …]
/linux-6.3-rc2/arch/x86/net/
A Dbpf_jit_comp.c1861 int stack_size) in save_regs() argument
1882 -(stack_size - i * 8)); in save_regs()
1889 int stack_size) in restore_regs() argument
1910 -(stack_size - i * 8)); in restore_regs()
2179 stack_size += 8; in arch_prepare_bpf_trampoline()
2181 stack_size += nr_regs * 8; in arch_prepare_bpf_trampoline()
2182 regs_off = stack_size; in arch_prepare_bpf_trampoline()
2185 stack_size += 8; in arch_prepare_bpf_trampoline()
2186 nregs_off = stack_size; in arch_prepare_bpf_trampoline()
2191 ip_off = stack_size; in arch_prepare_bpf_trampoline()
[all …]
/linux-6.3-rc2/fs/
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()
412 stack_size = (stack_size + PAGE_SIZE - 1) & PAGE_MASK; in load_elf_fdpic_binary()
413 if (stack_size < PAGE_SIZE * 2) in load_elf_fdpic_binary()
414 stack_size = PAGE_SIZE * 2; in load_elf_fdpic_binary()
[all …]
/linux-6.3-rc2/arch/ia64/mm/
A Dinit.c82 unsigned long stack_size = rlimit_max(RLIMIT_STACK) & -16; in ia64_set_rbs_bot() local
84 if (stack_size > MAX_USER_STACK_SIZE) in ia64_set_rbs_bot()
85 stack_size = MAX_USER_STACK_SIZE; in ia64_set_rbs_bot()
86 current->thread.rbs_bot = PAGE_ALIGN(current->mm->start_stack - stack_size); in ia64_set_rbs_bot()
/linux-6.3-rc2/arch/ia64/kernel/
A Dprocess.c304 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.3-rc2/tools/objtool/
A Dcheck.c2906 cfi->stack_size = cfa->offset; in update_cfi_state()
2956 cfi->stack_size += 8; in update_cfi_state()
2966 cfi->stack_size -= op->src.offset; in update_cfi_state()
3007 -cfi->stack_size + op->src.offset; in update_cfi_state()
3043 cfa->offset = cfi->stack_size = 0; in update_cfi_state()
3084 cfi->stack_size -= 8; in update_cfi_state()
3096 cfa->offset = cfi->stack_size; in update_cfi_state()
3140 cfi->stack_size += 8; in update_cfi_state()
3152 cfa->offset = -cfi->stack_size; in update_cfi_state()
3160 cfi->stack_size = 0; in update_cfi_state()
[all …]
/linux-6.3-rc2/tools/objtool/include/objtool/
A Dcfi.h32 int stack_size; member
/linux-6.3-rc2/include/linux/
A Delf-fdpic.h24 unsigned long stack_size; /* stack size requested (PT_GNU_STACK) */ member
A Dflat.h34 __be32 stack_size; /* Size of stack, in bytes */ member
/linux-6.3-rc2/tools/testing/selftests/kvm/lib/riscv/
A Dprocessor.c284 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.3-rc2/tools/perf/util/
A Dbpf_lock_contention.c239 size_t stack_size = con->max_stack * sizeof(*stack_trace); in lock_contention_read() local
246 stack_trace = zalloc(stack_size); in lock_contention_read()
318 st->callstack = memdup(stack_trace, stack_size); in lock_contention_read()
/linux-6.3-rc2/tools/testing/selftests/pidfd/
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-6.3-rc2/arch/mips/include/asm/octeon/
A Dcvmx-sysinfo.h63 uint32_t stack_size; member
/linux-6.3-rc2/tools/testing/selftests/kvm/lib/s390x/
A Dprocessor.c161 size_t stack_size = DEFAULT_STACK_PGS * getpagesize(); in vm_arch_vcpu_add() local
171 stack_vaddr = __vm_vaddr_alloc(vm, stack_size, in vm_arch_vcpu_add()

Completed in 64 milliseconds

123