mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
perf tools: Allow out of order messages in forced flush
In forced flush (OE_FLUSH__HALF) we break the rules of the flush timestamp via PERF_RECORD_FINISHED_ROUND event, so we could get out of order event. Do not force error in this case plus changing the output warning to use WARN_ONCE. 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-8q8794a8nlmpd1u8xrqmcyd2@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
cee3ab9caa
commit
b0a45203a7
3 changed files with 15 additions and 3 deletions
|
@ -169,6 +169,7 @@ int ordered_events__flush(struct perf_session *s, struct perf_tool *tool,
|
|||
{
|
||||
struct ordered_events *oe = &s->ordered_events;
|
||||
static const char * const str[] = {
|
||||
"NONE",
|
||||
"FINAL",
|
||||
"ROUND",
|
||||
"HALF ",
|
||||
|
@ -198,6 +199,7 @@ int ordered_events__flush(struct perf_session *s, struct perf_tool *tool,
|
|||
}
|
||||
|
||||
case OE_FLUSH__ROUND:
|
||||
case OE_FLUSH__NONE:
|
||||
default:
|
||||
break;
|
||||
};
|
||||
|
@ -211,6 +213,8 @@ int ordered_events__flush(struct perf_session *s, struct perf_tool *tool,
|
|||
if (!err) {
|
||||
if (how == OE_FLUSH__ROUND)
|
||||
oe->next_flush = oe->max_timestamp;
|
||||
|
||||
oe->last_flush_type = how;
|
||||
}
|
||||
|
||||
pr_oe_time(oe->next_flush, "next_flush - ordered_events__flush POST %s, nr_events %u\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue