diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2014-07-14 06:02:51 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-07-16 16:57:36 -0400 |
commit | 919d86d3a3109d7d4f0d7347f34711ee2f8e6609 (patch) | |
tree | a03b196cfb5db134cb4209d7d24acf493823faae /tools/perf/util/session.h | |
parent | 9c00a81b6aafc4ed375a43e7a54e6cf2d720c7c6 (diff) |
perf session: Flag if the event stream is entirely in memory
Flag if the event stream is a file that has been mmapped in one go.
This is useful, for example, if a tool needs to keep an event for later
reference. If the new flag is set, a pointer to the event can be
retained, otherwise the event must be copied.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1405332185-4050-28-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/session.h')
-rw-r--r-- | tools/perf/util/session.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h index 3140f8ae6148..0321013bd9fd 100644 --- a/tools/perf/util/session.h +++ b/tools/perf/util/session.h | |||
@@ -36,6 +36,9 @@ struct perf_session { | |||
36 | struct trace_event tevent; | 36 | struct trace_event tevent; |
37 | struct events_stats stats; | 37 | struct events_stats stats; |
38 | bool repipe; | 38 | bool repipe; |
39 | bool one_mmap; | ||
40 | void *one_mmap_addr; | ||
41 | u64 one_mmap_offset; | ||
39 | struct ordered_samples ordered_samples; | 42 | struct ordered_samples ordered_samples; |
40 | struct perf_data_file *file; | 43 | struct perf_data_file *file; |
41 | }; | 44 | }; |