diff options
author | Kan Liang <kan.liang@linux.intel.com> | 2022-09-01 16:09:55 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-09-06 12:33:01 +0300 |
commit | 47a3aeb39e8dc099ae431cd8b46bdf218f5511b2 (patch) | |
tree | 4ee142656104b870e7537c4d354d87f852952a38 /kernel/events | |
parent | 3aac580d5cc3001ca1627725b3b61edb529f341d (diff) | |
download | linux-47a3aeb39e8dc099ae431cd8b46bdf218f5511b2.tar.xz |
perf/x86/intel/pebs: Fix PEBS timestamps overwritten
The PEBS TSC-based timestamps do not appear correctly in the final
perf.data output file from perf record.
The data->time field setup by PEBS in the setup_pebs_fixed_sample_data()
is later overwritten by perf_events generic code in
perf_prepare_sample(). There is an ordering problem.
Set the sample flags when the data->time is updated by PEBS.
The data->time field will not be overwritten anymore.
Reported-by: Andreas Kogler <andreas.kogler.0x@gmail.com>
Reported-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220901130959.1285717-3-kan.liang@linux.intel.com
Diffstat (limited to 'kernel/events')
0 files changed, 0 insertions, 0 deletions