Home
last modified time | relevance | path

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

/tools/testing/selftests/powerpc/include/
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 …]
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))
/tools/perf/arch/x86/tests/
Ddwarf-unwind.c19 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()
/tools/perf/arch/powerpc/tests/
Ddwarf-unwind.c19 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()
/tools/perf/arch/arm/tests/
Ddwarf-unwind.c19 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()
/tools/perf/arch/arm64/tests/
Ddwarf-unwind.c19 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()
/tools/testing/selftests/powerpc/mm/
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()
/tools/testing/selftests/sigaltstack/
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 %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()
/tools/testing/selftests/user_events/
Dabi_test.c213 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()
/tools/objtool/include/objtool/
Dcfi.h32 int stack_size; member
/tools/testing/selftests/clone3/
Dclone3_selftests.h33 __aligned_u64 stack_size; member
/tools/include/uapi/linux/
Dsched.h99 __aligned_u64 stack_size; member
/tools/testing/selftests/pidfd/
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()
/tools/testing/selftests/kvm/lib/riscv/
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()
/tools/testing/selftests/kvm/lib/s390x/
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()
/tools/objtool/
Dcheck.c2200 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 …]
/tools/perf/util/
Dbpf_lock_contention.c257 size_t stack_size = con->max_stack * sizeof(*stack_trace); in lock_contention_read() local
267 stack_trace = zalloc(stack_size); in lock_contention_read()
350 st->callstack = memdup(stack_trace, stack_size); in lock_contention_read()
/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c350 size_t stack_size; in aarch64_vcpu_add() local
354 stack_size = vm->page_size == 4096 ? DEFAULT_STACK_PGS * vm->page_size : in aarch64_vcpu_add()
356 stack_vaddr = __vm_vaddr_alloc(vm, stack_size, in aarch64_vcpu_add()
362 vcpu_set_reg(vcpu, ARM64_CORE_REG(sp_el1), stack_vaddr + stack_size); in aarch64_vcpu_add()