Re: [PATCH 3/7] perf_counter: ioctl(PERF_COUNTER_IOC_RESET)

From: Corey Ashford
Date: Tue May 05 2009 - 14:31:36 EST


Hi Peter,

Peter Zijlstra wrote:

+static void perf_counter_reset(struct perf_counter *counter)
+{
+ atomic_set(&counter->count, 0);
+}
+


Thanks for posting a patch for this issue.

As Ingo said, I think the hardware counter needs to be reset as well as the value saved in the perf_counter struct.


Regards,

- Corey

Corey Ashford
Software Engineer
IBM Linux Technology Center, Linux Toolchain
cjashfor@xxxxxxxxxx


--
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/