diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-10-06 23:21:26 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-10-07 10:36:10 +0400 |
commit | b209aa1f83964d49a332a7b6b818ebede5cdc6ef (patch) | |
tree | 65899a686eedd374d0524a0812273bdeac5f08a3 /tools/perf/util/trace-event.h | |
parent | 42e59d7d19dc4b49feab2a860fd9a8ca3248c833 (diff) | |
download | linux-b209aa1f83964d49a332a7b6b818ebede5cdc6ef.tar.xz |
perf tools: Start the perf.data mapping at data offset in perf trace
Currently, we are mapping perf.data in the beginning of the file
and use the data offset as a buffer offset.
This may exceed the mapping area if the data offset is upper than
page_size * mmap_window and result in a page fault (thing that
happen if we merge trace.info in perf.data).
Instead, let's start the mapping in the page that matches our data
offset.
v2: Drop a junk from another patch (trace_report() removal)
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <1254856886-10348-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/trace-event.h')
0 files changed, 0 insertions, 0 deletions