Date: Mon, 16 Sep 2002 15:46:27 -0400 (EDT) From: John Baldwin <jhb@FreeBSD.org> To: Poul-Henning Kamp <phk@critter.freebsd.dk> Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, "David O'Brien" <obrien@FreeBSD.org>, Josef Karthauser <joe@FreeBSD.org>, Bruce Evans <bde@zeta.org.au> Subject: Re: cvs commit: src/sys/kern kern_timeout.c Message-ID: <XFMail.20020916154627.jhb@FreeBSD.org> In-Reply-To: <13645.1032171121@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> <>< 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020916154627.jhb>