Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2002 19:31:42 +0200 (SAT)
From:      John Hay <jhay@icomtek.csir.co.za>
To:        phk@FreeBSD.org (Poul-Henning Kamp)
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/alpha/alpha mp_machdep.c src/sys/i386/i386         mp_machdep.c src/sys/ia64/ia64 mp_machdep.c         src/s
Message-ID:  <200202221731.g1MHVgK38708@zibbi.icomtek.csir.co.za>
In-Reply-To: <200202221332.g1MDW2g73525@freefall.freebsd.org> from Poul-Henning Kamp at "Feb 22, 2002 05:32:02 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> phk         2002/02/22 05:32:02 PST
> 
>   Modified files:
>     sys/alpha/alpha      mp_machdep.c 
>     sys/i386/i386        mp_machdep.c 
>     sys/ia64/ia64        mp_machdep.c 
>     sys/sparc64/sparc64  mp_machdep.c 
>     sys/kern             init_main.c kern_exit.c kern_fork.c 
>                          kern_proc.c kern_resource.c kern_synch.c 
>     sys/sys              pcpu.h proc.h 
>   Log:
>   Convert p->p_runtime and PCPU(switchtime) to bintime format.

This breaks libkvm. Line 316 of kvm_proc.c looks like this:

		kp->ki_runtime = proc.p_runtime;

toby# grep ki_runtime sys/sys/*
sys/sys/user.h: u_int64_t ki_runtime;           /* Real time in microsec */
toby# grep p_runtime sys/sys/*
sys/sys/proc.h: struct bintime  p_runtime;      /* (j) Real time. */

The compile error is:

cc -O -pipe -march=pentiumpro -DLIBC_SCCS -I/home/src/lib/libkvm  -c /home/src/lib/libkvm/kvm_proc.c -o kvm_proc.o
/home/src/lib/libkvm/kvm_proc.c: In function `kvm_proclist':
/home/src/lib/libkvm/kvm_proc.c:316: incompatible types in assignment
*** Error code 1

Stop in /home/src/lib/libkvm.
*** Error code 1

John
-- 
John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202221731.g1MHVgK38708>