From owner-freebsd-arch@FreeBSD.ORG Mon Jan 22 10:22:33 2007 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2756A16A404 for ; Mon, 22 Jan 2007 10:22:33 +0000 (UTC) (envelope-from ivoras@fer.hr) Received: from lara.cc.fer.hr (lara.cc.fer.hr [161.53.72.113]) by mx1.freebsd.org (Postfix) with ESMTP id A6EE213C45A for ; Mon, 22 Jan 2007 10:22:32 +0000 (UTC) (envelope-from ivoras@fer.hr) Received: from [127.0.0.1] (localhost.cc.fer.hr [127.0.0.1]) by lara.cc.fer.hr (8.13.8/8.13.8) with ESMTP id l0MAMUkb027892; Mon, 22 Jan 2007 11:22:30 +0100 (CET) (envelope-from ivoras@fer.hr) Message-ID: <45B49066.2030100@fer.hr> Date: Mon, 22 Jan 2007 11:22:30 +0100 From: Ivan Voras User-Agent: Thunderbird 1.5.0.4 (X11/20060625) MIME-Version: 1.0 To: Peter Jeremy References: <20070121140019.A83688@xorpc.icir.org> <20070122084634.GH837@turion.vk2pj.dyndns.org> <45B48968.20506@fer.hr> <20070122101551.GJ837@turion.vk2pj.dyndns.org> In-Reply-To: <20070122101551.GJ837@turion.vk2pj.dyndns.org> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-arch@freebsd.org Subject: Re: bzero & bcopy alignment X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2007 10:22:33 -0000 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?