From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 13 01:52:17 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DAEA216A4CE for ; Fri, 13 Aug 2004 01:52:17 +0000 (GMT) Received: from vsmtp12.tin.it (vsmtp12.tin.it [212.216.176.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F8E043D2F for ; Fri, 13 Aug 2004 01:52:17 +0000 (GMT) (envelope-from gerarra@tin.it) Received: from ims3a.cp.tin.it (192.168.70.103) by vsmtp12.tin.it (7.0.027) id 40B33B8700DEB1A2 for freebsd-hackers@freebsd.org; Fri, 13 Aug 2004 03:52:17 +0200 Received: from [192.168.70.181] by ims3a.cp.tin.it with HTTP; Fri, 13 Aug 2004 03:52:17 +0200 Date: Fri, 13 Aug 2004 03:52:17 +0200 Message-ID: <4119722900001B0D@ims3a.cp.tin.it> From: gerarra@tin.it To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable Subject: Interrupt 0x80 handling X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2004 01:52:18 -0000 Hi, giving a look to interrupt 0x80 handling code (i386/i386/exception.s), I'= ve met FAKE_MCOUNT/MEXITCOUNT system. FAKE_MCOUNT in the end calls _mcount (libkern/mcount.c) function which seems to be used for profiling purposes= IMHO. It seems (reading comments in sys/gmon.h) that sysctl could be used= to manage syscall profiling (kernel profiling?): Somebody can confirm tha= t or I've misunderstood? I would like to know another thing too: why interr= upt 0x80 handler is implemented through a trap gate? An interrupt gate could not be more logical? thanks for answers, cheers rookie