scftrace.c revision 25cf1a301a396c38e8adf52c15f537b80d2483f7
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* 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
*/
/*
* All Rights Reserved, Copyright (c) FUJITSU LIMITED 2006
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef DEBUG
/*
* SCF driver trace flag
*/
/*
* xxxx xxxx : scf_trace_flag
* 1 : Error trace exec
* 1 : Busy trace exec
* 1 : Messege trace exec
* 1 : RD register trace exec
* 1 : WR register trace exec
* 1 : Timer trace exec
* 1 : Func out trace exec
* 1 : Func in trace exec
*/
/*
* SCF driver trace debug flag
*/
/*
* Function list
*/
/*
* scf_trace()
*
* SCF Driver trace get processing.
*
* 0 +--------------+
* | sorce line | trace get source line
* 2 +--------------+
* | time | trace get time (100ms)
* 4 +--------------+
* | triger code | trace triger code
* 6 +--------------+
* | info size | infomarion size
* 8 +--------------+
* | |
* A + +
* | |
* C + info + infomarion
* | |
* E + +
* | |
* 10 +--------------+
*
*/
void
{
int ii;
int trcflag = 0;
if ((scf_trace_exec) &&
trcflag = 1;
}
}
if (!trcflag) {
return;
}
clock_val = ddi_get_lbolt();
} else {
}
}
if (trcflag) {
}
}
}
}
if (trcflag) {
}
}
#endif