FreeBSD/sys/kern/sched_ule.c
/*
 * Print the status of a per-cpu thread queue.  Should be a ddb show cmd.
 */
Print the status of a per-cpu thread queue.  Should be a ddb show cmd.
Print the status of a per - cpu thread queue . Should be a ddb show cmd .
void
tdq_print(int cpu)
{
	struct tdq *tdq;
	tdq = TDQ_CPU(cpu);
	printf("tdq %d:\n", TDQ_ID(tdq));
	printf("\tlock            %p\n", TDQ_LOCKPTR(tdq));
	printf("\tLock name:      %s\n", tdq->tdq_name);
	printf("\tload:           %d\n", tdq->tdq_load);
	printf("\tswitch cnt:     %d\n", tdq->tdq_switchcnt);
	printf("\told switch cnt: %d\n", tdq->tdq_oldswitchcnt);
	printf("\ttimeshare idx:  %d\n", tdq->tdq_idx);
	printf("\ttimeshare ridx: %d\n", tdq->tdq_ridx);
	printf("\tload transferable: %d\n", tdq->tdq_transferable);
	printf("\tlowest priority:   %d\n", tdq->tdq_lowpri);
	printf("\trealtime runq:\n");
	runq_print(&tdq->tdq_realtime);
	printf("\ttimeshare runq:\n");
	runq_print(&tdq->tdq_timeshare);
	printf("\tidle runq:\n");
	runq_print(&tdq->tdq_idle);
}
void tdq_print ( int cpu ) { struct tdq * tdq ; tdq = TDQ_CPU ( cpu ) ; printf ( " \n " , TDQ_ID ( tdq ) ) ; printf ( " \t \n " , TDQ_LOCKPTR ( tdq ) ) ; printf ( " \t \n " , tdq -> tdq_name ) ; printf ( " \t \n " , tdq -> tdq_load ) ; printf ( " \t \n " , tdq -> tdq_switchcnt ) ; printf ( " \t \n " , tdq -> tdq_oldswitchcnt ) ; printf ( " \t \n " , tdq -> tdq_idx ) ; printf ( " \t \n " , tdq -> tdq_ridx ) ; printf ( " \t \n " , tdq -> tdq_transferable ) ; printf ( " \t \n " , tdq -> tdq_lowpri ) ; printf ( " \t \n " ) ; runq_print ( & tdq -> tdq_realtime ) ; printf ( " \t \n " ) ; runq_print ( & tdq -> tdq_timeshare ) ; printf ( " \t \n " ) ; runq_print ( & tdq -> tdq_idle ) ; }
Print the status of a per-cpu thread queue.
Print the status of a per - cpu thread queue .