From owner-freebsd-current Wed Nov 13 15:50:49 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E017A37B401 for ; Wed, 13 Nov 2002 15:50:47 -0800 (PST) Received: from borja.sarenet.es (borja.sarenet.es [192.148.167.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 061F543E3B for ; Wed, 13 Nov 2002 15:50:47 -0800 (PST) (envelope-from borjam@sarenet.es) Received: from nenuial.arnor.es (localhost [127.0.0.1]) by borja.sarenet.es (8.12.6/8.12.6) with ESMTP id gADNojIP046104; Thu, 14 Nov 2002 00:50:45 +0100 (CET) (envelope-from borjam@sarenet.es) Content-Type: text/plain; charset="iso-8859-1" From: Borja Marcos To: Borja Marcos Subject: MORE: Re: Bug? vm.stats.sys.v_syscall not updated Date: Thu, 14 Nov 2002 00:50:44 +0100 User-Agent: KMail/1.4.3 References: <200211140017.52416.borjamar@sarenet.es> In-Reply-To: <200211140017.52416.borjamar@sarenet.es> Organization: Sarenet S.A. Cc: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200211140050.44760.borjam@sarenet.es> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG =09Looking at the kernel sources, I see that in /usr/src/sys/i386/i386/tr= ap.c, --- snip /* * note: PCPU_LAZY_INC() can only be used if we can afford * occassional inaccuracy in the count. */ PCPU_LAZY_INC(cnt.v_syscall); --- snip =09This seems to be a macro to update a per-CPU variable. But, AFAIK, the= re is=20 *only* one variable now. Is it correct?=20 =09The ia64 version (/usr/src/sys/ia64/ia64) happily updates this variabl= e: ---- snip syscall(int code, u_int64_t *args, struct trapframe *framep) { struct sysent *callp; struct thread *td; struct proc *p; =20 int error =3D 0; =20 u_int64_t oldip, oldri; u_int sticks; cnt.v_syscall++; ---- snip =09What happens here? Is this a bug caught in the middle of a change? =09BTW... Is there a major change in the sysctl MIB for 5.0-RELEASE? I am= using=20 it to get most of the information logged to Orca and I should take it int= o=20 account. =09Thanks, =09Borja. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message