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


Groups > linux.kernel > #1624899 > unrolled thread

[PATCH 3/3] perf report: fill per-callchain symbol annotation histograms

Started byAlexis Berlemont <alexis.berlemont@gmail.com>
First post2017-04-18 01:10 +0200
Last post2017-04-18 01:10 +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

  [PATCH 3/3] perf report: fill per-callchain symbol annotation histograms Alexis Berlemont <alexis.berlemont@gmail.com> - 2017-04-18 01:10 +0200

#1624899 — [PATCH 3/3] perf report: fill per-callchain symbol annotation histograms

FromAlexis Berlemont <alexis.berlemont@gmail.com>
Date2017-04-18 01:10 +0200
Subject[PATCH 3/3] perf report: fill per-callchain symbol annotation histograms
Message-ID<txnWp-6TT-3@gated-at.bofh.it>
The per-callchain histograms must be fed at some points with the
profiling samples. A solution is to fill them right after having filled
the per-symbol ones: in the callback hist_iter__report_callback.

Signed-off-by: Alexis Berlemont <alexis.berlemont@gmail.com>
---
 tools/perf/builtin-report.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index c18158b83eb1..d825a599d4b4 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -136,6 +136,14 @@ static int hist_iter__report_callback(struct hist_entry_iter *iter,
 		if (single)
 			err = hist_entry__inc_addr_samples(he, evsel->idx,
 							   al->addr);
+		if (err == 0) {
+			struct callchain_cursor *cursor = &callchain_cursor;
+
+			err = hist_entry_cxt__inc_addr_samples(he,
+							       evsel->idx,
+							       al->addr,
+							       cursor);
+		}
 	} else {
 		err = hist_entry__inc_addr_samples(he, evsel->idx, al->addr);
 	}
-- 
2.12.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web