summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/ordered-events.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2014-06-05 11:00:20 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-08-12 17:03:01 +0200
commit94786b67b5f4577c16486e8eb10ff045e59f80ef (patch)
treef3d0bfa3496ebfdf82bd260f01393fd63df8af35 /tools/perf/util/ordered-events.h
parentperf tools: Add perf_config_u64 function (diff)
downloadlinux-94786b67b5f4577c16486e8eb10ff045e59f80ef.tar.xz
linux-94786b67b5f4577c16486e8eb10ff045e59f80ef.zip
perf tools: Add report.queue-size config file option
Adding report.queue-size config file option to setup the maximum allocation size for session's struct ordered_events object. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Acked-by: David Ahern <dsahern@gmail.com> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jean Pihet <jean.pihet@linaro.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/n/tip-lm42mbpu0cwljpyy8vw5y26n@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/ordered-events.h')
-rw-r--r--tools/perf/util/ordered-events.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/util/ordered-events.h b/tools/perf/util/ordered-events.h
index 6036bd657073..2ce847fb48a5 100644
--- a/tools/perf/util/ordered-events.h
+++ b/tools/perf/util/ordered-events.h
@@ -40,4 +40,10 @@ int ordered_events__flush(struct perf_session *s, struct perf_tool *tool,
enum oe_flush how);
void ordered_events__init(struct ordered_events *oe);
void ordered_events__free(struct ordered_events *oe);
+
+static inline
+void ordered_events__set_alloc_size(struct ordered_events *oe, u64 size)
+{
+ oe->max_alloc_size = size;
+}
#endif /* __ORDERED_EVENTS_H */