Messages in this thread | | | Date | Thu, 6 Nov 2008 14:28:34 +0100 | From | "Frédéric Weisbecker" <> | Subject | Re: [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.
| |