Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Feb 2003 18:18:47 -0800 (PST)
From:      Julian Elischer <julian@elischer.org>
To:        FreeBSD current users <current@freebsd.org>
Subject:   question on profiling code
Message-ID:  <Pine.BSF.4.21.0302161812280.99373-100000@InterJet.elischer.org>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0302161812280.99373-100000>