Lines Matching refs:ctx
344 dump_context(const HeapDumpContext *ctx)
346 fprintf(ctx->fp, "0x%08x %12.12zd %s\n", (uintptr_t)ctx->chunkStart,
347 ctx->chunkLen, ctx->chunkFree ? "FREE" : "USED");
354 HeapDumpContext *ctx = (HeapDumpContext *)arg;
357 if (chunkFree != ctx->chunkFree ||
358 ((char *)ctx->chunkStart + ctx->chunkLen) != chunkptr)
364 if (ctx->chunkStart != NULL) {
366 dump_context(ctx);
368 ctx->chunkStart = (void *)chunkptr;
369 ctx->chunkLen = chunklen;
370 ctx->chunkFree = chunkFree;
374 ctx->chunkLen += chunklen;
382 HeapDumpContext ctx;
393 memset(&ctx, 0, sizeof(ctx));
394 ctx.fp = fp;
395 dvmHeapSourceWalk(heap_chunk_callback, (void *)&ctx);
396 dump_context(&ctx);