Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Apr 2002 22:47:19 -0400 (EDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Joshua Goodall <joshua@roughtrade.net>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: kernel backtrace of sleeping processes
Message-ID:  <Pine.NEB.3.96L.1020421224638.91313H-100000@fledge.watson.org>
In-Reply-To: <20020422020902.GB86692@roughtrade.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 22 Apr 2002, Joshua Goodall wrote:

> In a remote kgdb, I have struct proc * for several processes that
> are sleeping and I want the kernel backtraces for them. To illustrate:
> 
> (kgdb) set var $p201 = allproc.lh_first->p_list.le_next->p_list.le_next
> (kgdb) print $p201->p_pid
> $12 = 201
> (kgdb) print $p201->p_xxthread.td_wmesg
> $13 = 0xc0247174 "select"
> 
> Now I want a (kernel) backtrace on this; given that I have $p201,
> how can I select the appropriate stack frame?
> 
> (recent -current on i386)

In recent -CURRENT, you can just use

  trace <pid>

or

  trace <addressofstack>

I have to say that since that since this feature was introduced, life has
become a *lot* easier :-).

Robert N M Watson             FreeBSD Core Team, TrustedBSD Project
robert@fledge.watson.org      NAI Labs, Safeport Network Services



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1020421224638.91313H-100000>