Ktrace'ing kernel threads

Shrikanth Kamath shrikanth07 at gmail.com
Mon Feb 15 11:46:15 UTC 2010


Can ktrace trace another kernel thread which has roughly the semantics as
below, right now it
does not hit any of the designated interesting points that ktrace is built
for, but what if I could define those,
will ktrace still allow tracing another kernel thread?

thread(client_info)
{
    ...
    ...
    build_msg(client_info);  /* this will malloc a mbuf and fill the data in
it */
    ...
    sosend(client_info);
}

I want to time the entry/return of build_msg, and the time sosend, dump
client_info (some specific fields).


More information about the freebsd-hackers mailing list