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


Groups > linux.kernel > #1600086 > unrolled thread

[PATCH] perf report: setup elide when siwtch to another event in by tab key

Started bychangbin.du@intel.com
First post2017-03-14 08:50 +0100
Last post2017-03-14 08:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] perf report: setup elide when siwtch to another event in by tab key changbin.du@intel.com - 2017-03-14 08:50 +0100

#1600086 — [PATCH] perf report: setup elide when siwtch to another event in by tab key

Fromchangbin.du@intel.com
Date2017-03-14 08:50 +0100
Subject[PATCH] perf report: setup elide when siwtch to another event in by tab key
Message-ID<tkPns-5fN-21@gated-at.bofh.it>
From: Changbin Du <changbin.du@intel.com>

When we zoom into a column, that column is elided. But this should apply
to another event browser window after event switch by tab key. We need
setup elide corresponding to new event.

Signed-off-by: Changbin Du <changbin.du@intel.com>
---
 tools/perf/ui/browsers/hists.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c
index ca777dc..42239ed 100644
--- a/tools/perf/ui/browsers/hists.c
+++ b/tools/perf/ui/browsers/hists.c
@@ -2846,6 +2846,11 @@ static int perf_evsel__hists_browse(struct perf_evlist *evlist, struct perf_evse
 	if (browser == NULL)
 		return -1;
 
+	/* setup elide in case we are siwtching to another event in by tab */
+	perf_hpp__set_elide(HISTC_DSO, hists->dso_filter);
+	perf_hpp__set_elide(HISTC_SOCKET, hists->socket_filter);
+	perf_hpp__set_elide(HISTC_THREAD, hists->thread_filter);
+
 	/* reset abort key so that it can get Ctrl-C as a key */
 	SLang_reset_tty();
 	SLang_init_tty(0, 0, 0);
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web