nscd.d revision 14ea49401f3c8c61422aefbda43809e275f60c6c
5c124de5c36bfc236d55578429df5f048f0d0a07Jamie Bowen/*
5c124de5c36bfc236d55578429df5f048f0d0a07Jamie Bowen * CDDL HEADER START
5c124de5c36bfc236d55578429df5f048f0d0a07Jamie Bowen *
5c124de5c36bfc236d55578429df5f048f0d0a07Jamie Bowen * The contents of this file are subject to the terms of the
5c124de5c36bfc236d55578429df5f048f0d0a07Jamie Bowen * Common Development and Distribution License, Version 1.0 only
5c124de5c36bfc236d55578429df5f048f0d0a07Jamie Bowen * (the "License"). You may not use this file except in compliance
5c124de5c36bfc236d55578429df5f048f0d0a07Jamie Bowen * with the License.
5c124de5c36bfc236d55578429df5f048f0d0a07Jamie Bowen *
5c124de5c36bfc236d55578429df5f048f0d0a07Jamie Bowen * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5c124de5c36bfc236d55578429df5f048f0d0a07Jamie Bowen * or http://www.opensolaris.org/os/licensing.
5c124de5c36bfc236d55578429df5f048f0d0a07Jamie Bowen * See the License for the specific language governing permissions
5c124de5c36bfc236d55578429df5f048f0d0a07Jamie Bowen * and limitations under the License.
5c124de5c36bfc236d55578429df5f048f0d0a07Jamie Bowen *
5c124de5c36bfc236d55578429df5f048f0d0a07Jamie Bowen * When distributing Covered Code, include this CDDL HEADER in each
5c124de5c36bfc236d55578429df5f048f0d0a07Jamie Bowen * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5c124de5c36bfc236d55578429df5f048f0d0a07Jamie Bowen * If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
sched:::sleep
/curlwpsinfo->pr_stype == SOBJ_SHUTTLE/
{
bedtime[curlwpsinfo->pr_addr] = timestamp;
}
sched:::wakeup
/execname == "nscd" && bedtime[args[0]->pr_addr]/
{
@[stringof(curpsinfo->pr_fname), stringof(args[1]->pr_fname)] =
quantize(timestamp - bedtime[args[0]->pr_addr]);
bedtime[args[0]->pr_addr] = 0;
}
sched:::wakeup
/bedtime[args[0]->pr_addr]/
{
bedtime[args[0]->pr_addr] = 0;
}