lkml.org 
[lkml]   [2008]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ftrace: add an fsync tracer
2008/11/6 Peter Zijlstra <peterz@infradead.org>:
> Please work on getting something like a syscall tracer, or lttng like
> event tracer.
>
> Both of those should be able to find such badness, but are also able to
> diagnose many more issues.


BTW. Why not adding a kind of tracer_ctrl callback on the
struct_tracer? This way we could add some custom
options on the iter_ctrl file that could be transmitted to the current_tracer.

For example considering a syscall tracer.
By default if we don't write anything on iter_ctrl, it traces all
syscalls. But if we do:
echo fsync > iter_ctrl
Only the fsync call will be traced (unused tracepoint would be disabled).

A tracer just have to implement this new callback and transmit the
options it support.


\
 
 \ /
  Last update: 2008-11-06 14:31    [W:0.063 / U:23.712 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site