Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1737645 > unrolled thread

[tip:perf/core] perf stat: Update walltime_nsecs_stats in interval mode

Started bytip-bot for Andi Kleen <tipbot@zytor.com>
First post2017-09-22 18:40 +0200
Last post2017-09-22 18:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [tip:perf/core] perf stat: Update walltime_nsecs_stats in interval  mode tip-bot for Andi Kleen <tipbot@zytor.com> - 2017-09-22 18:40 +0200

#1737645 — [tip:perf/core] perf stat: Update walltime_nsecs_stats in interval mode

Fromtip-bot for Andi Kleen <tipbot@zytor.com>
Date2017-09-22 18:40 +0200
Subject[tip:perf/core] perf stat: Update walltime_nsecs_stats in interval mode
Message-ID<usz9F-8nF-53@gated-at.bofh.it>
Commit-ID:  b90f1333ef08d2a497ae239798868b046f4e3a97
Gitweb:     http://git.kernel.org/tip/b90f1333ef08d2a497ae239798868b046f4e3a97
Author:     Andi Kleen <ak@linux.intel.com>
AuthorDate: Thu, 31 Aug 2017 12:40:36 -0700
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Wed, 13 Sep 2017 09:49:14 -0300

perf stat: Update walltime_nsecs_stats in interval mode

Some metrics (like GFLOPs) need walltime_nsecs_stats for each interval.
Compute it for each interval instead of only at the end.

Pointed out by Jiri.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20170831194036.30146-12-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/builtin-stat.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index 855890e..88f1d5f 100644
--- a/tools/perf/builtin-stat.c
+++ b/tools/perf/builtin-stat.c
@@ -415,6 +415,8 @@ static void process_interval(void)
 			pr_err("failed to write stat round event\n");
 	}
 
+	init_stats(&walltime_nsecs_stats);
+	update_stats(&walltime_nsecs_stats, stat_config.interval * 1000000);
 	print_counters(&rs, 0, NULL);
 }
 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web