diff options
author | Jiri Olsa <jolsa@kernel.org> | 2014-07-06 08:18:21 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-08-12 11:02:54 -0400 |
commit | 0a8cb85c200c4082ed7e57efd90dd9d18c8d40b6 (patch) | |
tree | 6e9bb61b2a8e10a9f86ed8c48da6cb84aa06fa0d /tools/perf/util/session.c | |
parent | 8affc2b8c27bfc2d6e70827b746f490b62c44eaa (diff) |
perf tools: Rename ordered_samples bool to ordered_events
The time ordering is generic for all kinds of events, so using generic
name 'ordered_events' for ordered_samples bool in perf_tool struct.
No functional change was intended.
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-07mrqzcuhsks9wfmxrzsvemz@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/session.c')
-rw-r--r-- | tools/perf/util/session.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 88dfef70c13d..a2c97ff1aa6a 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -104,9 +104,9 @@ struct perf_session *perf_session__new(struct perf_data_file *file, | |||
104 | } | 104 | } |
105 | 105 | ||
106 | if (tool && tool->ordering_requires_timestamps && | 106 | if (tool && tool->ordering_requires_timestamps && |
107 | tool->ordered_samples && !perf_evlist__sample_id_all(session->evlist)) { | 107 | tool->ordered_events && !perf_evlist__sample_id_all(session->evlist)) { |
108 | dump_printf("WARNING: No sample_id_all support, falling back to unordered processing\n"); | 108 | dump_printf("WARNING: No sample_id_all support, falling back to unordered processing\n"); |
109 | tool->ordered_samples = false; | 109 | tool->ordered_events = false; |
110 | } | 110 | } |
111 | 111 | ||
112 | return session; | 112 | return session; |
@@ -238,7 +238,7 @@ void perf_tool__fill_defaults(struct perf_tool *tool) | |||
238 | if (tool->build_id == NULL) | 238 | if (tool->build_id == NULL) |
239 | tool->build_id = process_finished_round_stub; | 239 | tool->build_id = process_finished_round_stub; |
240 | if (tool->finished_round == NULL) { | 240 | if (tool->finished_round == NULL) { |
241 | if (tool->ordered_samples) | 241 | if (tool->ordered_events) |
242 | tool->finished_round = process_finished_round; | 242 | tool->finished_round = process_finished_round; |
243 | else | 243 | else |
244 | tool->finished_round = process_finished_round_stub; | 244 | tool->finished_round = process_finished_round_stub; |
@@ -483,7 +483,7 @@ static int flush_sample_queue(struct perf_session *s, | |||
483 | struct ui_progress prog; | 483 | struct ui_progress prog; |
484 | int ret; | 484 | int ret; |
485 | 485 | ||
486 | if (!tool->ordered_samples || !limit) | 486 | if (!tool->ordered_events || !limit) |
487 | return 0; | 487 | return 0; |
488 | 488 | ||
489 | if (show_progress) | 489 | if (show_progress) |
@@ -1062,7 +1062,7 @@ static s64 perf_session__process_event(struct perf_session *session, | |||
1062 | if (ret) | 1062 | if (ret) |
1063 | return ret; | 1063 | return ret; |
1064 | 1064 | ||
1065 | if (tool->ordered_samples) { | 1065 | if (tool->ordered_events) { |
1066 | ret = perf_session_queue_event(session, event, &sample, | 1066 | ret = perf_session_queue_event(session, event, &sample, |
1067 | file_offset); | 1067 | file_offset); |
1068 | if (ret != -ETIME) | 1068 | if (ret != -ETIME) |