subr_pcpu.c (173444) | subr_pcpu.c (173600) |
---|---|
1/*- 2 * Copyright (c) 2001 Wind River Systems, Inc. 3 * All rights reserved. 4 * Written by: John Baldwin <jhb@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 29 unchanged lines hidden (view full) --- 38 * gaps in the mappings. 39 * - The platform sets the value of MAXCPU in <machine/param.h>. 40 * - It is suggested, but not required, that in the non-SMP case, the 41 * platform define MAXCPU to be 1 and define the logical ID of the 42 * sole CPU as 0. 43 */ 44 45#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001 Wind River Systems, Inc. 3 * All rights reserved. 4 * Written by: John Baldwin <jhb@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 29 unchanged lines hidden (view full) --- 38 * gaps in the mappings. 39 * - The platform sets the value of MAXCPU in <machine/param.h>. 40 * - It is suggested, but not required, that in the non-SMP case, the 41 * platform define MAXCPU to be 1 and define the logical ID of the 42 * sole CPU as 0. 43 */ 44 45#include <sys/cdefs.h> |
46__FBSDID("$FreeBSD: head/sys/kern/subr_pcpu.c 173444 2007-11-08 14:47:55Z ups $"); | 46__FBSDID("$FreeBSD: head/sys/kern/subr_pcpu.c 173600 2007-11-14 06:21:24Z julian $"); |
47 48#include "opt_ddb.h" 49 50#include <sys/param.h> 51#include <sys/systm.h> 52#include <sys/linker_set.h> 53#include <sys/lock.h> 54#include <sys/pcpu.h> --- 52 unchanged lines hidden (view full) --- 107{ 108 struct thread *td; 109 110 db_printf("cpuid = %d\n", pc->pc_cpuid); 111 db_printf("curthread = "); 112 td = pc->pc_curthread; 113 if (td != NULL) 114 db_printf("%p: pid %d \"%s\"\n", td, td->td_proc->p_pid, | 47 48#include "opt_ddb.h" 49 50#include <sys/param.h> 51#include <sys/systm.h> 52#include <sys/linker_set.h> 53#include <sys/lock.h> 54#include <sys/pcpu.h> --- 52 unchanged lines hidden (view full) --- 107{ 108 struct thread *td; 109 110 db_printf("cpuid = %d\n", pc->pc_cpuid); 111 db_printf("curthread = "); 112 td = pc->pc_curthread; 113 if (td != NULL) 114 db_printf("%p: pid %d \"%s\"\n", td, td->td_proc->p_pid, |
115 td->td_proc->p_comm); | 115 td->td_name); |
116 else 117 db_printf("none\n"); 118 db_printf("curpcb = %p\n", pc->pc_curpcb); 119 db_printf("fpcurthread = "); 120 td = pc->pc_fpcurthread; 121 if (td != NULL) 122 db_printf("%p: pid %d \"%s\"\n", td, td->td_proc->p_pid, | 116 else 117 db_printf("none\n"); 118 db_printf("curpcb = %p\n", pc->pc_curpcb); 119 db_printf("fpcurthread = "); 120 td = pc->pc_fpcurthread; 121 if (td != NULL) 122 db_printf("%p: pid %d \"%s\"\n", td, td->td_proc->p_pid, |
123 td->td_proc->p_comm); | 123 td->td_name); |
124 else 125 db_printf("none\n"); 126 db_printf("idlethread = "); 127 td = pc->pc_idlethread; 128 if (td != NULL) 129 db_printf("%p: pid %d \"%s\"\n", td, td->td_proc->p_pid, | 124 else 125 db_printf("none\n"); 126 db_printf("idlethread = "); 127 td = pc->pc_idlethread; 128 if (td != NULL) 129 db_printf("%p: pid %d \"%s\"\n", td, td->td_proc->p_pid, |
130 td->td_proc->p_comm); | 130 td->td_name); |
131 else 132 db_printf("none\n"); 133 db_show_mdpcpu(pc); 134 135#ifdef WITNESS 136 db_printf("spin locks held:\n"); 137 witness_list_locks(&pc->pc_spinlocks); 138#endif --- 34 unchanged lines hidden --- | 131 else 132 db_printf("none\n"); 133 db_show_mdpcpu(pc); 134 135#ifdef WITNESS 136 db_printf("spin locks held:\n"); 137 witness_list_locks(&pc->pc_spinlocks); 138#endif --- 34 unchanged lines hidden --- |