CPR_DEBUG
CPR_DEBUG(CPR_DEBUG4, "%s: total kpages %d\n", prog, sfile.kpages);
CPR_DEBUG(CPR_DEBUG1, "%s: reading statefile... ", prog);
CPR_DEBUG(CPR_DEBUG1, " \b\n");
#define CPR_DBG(n) (cpr_debug & CPR_DEBUG##n)
CPR_DEBUG(CPR_DEBUG1, "%s: restoring kpages... ", prog);
CPR_DEBUG(CPR_DEBUG1, " \b\n");
CPR_DEBUG(CPR_DEBUG4,
CPR_DEBUG(CPR_DEBUG2,
CPR_DEBUG(CPR_DEBUG2, "Resuming device %s\n",
CPR_DEBUG(CPR_DEBUG2, "WARNING: Skipping "
CPR_DEBUG(CPR_DEBUG2,
CPR_DEBUG(CPR_DEBUG2, "Suspending device %s\n",
CPR_DEBUG(CPR_DEBUG3, "done\n");
CPR_DEBUG(CPR_DEBUG2, "cpr_flush_write: error (%d)\n",
CPR_DEBUG(CPR_DEBUG7, "\ncleared reg and vlt bitmaps\n");
CPR_DEBUG(CPR_DEBUG7, "cpr_count_vpages: %ld pages, 0x%lx bytes\n",
CPR_DEBUG(CPR_DEBUG7, "cpr_dump_regular_pages() done.\n");
CPR_DEBUG(CPR_DEBUG7,
CPR_DEBUG(CPR_DEBUG9, "cpr_dump: Real Statefile Size: %ld\n",
CPR_DEBUG(CPR_DEBUG7, "%s untag %ld sens pages\n", str, spages);
CPR_DEBUG(CPR_DEBUG7,
CPR_DEBUG(CPR_DEBUG7,
CPR_DEBUG(CPR_DEBUG7,
CPR_DEBUG(CPR_DEBUG7,
CPR_DEBUG(CPR_DEBUG7,
CPR_DEBUG(CPR_DEBUG9, "cpr_count_kpages: kas_cnt=%ld\n", kas_cnt);
CPR_DEBUG(CPR_DEBUG7, "\ncpr_count_kpages: %ld pages, 0x%lx bytes\n",
CPR_DEBUG(CPR_DEBUG9, "cpr_count_upages: dirty=%ld total=%ld\n",
CPR_DEBUG(CPR_DEBUG7, "cpr_count_upages: %ld pages, 0x%lx bytes\n",
CPR_DEBUG(CPR_DEBUG3, "mapped-in %ld pages, vaddr 0x%p, pfn 0x%lx\n",
CPR_DEBUG(CPR_DEBUG1,
CPR_DEBUG(CPR_DEBUG1, "pfn 0x%lx blk %d err %d\n",
CPR_DEBUG(CPR_DEBUG3,
CPR_DEBUG(CPR_DEBUG1, "resuming devices...");
CPR_DEBUG(CPR_DEBUG1, "done\n");
CPR_DEBUG(CPR_DEBUG1, "starting user threads...");
CPR_DEBUG(CPR_DEBUG1, "done\n");
CPR_DEBUG(CPR_DEBUG1, "Sending SIGTHAW...");
CPR_DEBUG(CPR_DEBUG1, "done\n");
CPR_DEBUG(CPR_DEBUG1, "\nstopping user threads...");
CPR_DEBUG(CPR_DEBUG1, "done\n");
CPR_DEBUG(CPR_DEBUG1, ("cleaning up mapped pages..."));
CPR_DEBUG(CPR_DEBUG1, ("done\n"));
CPR_DEBUG(CPR_DEBUG1, "suspending drivers...");
CPR_DEBUG(CPR_DEBUG1, "done\n");
CPR_DEBUG(CPR_DEBUG1, "interrupt is stopped\n");
CPR_DEBUG(CPR_DEBUG1, "\nEntering cpr_resume...\n");
CPR_DEBUG(CPR_DEBUG9, "Phys swap: max=%lu resv=%lu\n",
CPR_DEBUG(CPR_DEBUG9, "Mem swap: max=%ld resv=%lu\n",
CPR_DEBUG(CPR_DEBUG9, "Total available swap: %ld\n",
CPR_DEBUG(CPR_DEBUG1, est_fmt, str, "", size, ksize);
CPR_DEBUG(CPR_DEBUG1, est_fmt, str, "no ",
CPR_DEBUG(CPR_DEBUG1, "(Done. Please Switch Off)\n");
CPR_DEBUG(CPR_DEBUG1, "Suspend failed: "
CPR_DEBUG(CPR_DEBUG2, "cant stop t=%p state=%x pfg=%x "
CPR_DEBUG(CPR_DEBUG2, "proc %p state=%x pid=%d\n",
CPR_DEBUG(CPR_DEBUG1, "starting kernel daemons...");
CPR_DEBUG(CPR_DEBUG1, "done\n");
CPR_DEBUG(CPR_DEBUG1, "stopping kernel daemons...");
CPR_DEBUG(CPR_DEBUG1, ("done\n"));
CPR_DEBUG(CPR_DEBUG1, ("MP restarted...\n"));
CPR_DEBUG(CPR_DEBUG1, "ran out of descriptors, base 0x%p, "
CPR_DEBUG(CPR_DEBUG1, "i_cpr_compress_and_save: The storage "
CPR_DEBUG(CPR_DEBUG1, "\nWARNING: "
CPR_DEBUG(CPR_DEBUG7, "\ni_cpr_count_sensitive_kpages:\n"
CPR_DEBUG(CPR_DEBUG7, "%s chunks %d, ", str, chunks);
CPR_DEBUG(CPR_DEBUG7, "%s retry %d: ", str, retry);
CPR_DEBUG(CPR_DEBUG7, "%s no space for descriptors!\n", str);
CPR_DEBUG(CPR_DEBUG7, "npages 0x%lx, len 0x%lx, items 0x%lx\n\t*basepp "
CPR_DEBUG(CPR_DEBUG7, "\ni_cpr_dump_sensitive_kpages: dumped %ld\n",
CPR_DEBUG(CPR_DEBUG7, "descp: %p\n", (void *)descp);
CPR_DEBUG(CPR_DEBUG7, "error: %x\n", error);
CPR_DEBUG(CPR_DEBUG7, "descp: %p\n", (void *)descp);
CPR_DEBUG(CPR_DEBUG7, "cpr_write(%p, %p , %lx)\n",
CPR_DEBUG(CPR_DEBUG7, "\ncheck_pgs: reg %d + sens %ld = %d, "
CPR_DEBUG(CPR_DEBUG1,
CPR_DEBUG(CPR_DEBUG1, "saved %ld prom pages\n", ppage_count);
CPR_DEBUG(CPR_DEBUG1, "restored %ld prom pages\n", ppage_count);
CPR_DEBUG(CPR_DEBUG1, "freed %ld prom pages\n",
CPR_DEBUG(CPR_DEBUG1, "statefile data size: %ld\n\n", bytes);
CPR_DEBUG(CPR_DEBUG1, "\ncpr: %s...\n", req);
CPR_DEBUG(CPR_DEBUG1, "MP restarted...\n");
CPR_DEBUG(CPR_DEBUG1, "stack bias 0x%x, pstate 0x%x, wstate 0x%x\n",
CPR_DEBUG(CPR_DEBUG5, "jumpback size = 0x%lx\n",
CPR_DEBUG(CPR_DEBUG7, pages_fmt, "before", str, spages, vpages, pages);
CPR_DEBUG(CPR_DEBUG7,
CPR_DEBUG(CPR_DEBUG7, pages_fmt, "after ", str,
CPR_DEBUG(CPR_DEBUG1, "compressing pages to storage...\n");
CPR_DEBUG(CPR_DEBUG1, "compressed %d pages\n",
CPR_DEBUG(CPR_DEBUG1, "%s too few descriptors\n", str);
CPR_DEBUG(CPR_DEBUG7, "%s sensitive pages: %ld\n", str, pages);
CPR_DEBUG(CPR_DEBUG7,
CPR_DEBUG(CPR_DEBUG7, "%s last ratio %ld%%\n", str, last_pcnt);
CPR_DEBUG(CPR_DEBUG7, "%s Retry est pages: %ld, alloc %ld%%\n",
CPR_DEBUG(CPR_DEBUG7, "%s alloc %ld pages\n", str, *alloc_pages);