From owner-cvs-all Mon Sep 16 12:47:16 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B9DF37B407 for ; Mon, 16 Sep 2002 12:47:15 -0700 (PDT) Received: from mail.speakeasy.net (mail17.speakeasy.net [216.254.0.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B0EB43E6A for ; Mon, 16 Sep 2002 12:47:14 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 24078 invoked from network); 16 Sep 2002 19:46:58 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail17.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 16 Sep 2002 19:46:58 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.5/8.12.5) with ESMTP id g8GJklBv055157; Mon, 16 Sep 2002 15:46:49 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <13645.1032171121@critter.freebsd.dk> Date: Mon, 16 Sep 2002 15:46:27 -0400 (EDT) From: John Baldwin To: Poul-Henning Kamp Subject: Re: cvs commit: src/sys/kern kern_timeout.c Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, "David O'Brien" , Josef Karthauser , Bruce Evans Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 16-Sep-2002 Poul-Henning Kamp wrote: > In message <20020916195344.S6593-100000@gamplex.bde.org>, Bruce Evans writes: > >>> > Sep 15 19:40:26 kernel: Expensive timeout(9) function: 0xc65dfc80(0xc659f000) 0.008711721 >>> > Sep 15 19:40:26 kernel: Expensive timeout(9) function: 0xc65dfc80(0xc659f000) 0.001068850 >> >>This is hard to interpret without the function names (or a full stack >>trace). > > Yes, but as far as I'm aware, we still don't have a print_backtrace(9) ? If you have ddb you can use code like this (from i386 stack trace code): sym = db_search_symbol(eip, DB_STGY_ANY, &offset); db_symbol_values(sym, &name, NULL); Where eip is the function pointer. You then have the name of the function in name. You can also invoke stack traces by calling db_stack_trace_cmd() with the right arguments. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message