From owner-freebsd-hackers Thu Nov 8 8:23:56 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.teledis.be (mail.teledis.be [217.117.32.52]) by hub.freebsd.org (Postfix) with ESMTP id 2554337B41C for ; Thu, 8 Nov 2001 08:23:53 -0800 (PST) Received: from 217-117-54-102.teledisnet.be ([217.117.54.102]) by mail.teledis.be (Netscape Messaging Server 4.15) with ESMTP id GMHPJS00.Y9A for ; Thu, 8 Nov 2001 17:23:52 +0100 Subject: Measuring interrupt latency From: Sansonetti Laurent To: freebsd-hackers@freebsd.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.13 (Preview Release) Date: 08 Nov 2001 17:23:41 +0000 Message-Id: <1005240221.454.13.camel@teneriel.teledisnet.be> Mime-Version: 1.0 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi hackers, I have to measure ISR [*] under FreeBSD, so I'm building a small KLD which is hijacking a misc driver with timestamps... Is there a way to simulate a hardware irq from kernel land ? I saw swi_dispatcher() in /sys/kern/kern_intr.c, is this right ? In fact I have to start hardware irq by hand because I need to take timestamp at this moment.. Anyone have already measured ISR for FreeBSD ? Is that way correct ? Thanks in advance ! [*] : ISR : Interrupt Service Routine : time interval between hardware irq and first instruction of service routine for this irq. -- Sansonetti Laurent - http://lrz.linuxbe.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message