}
p->tos = (struct tostruct *)cp;
cp += p->tossize;
- p->kcount = (u_short *)cp;
+ p->kcount = (HISTCOUNTER *)cp;
cp += p->kcountsize;
- p->froms = (u_short *)cp;
+ p->froms = (ARCINDEX *)cp;
p->tos[0].link = 0;
u_char tag = GMON_TAG_CG_ARC;
struct gmon_cg_arc_record raw_arc[NARCS_PER_WRITEV]
__attribute__ ((aligned (__alignof__ (char*))));
- int from_index, to_index, from_len;
+ ARCINDEX from_index, to_index;
+ int from_len;
u_long frompc;
struct iovec iov[2 * NARCS_PER_WRITEV];
int nfilled;
static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93";
#endif
+#include <unistd.h>
#include <sys/param.h>
#include <sys/gmon.h>
*/
_MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */
{
- register u_short *frompcindex;
+ register ARCINDEX *frompcindex;
register struct tostruct *top, *prevtop;
register struct gmonparam *p;
- register long toindex;
+ register ARCINDEX toindex;
int i;
p = &_gmonparam;