Hello

I have a perf API question.

When I run PERF_EVENT_IOC_RESET, all it resets is the event count.
It does not reset the PERF_FORMAT_TOTAL_TIME_ENABLED or
PERF_FORMAT_TOTAL_TIME_RUNNING values.

Is this expected?  It means if I'm trying to do multiplexing and want to 
reset the counts to zero, there's no way to reset the enabled/running 
values.

I suppose I can just close/reopen the events, or allocate some space to 
store the previous values, but that seems like unncessary overhead.



As an aside while I have your attention, can someone explain the 
difference between the "inherit" and the "inherit_stat" options in
perf.attr?  I can't seem to make a test case exhibit a difference, and
the events/core.c code in the kernel is a horrible wall of uncommented 
code that is nearly impossible to follow.

Thanks,

Vince
vweav...@eecs.utk.edu

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

Reply via email to