Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Dec 2011 16:00:15 +0200
From:      Andriy Gapon <avg@FreeBSD.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        mdf@FreeBSD.org, "O. Hartmann" <ohartman@zedat.fu-berlin.de>, freebsd-current@FreeBSD.org, Robert Watson <rwatson@FreeBSD.org>
Subject:   Re: Sleeping thread (tid 100033, pid 16): panic in FreeBSD 10.0-CURRENT/amd64 r228662
Message-ID:  <4EF094EF.6000005@FreeBSD.org>
In-Reply-To: <201112200852.23300.jhb@freebsd.org>
References:  <4EED2F1C.2060409@zedat.fu-berlin.de> <20111217204514.2fa77ea2@kan.dyndns.org> <CAMBSHm_MHAhTMafuHkMh_CAdOcU4zgJUgbzTNhLvajDFSp45UA@mail.gmail.com> <201112200852.23300.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
on 20/12/2011 15:52 John Baldwin said the following:
> -#ifdef DDB
> -			db_trace_thread(td, -1);
> +#ifdef STACK
> +			stack_zero(&st);
> +			stack_save_td(&st, td);
> +			stack_print_ddb(&st);
>  #endif

This leads to an idea - what about an umbrella stack_print() that would call the
best stack printing routine, if any, based on their availabilities (STACK, DDB,
etc?).

P.S. Sorry to hijack the thread.

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EF094EF.6000005>