public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: changbin.du@intel.com
To: peterz@infradead.org, mingo@redhat.com, acme@kernel.org
Cc: linux-kernel@vger.kernel.org, Changbin Du <changbin.du@intel.com>
Subject: [PATCH] perf report: setup elide when siwtch to another event in by tab key
Date: Tue, 14 Mar 2017 15:46:52 +0800	[thread overview]
Message-ID: <20170314074652.26916-1-changbin.du@intel.com> (raw)

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

                 reply	other threads:[~2017-03-14  7:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170314074652.26916-1-changbin.du@intel.com \
    --to=changbin.du@intel.com \
    --cc=acme@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox