Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1332123
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/1] Perf: fix overwritten of free running PEBSv3 timestamp |
| Date | 2016-02-11 16:00 +0100 |
| Message-ID | <r10ST-1KU-19@gated-at.bofh.it> (permalink) |
| References | <r0LAu-8oD-17@gated-at.bofh.it> <r0LAu-8oD-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Feb 10, 2016 at 05:38:02PM -0500, Tong Zhang wrote: > commit a7b58d211ba18c9175b139e18b68c86a6bcc3c3f introduced feature of > timestamp on free running PEBSv3, however, the timestamp is later > overwritten, which makes the effort in vain. > > This patch fixed this problem by detecting whether timestamp is provided. > > Signed-off-by: Tong Zhang <ztong@vt.edu> > --- > include/linux/perf_event.h | 1 + > kernel/events/core.c | 45 +++++++++++++++++++++++++++++++++------------ > kernel/events/ring_buffer.c | 4 +++- > 3 files changed, 37 insertions(+), 13 deletions(-) > > diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h > index f9828a4..12d7b95 100644 > --- a/include/linux/perf_event.h > +++ b/include/linux/perf_event.h > @@ -815,6 +815,7 @@ static inline void perf_sample_data_init(struct perf_sample_data *data, > data->weight = 0; > data->data_src.val = PERF_MEM_NA; > data->txn = 0; > + data->time = 0; > } Argh, you just touched a new cacheline and made _every_ single event slower.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/1] Perf: fix overwritten of free running PEBSv3 timestamp Tong Zhang <ztong@vt.edu> - 2016-02-10 23:40 +0100
Re: [PATCH 1/1] Perf: fix overwritten of free running PEBSv3 timestamp Peter Zijlstra <peterz@infradead.org> - 2016-02-11 16:00 +0100
Re: [PATCH 1/1] Perf: fix overwritten of free running PEBSv3 timestamp Tong Zhang <ztong@vt.edu> - 2016-02-11 17:40 +0100
Re: [PATCH 1/1] Perf: fix overwritten of free running PEBSv3 timestamp Peter Zijlstra <peterz@infradead.org> - 2016-02-11 18:30 +0100
csiph-web