Thomas Gleixner wrote:
> What means "more for defining intervals" ? Which intervals (period in
> ms)? What are the timers used for ?
The user can write a block of code that they would like to be executed
repeatedly in fixed intervals. A trivial example might look like this:
probe timer.ms(10) { flush_data(); }
This would flush the data every 10ms.
A example of polling might be:
probe timer.ms(1) { log(scheduler_queue_length()); }
I hope this answers your questions...
Josh
On Tue, 2006-03-14 at 14:34 -0800, Stone, Joshua I wrote:
> Thomas Gleixner wrote:
> > What means "more for defining intervals" ? Which intervals (period in
> > ms)? What are the timers used for ?
>
> The user can write a block of code that they would like to be executed
> repeatedly in fixed intervals. A trivial example might look like this:
> probe timer.ms(10) { flush_data(); }
>
> This would flush the data every 10ms.
>
> A example of polling might be:
> probe timer.ms(1) { log(scheduler_queue_length()); }
>
> I hope this answers your questions...
Not all all.
I have no clue where the block of code written by the user is executed
and why it needs exports. When a user writes code he can use the
existing userpsace interfaces, so why does the module need that
exports ?
tglx