Re: A question about how to get trace record generated by KERNEL_DEBUG(...).
Re: A question about how to get trace record generated by KERNEL_DEBUG(...).
- Subject: Re: A question about how to get trace record generated by KERNEL_DEBUG(...).
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Tue, 6 Sep 2011 09:51:21 +0100
On 6 Sep 2011, at 08:54, Sid Moore wrote:
> I wrote a demo program, for fetching those trace record from kernel
> via sysctl(3), but It doesn't work, no trace record with debugid
> matched 0x0301XXXX. :-(
I wrote code to do this years ago, but I've completely forgotten how it works (-: I do remember cribbing lots of it from the fs_usage tool, so that might be a place to start.
<http://www.opensource.apple.com/source/system_cmds/system_cmds-541/fs_usage.tproj/>
These days I just DTrace <x-man-page://1/dtrace> to get this sort of information; it's so much nicer.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden