On Mon, Apr 07, 2008 at 02:36:20AM -0700, Ben Rockwood wrote:

> I want to go a lot deeper with my tracing of MySQL and to do so I want
> to look into MySQL Thread Descriptors (class THD).  Inside is a great
> bulk of information utilized by a great many of the core functions
> within MySQL... I really want to get in there.

I meant to bring this up at the conference but never got around to it.

For other, rather prosaic, reasons, I hacked up 'ctftoh' a while ago.
It basically walks the CTF of a given binary and outputs a C .h file.

It occurred to me later that this could be used pretty easily for poor
man's userspace CTF with DTrace. You'd just pass in the binary (mysql,
say) and include the output in a DTrace script.

It's obviously far away from what we'd really like for userspace CTF 
(since you still don't get a direct args[], or auto-copyin, etc.) but I
think it'd still be useful for situations like yours.

It needs finishing though (fleshing out the parsing a little more, and
ordering the output so it will compile). Anyone interested?

regards
john
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to