Searched defs:stack (Results 1 - 25 of 419) sorted by last modified time

1234567891011>>

/external/zlib/src/examples/
H A Dgun.c216 unsigned stack; /* next position for reversed string */ local
265 stack = 0;
325 match[stack++] = (unsigned char)final;
330 p = match + stack;
335 stack = p - match;
336 match[stack++] = (unsigned char)code;
350 while (stack > SIZE - outcnt) {
352 outbuf[outcnt++] = match[--stack];
359 p = match + stack;
363 stack
[all...]
/external/vixl/test/
H A Dtest-assembler-a64.cc7298 // Preserve the stack pointer, in case we clobber it.
7310 // alternate forms which can write into the stack pointer.
7339 // Swap the saved stack pointer with the real one. If sp was written
7364 // Preserve the stack pointer, in case we clobber it.
7376 // but have alternate forms which can write into the stack pointer.
7403 // Swap the saved stack pointer with the real one. If sp was written
7451 // This test generates some stack maintenance code, but the test only checks
7456 // The default stack pointer in VIXL is sp.
7684 // Mix with other stack operations.
7751 // * Claim <claim> bytes to set the stack alignmen
8228 uint32_t stack[kMaxWSlots]; local
[all...]
/external/valgrind/main/coregrind/m_aspacemgr/
H A Daspacemgr-common.c364 Protect the stack active area and the guard areas appropriately.
366 stack. On success, also sets *initial_sp to what the stack pointer
373 VgStack* stack; local
377 /* Allocate the stack. */
385 stack = (VgStack*)(AddrH)sr_Res(sres);
388 aspacem_assert(VG_IS_PAGE_ALIGNED(stack));
392 (Addr) &stack[0],
397 (Addr) &stack->bytes[0],
402 (Addr) &stack
439 am_get_VgStack_unused_szB( VgStack* stack, SizeT limit ) argument
[all...]
/external/valgrind/main/coregrind/m_debuginfo/
H A Dd3basics.c492 FAIL("evaluate_Dwarf3_Expr: stack overflow(1)"); \
494 stack[sp] = (_arg); \
501 FAIL("evaluate_Dwarf3_Expr: stack underflow(1)"); \
502 _lval = stack[sp]; \
509 Addr stack[N_EXPR_STACK]; /* stack of addresses, as per D3 spec */ local
559 /* end of expr - return expr on the top of stack. */
561 /* stack empty. Bad. */
562 FAIL("evaluate_Dwarf3_Expr: stack empty at end of expr");
605 FAIL("evaluate_Dwarf3_Expr: DW_OP_{implicit,stack}_valu
[all...]
H A Dreaddwarf.c1580 DWARF2/GCC uses the stack address *before* the function call as a
1705 > I'm chasing a stack backtrace failure for an amd64 .so which was
1762 unwinds the stack it will see relocated data.
1858 # define SP_REG 15 // stack is always r15
2017 /* Size of the stack of register unwind rules. This is only
2018 exceedingly rarely used, so a stack of size 1 should actually work
2033 /* We need a stack of these in order to handle
2157 /* Guard against obviously stupid settings of the reg-rule stack
2776 stack[sp] = (_arg); \
2784 _lval = stack[s
2797 Int stack[N_EXPR_STACK]; /* indices into ctx->exprs */ local
[all...]
/external/valgrind/main/coregrind/
H A Dm_libcassert.c303 // execontext/stack dump/symtab code. But it's better than nothing.
332 VgStack* stack local
336 has exited, then valgrind_stack_base points to the stack base. */
338 && (!exited_threads || stack == 0)) continue;
343 if (valgrind_stack_usage && stack != 0)
344 VG_(printf)("valgrind stack top usage: %ld of %ld\n",
346 - VG_(am_get_VgStack_unused_szB)(stack,
H A Dm_stacks.c44 The stack
46 The stack's segment seems to be dynamically extended downwards by
47 the kernel as the stack pointer moves down. Initially, a 1-page
48 (4k) stack is allocated. When SP moves below that for the first
51 upwards to the current valid stack. It then extends the stack
56 That means that Valgrind can't spot when the stack segment is being
58 update stack permissions around SP, so we need to spot all writes
61 The deal is: when SP is assigned a lower value, the stack is being
63 between the old stack pt
266 Stack* stack = find_stack_by_addr(SP); local
[all...]
/external/valgrind/main/coregrind/m_scheduler/
H A Dscheduler.c520 until the caller is finally done with the thread stack. */
632 - stack overflow message in default_action() in m_signals.c
642 ThreadId computed by first phase of initialisation, fill in stack
1176 call stack (e.g. in VG_(main_thread_wrapper_NORETURN)) but
2165 /* Look for stack overruns. Visit all threads. */
2168 VgStack* stack; local
2174 stack
2180 = VG_(am_get_VgStack_unused_szB)(stack, limit);
2184 "of running out of stack!\n",
/external/valgrind/main/coregrind/m_syswrap/
H A Dsyswrap-amd64-darwin.c246 // on a separate non-client stack.
253 char *stack; local
258 stack = (char *)allocstack(tst->tid);
259 stack -= 64+320; // make room for top frame
260 memset(stack, 0, 64+320); // ...and clear it
261 *(uintptr_t *)stack = 0; // push fake return address
265 mach->__rsp = (uintptr_t)stack;
269 /* Call f(arg1), but first switch stacks, using 'stack' as the new
270 stack, and use 'retaddr' as f's return-to address. Also, clear all
273 void call_on_new_stack_0_1 ( Addr stack,
358 Addr stack = VG_PGROUNDUP(sp) - stacksize; local
421 Addr stack; local
[all...]
H A Dsyswrap-amd64-linux.c65 /* Call f(arg1), but first switch stacks, using 'stack' as the new
66 stack, and use 'retaddr' as f's return-to address. Also, clear all
69 void ML_(call_on_new_stack_0_1) ( Addr stack,
73 // %rdi == stack
81 " movq %rdi, %rsp\n" // set stack
82 " pushq %rsi\n" // retaddr to stack
83 " pushq %rdx\n" // f to stack
84 " pushq %rcx\n" // arg1 to stack
137 void* stack,
147 // set up child stack, temporaril
212 UWord* stack; local
[all...]
H A Dsyswrap-arm-linux.c67 /* Call f(arg1), but first switch stacks, using 'stack' as the new
68 stack, and use 'retaddr' as f's return-to address. Also, clear all
71 void ML_(call_on_new_stack_0_1) ( Addr stack,
75 // r0 = stack
109 void* stack,
120 /*Setup child stack */
125 /* r1 (arg2) is already our child's stack */
159 1. allocate a ThreadId+ThreadState+stack for the the thread
164 but using the scheduler entrypoint for IP, and a separate stack
179 UWord *stack; local
[all...]
H A Dsyswrap-arm64-linux.c65 /* Call f(arg1), but first switch stacks, using 'stack' as the new
66 stack, and use 'retaddr' as f's return-to address. Also, clear all
69 void ML_(call_on_new_stack_0_1) ( Addr stack,
73 // r0 = stack
160 // set up child stack, temporarily preserving fn and arg
161 " sub x1, x1, #16\n" // make space on stack
208 1. allocate a ThreadId+ThreadState+stack for the the thread
213 but using the scheduler entrypoint for IP, and a separate stack
228 UWord* stack; local
239 stack
[all...]
H A Dsyswrap-darwin.c103 VG_(printf)("thread tid %d started: stack = %p\n",
134 /* Allocate a stack for this thread, if it doesn't already have one.
135 Returns the initial stack pointer value to use, or 0 if allocation
141 VgStack* stack; local
145 case a stack hasn't been allocated) or they are both non-zero,
154 /* If no stack is present, allocate one. */
157 stack = VG_(am_alloc_VgStack)( &initial_SP );
158 if (stack) {
159 tst->os_state.valgrind_stack_base = (Addr)stack;
164 VG_(debugLog)( 2, "syswrap-darwin", "stack fo
[all...]
H A Dsyswrap-linux.c86 VG_(printf)("thread tid %d started: stack = %p\n",
143 * the simulated stack (used by the synthetic cpu. Guest process
144 is using this stack).
145 * the valgrind stack (used by the real cpu. Valgrind code is running
146 on this stack).
147 When Valgrind runs as an inner, it must signals that its (real) stack
148 is the stack to use by the outer to e.g. do stacktraces.
220 reusing the stack while we're doing these last cleanups.
222 reallocation. We need to make sure we don't touch the stack
320 /* Allocate a stack fo
326 VgStack* stack; local
[all...]
H A Dsyswrap-mips32-linux.c78 /* Call f(arg1), but first switch stacks, using 'stack' as the new
79 stack, and use 'retaddr' as f's return-to address. Also, clear all
83 void ML_ (call_on_new_stack_0_1) (Addr stack, Addr retaddr,
85 // a0 = stack
93 " move $29, $4\n\t" // stack to %sp
129 pid_t* child_tid in stack 16
130 pid_t* parent_tid in stack 20
131 void* tls_ptr in stack 24
139 pid_t* child_tid in stack 16
151 void *stack, //a
250 UWord * stack; local
[all...]
H A Dsyswrap-mips64-linux.c77 /* Call f(arg1), but first switch stacks, using 'stack' as the new stack, and
81 void ML_(call_on_new_stack_0_1) ( Addr stack, /* $4 - $a0 */
89 " move $29, $4\n" /* set stack */
124 void* stack, /* a1 - 5 */
190 1. allocate a ThreadId+ThreadState+stack for the the thread
195 the scheduler entrypoint for IP, and a separate stack for SP. */
207 UWord * stack; local
215 stack = (UWord *)ML_(allocstack)(ctid);
216 if (stack
[all...]
H A Dsyswrap-ppc32-linux.c64 /* Call f(arg1), but first switch stacks, using 'stack' as the new
65 stack, and use 'retaddr' as f's return-to address. Also, clear all
68 void ML_(call_on_new_stack_0_1) ( Addr stack,
72 // r3 = stack
80 " mr %r1,%r3\n\t" // stack to %sp
153 void* stack,
170 // setup child stack
173 " stwu 0,-16(4)\n" // make initial stack frame
193 /* Note: 2.4 kernel doesn't set the child stack pointer,
196 on the wrong stack, unfortunatel
246 UWord* stack; local
[all...]
H A Dsyswrap-ppc64-linux.c64 /* Call f(arg1), but first switch stacks, using 'stack' as the new
65 stack, and use 'retaddr' as f's return-to address. Also, clear all
68 void ML_(call_on_new_stack_0_1) ( Addr stack,
72 // r3 = stack
91 " mr %r1,%r3\n\t" // stack to %sp
166 void* stack,
190 // setup child stack
194 " stdu 0,-32(4)\n" // make initial stack frame
220 /* Note: 2.4 kernel doesn't set the child stack pointer,
223 on the wrong stack, unfortunatel
273 UWord* stack; local
[all...]
H A Dsyswrap-s390x-linux.c67 /* Call f(arg1), but first switch stacks, using 'stack' as the new
68 stack, and use 'retaddr' as f's return-to address. Also, clear all
76 void ML_(call_on_new_stack_0_1) ( Addr stack,
81 r2 = stack
92 " lgr %r15,%r2\n" // stack to r15
111 // r15 is the stack pointer
144 ULong do_syscall_clone_s390x_linux ( void *stack,
156 " lg %r1, 160(%r15)\n" // save fn from parent stack into r1
157 " lg %r0, 168(%r15)\n" // save arg from parent stack into r0
158 " aghi %r2, -160\n" // create stack fram
218 UWord* stack; local
[all...]
H A Dsyswrap-x86-darwin.c200 // on a separate non-client stack.
207 char *stack; local
212 stack = (char *)allocstack(tst->tid);
213 stack -= 64+320; // make room for top frame
214 memset(stack, 0, 64+320); // ...and clear it
215 *(uintptr_t *)stack = (uintptr_t)tst; // set parameter
216 stack -= sizeof(uintptr_t);
217 *(uintptr_t *)stack = 0; // push fake return address
220 mach->__esp = (uintptr_t)stack;
224 /* Call f(arg1), but first switch stacks, using 'stack' a
316 Addr stack = VG_PGROUNDUP(sp) - stacksize; local
386 Addr stack; local
[all...]
H A Dsyswrap-x86-linux.c71 /* Call f(arg1), but first switch stacks, using 'stack' as the new
72 stack, and use 'retaddr' as f's return-to address. Also, clear all
75 void ML_(call_on_new_stack_0_1) ( Addr stack,
79 // 4(%esp) == stack
87 " movl %esp, %esi\n" // remember old stack pointer
88 " movl 4(%esi), %esp\n" // set stack
89 " pushl 16(%esi)\n" // arg1 to stack
90 " pushl 8(%esi)\n" // retaddr to stack
91 " pushl 12(%esi)\n" // f to stack
137 void* stack,
219 UWord* stack; local
[all...]
/external/valgrind/main/drd/tests/
H A Dtsan_unittest.cpp4317 // Simlpe races with different objects (stack, heap globals; scalars, structs).
5047 // test105: Checks how stack grows. {{{1
5211 // test110: TP. Simple races with stack, global and heap objects. {{{1
5267 ANNOTATE_EXPECT_RACE(STACK, "real race on stack object");
5297 printf("test110: positive (race on a stack object)\n");
5317 // test111: TN. Unit test for a bug related to stack handling. {{{1
5806 // A. I need different stack traces for different accesses.
6135 // test131 does the same for stack.
6168 // Same as test130, but for stack.
6170 void RealWorker() { // Touch stack
6348 int stack; local
[all...]
/external/valgrind/main/exp-bbv/tests/amd64-linux/
H A Dfldcw_check.S31 # offset on stack
32 stack: label
33 sub $8,%rsp # allocate space on stack
36 add $8,%rsp # restore stack
131 fldl three # load value onto fp stack
137 fistpl result # save stack value as integer to mem
/external/valgrind/main/exp-bbv/tests/x86/
H A Dfldcw_check.S34 # offset on stack
35 stack: label
36 sub $4,%esp # allocate space on stack
39 add $4,%esp # restore stack
85 fldl three # load value onto fp stack
91 fistpl result # save stack value as integer to mem
/external/valgrind/main/helgrind/
H A Dhg_main.c1572 The stack snapshot is taken immediately after the parent has
1709 try taking stack snapshots of it. */
2615 /* For each semaphore, we maintain a stack of SOs. When a 'post'
2619 SO), and the SO is pushed on the semaphore's stack.
2622 semaphore, we pop a SO off the semaphore's stack (which should be
2626 It may not be necessary to use a stack - perhaps a bag of SOs would
2680 /* xa is the stack for this semaphore. */
2686 return NULL; /* odd, the stack is empty */
2692 /* hmm, that's odd. No stack for this semaphore. */
2708 /* Empty out the semaphore's SO stack
3702 XArray* stack; /* of Lock* */ local
[all...]

Completed in 4151 milliseconds

1234567891011>>