Messages in this thread | | | Subject | Re: [PATCH] perf_events: fix time tracking in samples | From | Peter Zijlstra <> | Date | Wed, 20 Oct 2010 15:04:39 +0200 |
| |
On Wed, 2010-10-20 at 14:42 +0200, Stephane Eranian wrote: > It may be better to try another approach just for PERF_SAMPLE_READ > with its own version of ctx->time. What about if on event_sched_in() you > were snapshotting ctx->time. Then in the perf_output_read_event(), you'd > have to compute the time delta and add it to this private version of > ctx->time and store that in the sample.
Right, that might work.
| |