subr_sleepqueue.c (182875) | subr_sleepqueue.c (183054) |
---|---|
1/*- 2 * Copyright (c) 2004 John Baldwin <jhb@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 46 unchanged lines hidden (view full) --- 55 * must consistently use the same lock to synchronize with a wait channel, 56 * though this check is currently only a warning for sleep/wakeup due to 57 * pre-existing abuse of that API. The same lock must also be held when 58 * awakening threads, though that is currently only enforced for condition 59 * variables. 60 */ 61 62#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2004 John Baldwin <jhb@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 46 unchanged lines hidden (view full) --- 55 * must consistently use the same lock to synchronize with a wait channel, 56 * though this check is currently only a warning for sleep/wakeup due to 57 * pre-existing abuse of that API. The same lock must also be held when 58 * awakening threads, though that is currently only enforced for condition 59 * variables. 60 */ 61 62#include <sys/cdefs.h> |
63__FBSDID("$FreeBSD: head/sys/kern/subr_sleepqueue.c 182875 2008-09-08 19:44:57Z jhb $"); | 63__FBSDID("$FreeBSD: head/sys/kern/subr_sleepqueue.c 183054 2008-09-15 22:45:14Z sam $"); |
64 65#include "opt_sleepqueue_profiling.h" 66#include "opt_ddb.h" 67#include "opt_sched.h" 68 69#include <sys/param.h> 70#include <sys/systm.h> 71#include <sys/lock.h> --- 1090 unchanged lines hidden (view full) --- 1162 db_printf("\t%p (tid %d, pid %d, \"%s\")\n", td, 1163 td->td_tid, td->td_proc->p_pid, 1164 td->td_name); 1165 } 1166 } 1167} 1168 1169/* Alias 'show sleepqueue' to 'show sleepq'. */ | 64 65#include "opt_sleepqueue_profiling.h" 66#include "opt_ddb.h" 67#include "opt_sched.h" 68 69#include <sys/param.h> 70#include <sys/systm.h> 71#include <sys/lock.h> --- 1090 unchanged lines hidden (view full) --- 1162 db_printf("\t%p (tid %d, pid %d, \"%s\")\n", td, 1163 td->td_tid, td->td_proc->p_pid, 1164 td->td_name); 1165 } 1166 } 1167} 1168 1169/* Alias 'show sleepqueue' to 'show sleepq'. */ |
1170DB_SET(sleepqueue, db_show_sleepqueue, db_show_cmd_set, 0, NULL); | 1170DB_SHOW_ALIAS(sleepqueue, db_show_sleepqueue); |
1171#endif | 1171#endif |