Re: perf_events: zero time running and enabled, but non-zero count

From: Ingo Molnar
Date: Fri Oct 23 2009 - 16:57:27 EST



* Corey Ashford <cjashfor@xxxxxxxxxxxxxxxxxx> wrote:

>> Btw., you might want to consider putting such testcases into a new
>> 'perf test' kind of utility (under tools/perf/builtin-test.c) that
>> does various tests such as reading a count and validating the
>> time-running/time-enabled values - so that we can see any bugs
>> directly.
>
> I'll see if I can put the test case in some sort of acceptable format
> like that. Maybe we can use this one test case as the starting point
> for builtin-test.c.

Yeah. Feel free to add just something minimal that solves your problem.
Others will add their testcases too i'm sure, once the basic command is
there.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/