Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Rob Kirkbride <rk-comp@rk-comp.demon.co.uk>
Subject: Kernel debugger
Date: 1997/05/21	[thread overview]
Message-ID: <4dEahEAqLygzEwyc@RK-COMP.DEMON.CO.UK> (raw)


I have been trying with not much success to write an extention to kdbx
on osf3.2g to show me details of the thread map.

I have tried calling the various read_sym, read_sym_val etc. calls using
"thread", "thread_map" etc. Sometimes the calls work but when I try and
use a read_field_vals (which apparently works) the fields that is
returns just appear to be rubbish.
I am sure I missing something / doing something daft but I can't fathom
it and unfortunately the examples in the kernel debugging manual are a
bit spartan.

One of my ultimate aims is to print out the stack pointer for each
thread within a given process which I can use to tune the stack sizes.
If there is an easier way of doing this I would be interested to know,
but I would also like to able to read the thread map within a kernel
extension if possible.

I realise I can do a certain amount by using a thread_action from the
command line, but I would like to do some analysis and it would be
useful to have this in a C program.

Any help would be much appreciated,

Rob
-- 
Rob Kirkbride
rob@rk-comp.demon.co.uk



                 reply	other threads:[~1997-05-21  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox