Date: Fri, 28 Jul 2006 20:27:35 GMT From: Chris Jones <cdjones@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 102686 for review Message-ID: <200607282027.k6SKRZZI083771@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=102686 Change 102686 by cdjones@cdjones_igneous on 2006/07/28 20:27:19 Add quick debugging output to console to track the scheduler & pager threads. Affected files ... .. //depot/projects/soc2006/cdjones_jail/src/sys/kern/kern_jail.c#15 edit Differences ... ==== //depot/projects/soc2006/cdjones_jail/src/sys/kern/kern_jail.c#15 (text+ko) ==== @@ -105,14 +105,19 @@ struct prison *pr; pr = arg; + printf("Starting jsched_td\n"); + for (;;) { if (pr->pr_scheduler_flags & J_SCHED_TD_DIE) break; /* Scheduling stuff goes here. */ + printf("jsched_td running\n"); tsleep(pr, 0, "-", hz); } + printf("Exiting jsched_td\n"); + pr->pr_scheduler_flags = J_SCHED_TD_DEAD; kthread_exit(0); } @@ -128,7 +133,11 @@ pr = arg; + printf("Starting jpager_td\n"); + for (;;) { + printf("jpager_td running\n"); + if (pr->pr_pager_flags & J_PAGER_TD_DIE) break; @@ -199,8 +208,11 @@ } /* TODO --- make interval into a sysctl? */ + printf("jpager_td sleeping\n"); tsleep(pr, 0, "-", hz); } + + printf("Exiting jpager_td\n"); pr->pr_pager_flags = J_PAGER_TD_DEAD; kthread_exit(0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607282027.k6SKRZZI083771>