Subject: Re: ktr from freebsd
To: Andrey Petrov <petrov@NetBSD.org>
From: Andrew Brown <atatat@atatdot.net>
List: tech-kern
Date: 04/23/2004 19:48:27
On Fri, Apr 23, 2004 at 11:51:36AM -0700, Andrey Petrov wrote:
>On Fri, Apr 23, 2004 at 12:43:17PM +1000, Simon Burge wrote:
>> - Adding a sysctl to return the trace buffer would be nice (remember
>> 64-bit alignment so there's no compat32 issues - sparc64 is a good
>> place to test this :-).
>>
>> - What did FreeBSD have in terms of "sysctl control"? A simple
>> "enable/disable" tracing button would be nice.
>
>FreeBSD has an ability to save trace to a file, so if kern_ktr will go
>to tree I restore/port that part too. sysctl lets you to select
>flow to capture (using mask), and to control over storing trace to file.
>Getting trace by sysctl: information saved in trace point is pointer
>to format string and six parameters, so easiest(and kernel image
>independant) would be printing it and returning in string.
well...it's not like it's hard to make sysctl do all kinds of things
these days... ;-)
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
werdna@squooshy.com * "information is power -- share the wealth."