| Date | Tue, 05 May 2009 11:31:24 -0700 | From | Corey Ashford <> | Subject | Re: [PATCH 3/7] perf_counter: ioctl(PERF_COUNTER_IOC_RESET) |
| |
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@us.ibm.com
|