From owner-freebsd-current Sun Feb 16 18:18:52 2003 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 ABEA737B401 for ; Sun, 16 Feb 2003 18:18:51 -0800 (PST) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 216ED43F3F for ; Sun, 16 Feb 2003 18:18:51 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by sccrmhc01.attbi.com (sccrmhc01) with ESMTP id <2003021702184900100g3114e>; Mon, 17 Feb 2003 02:18:50 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id SAA07821 for ; Sun, 16 Feb 2003 18:18:49 -0800 (PST) Date: Sun, 16 Feb 2003 18:18:47 -0800 (PST) From: Julian Elischer To: FreeBSD current users Subject: question on profiling code Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 In addupc_intr, if the increment cannot be done immediatly, the addres to increment the count for is stored and the increment is done later at ast or userret() time... is there any reason that the address of the PC needs to be stored? why is the address from the frame at that time not useable? is it because the PC in the return frame may be hacked up for signals? They are going to quite a lot of trouble to save teh PC address between the original addupc_intr and the ast()/userret() There must be a reason, but I can't see it. (the values are stored in the struct uprof, associated with the process.) Julian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message