Messages in this thread | | | Date | Mon, 20 Jul 2009 12:31:28 -0700 | From | Arjan van de Ven <> | Subject | Re: [PATCH] sched: Provide iowait counters |
| |
Peter Zijlstra wrote: > > It might be nice to put a tracepoint there as well, now if there was a > way to specify perf counter attributes in the TRACE_EVENT() magic so > that we can feed stuff into perf_tpcounter_event(). > > TP_perf_addr() -- defaults to 0 when not specified > TP_perf_count() -- defaults to 1 when not specified. > > Steve, Frederic, is there any way to make that happen? > > Failing that we could put an actual swcounter in there I suppose. > > That way we could profile applications based on IO-wait, which would be > cool.
it'd be nice if this was also a perfcounter event, no doubt about that (I already have some usages in mind).... but that'd be a separate patch.
| |