Deleted Added
full compact
subr_pcpu.c (187357) subr_pcpu.c (191816)
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 187357 2009-01-17 07:17:57Z jeff $");
46__FBSDID("$FreeBSD: head/sys/kern/subr_pcpu.c 191816 2009-05-05 10:56:12Z zec $");
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>

--- 75 unchanged lines hidden (view full) ---

130 td = pc->pc_idlethread;
131 if (td != NULL)
132 db_printf("%p: pid %d \"%s\"\n", td, td->td_proc->p_pid,
133 td->td_name);
134 else
135 db_printf("none\n");
136 db_show_mdpcpu(pc);
137
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>

--- 75 unchanged lines hidden (view full) ---

130 td = pc->pc_idlethread;
131 if (td != NULL)
132 db_printf("%p: pid %d \"%s\"\n", td, td->td_proc->p_pid,
133 td->td_name);
134 else
135 db_printf("none\n");
136 db_show_mdpcpu(pc);
137
138#ifdef VIMAGE
139 db_printf("curvnet = %p\n", pc->pc_curthread->td_vnet);
140#endif
141
138#ifdef WITNESS
139 db_printf("spin locks held:\n");
140 witness_list_locks(&pc->pc_spinlocks);
141#endif
142}
143
144DB_SHOW_COMMAND(pcpu, db_show_pcpu)
145{

--- 31 unchanged lines hidden ---
142#ifdef WITNESS
143 db_printf("spin locks held:\n");
144 witness_list_locks(&pc->pc_spinlocks);
145#endif
146}
147
148DB_SHOW_COMMAND(pcpu, db_show_pcpu)
149{

--- 31 unchanged lines hidden ---