From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15060 invoked by alias); 12 Feb 2008 12:23:32 -0000 Received: (qmail 15052 invoked by uid 22791); 12 Feb 2008 12:23:32 -0000 X-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 12 Feb 2008 12:23:14 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m1CCNAY7022096; Tue, 12 Feb 2008 07:23:10 -0500 Received: from pobox-2.corp.redhat.com (pobox-2.corp.redhat.com [10.11.255.15]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m1CCNAd4009337; Tue, 12 Feb 2008 07:23:10 -0500 Received: from localhost.localdomain (vpn-14-139.rdu.redhat.com [10.11.14.139]) by pobox-2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m1CCN9Dw016402; Tue, 12 Feb 2008 07:23:09 -0500 Message-ID: <47B18FA6.3090507@redhat.com> Date: Tue, 12 Feb 2008 12:23:00 -0000 From: Phil Muldoon User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: Mark Wielaard CC: frysk Subject: Re: a simpler logger [?] References: <475976DF.6070302@redhat.com> <4766D650.6080102@redhat.com> <47B09909.4070707@redhat.com> <1202818497.3378.8.camel@dijkstra.wildebeest.org> In-Reply-To: <1202818497.3378.8.camel@dijkstra.wildebeest.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00061.txt.bz2 Mark Wielaard wrote: > Hi, > > While helping Phil figuring out what part of his code was called (over > and over again) from where we came up with the following small extension > of the rsl: > This is useful because I can now see what is calling the function, from the rsl log call: fine.log(this,"getAuxv()",fine.caller()); produces (from an actual log output) below. 0 00:00:00.086 [{frysk.proc.dead.LinuxCoreProc@2f8ad3b5,pid=18314,state=dead}]: getAuxv() "frysk.dwfl.DwflFactory.VDSOAddressLow(fstack)" As fine.caller() is an optional call (you have to supply it in the arguments), the overhead of the Throwable can be managed by the programmer. Personally I find it immensely useful to detect the origin of a call. I would like to see it the Log code. Regards Phil