Date: Mon, 22 Jan 2007 11:22:30 +0100 From: Ivan Voras <ivoras@fer.hr> To: Peter Jeremy <peterjeremy@optushome.com.au> Cc: freebsd-arch@freebsd.org Subject: Re: bzero & bcopy alignment Message-ID: <45B49066.2030100@fer.hr> In-Reply-To: <20070122101551.GJ837@turion.vk2pj.dyndns.org> References: <ep0mlv$194$1@sea.gmane.org> <20070121140019.A83688@xorpc.icir.org> <ep0p8i$86q$1@sea.gmane.org> <20070122084634.GH837@turion.vk2pj.dyndns.org> <45B48968.20506@fer.hr> <20070122101551.GJ837@turion.vk2pj.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Peter Jeremy wrote: > On Mon, 2007-Jan-22 10:52:40 +0100, Ivan Voras wrote: >> Peter Jeremy wrote: >>> On Sun, 2007-Jan-21 23:25:14 +0100, Ivan Voras wrote: >>>> Any magic tricks to identify the caller of "current" function in the kernel? >>> On gcc: __builtin_return_address() >> Ok, this looks nice. Can I convert the result to something processable >> by addr2line? (in other words: is kernel relocated on load?) > > Yes and no (respectively) for the core kernel (kld's are relocated). Ok, so assuming the caller is in the kernel, the address is directly usable in addr2line?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45B49066.2030100>