Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934774AbcJ0Apy (ORCPT ); Wed, 26 Oct 2016 20:45:54 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:33193 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932702AbcJ0Apu (ORCPT ); Wed, 26 Oct 2016 20:45:50 -0400 Subject: Re: Scrolling down broken with "perf top --hierarchy" To: Namhyung Kim References: <20161006163333.GC308@x4> <20161007011753.GA31113@sejong> <20161007035118.GA308@x4> <20161007042218.GE31113@sejong> <20161007043229.GB308@x4> <20161007045357.GF31113@sejong> <20161007143545.GI4809@kernel.org> <20161024051122.GB7720@sejong> <1a18335e-6027-1645-5f53-d56c057d780f@gmail.com> <20161024163749.GA17995@danjae.aot.lge.com> Cc: Arnaldo Carvalho de Melo , Markus Trippelsdorf , linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Jiri Olsa From: Taeung Song Message-ID: <41b3567a-1157-b409-e64a-674174a0a345@gmail.com> Date: Thu, 27 Oct 2016 09:45:44 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20161024163749.GA17995@danjae.aot.lge.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4157 Lines: 102 Sorry for late reply, Namhyung On 10/25/2016 01:37 AM, Namhyung Kim wrote: > Hi Taeung, > > On Mon, Oct 24, 2016 at 07:10:24PM +0900, Taeung Song wrote: >> Hi, Namhyung and Arnaldo :) >> >> On 10/24/2016 02:11 PM, Namhyung Kim wrote: >>> Hi Arnaldo, >>> >>> Sorry for late reply. >>> >>> On Fri, Oct 07, 2016 at 11:35:45AM -0300, Arnaldo Carvalho de Melo wrote: >>>> Em Fri, Oct 07, 2016 at 01:53:57PM +0900, Namhyung Kim escreveu: >>>>> Cc-ing perf maintainers, >>>>> >>>>> On Fri, Oct 07, 2016 at 06:32:29AM +0200, Markus Trippelsdorf wrote: >>>>>> On 2016.10.07 at 13:22 +0900, Namhyung Kim wrote: >>>>>>> On Fri, Oct 07, 2016 at 05:51:18AM +0200, Markus Trippelsdorf wrote: >>>>>>>> On 2016.10.07 at 10:17 +0900, Namhyung Kim wrote: >>>>>>>>> On Thu, Oct 06, 2016 at 06:33:33PM +0200, Markus Trippelsdorf wrote: >>>>>>>>>> Scrolling down is broken when using "perf top --hierarchy". >>>>>>>>>> When it starts up everything is OK and one can scroll up and down to all >>>>>>>>>> entries. But as further and further new entries get added to the list, >>>>>>>>>> scrolling down is blocked (at the position of the last entry that was >>>>>>>>>> shown directly after startup). >>>>>>>>> >>>>>>>>> I think below patch will fix the problem. Please check. >>>>>>>> >>>>>>>> Yes. It works fine now. Many thanks. >>>>>>> >>>>>>> Good. Can I add your Tested-by then? >>>>>> >>>>>> Sure. >>>>> >>>>> Ok, I'll send a formal patch with it. >>>>> >>>>>> >>>>>> (And in the long run you should think of making "perf top --hierarchy" >>>>>> the default for perf top, because it gives a much better (uncluttered) >>>>>> overview of what is going on.) >>>>> >>>>> I think it's a matter of taste. Some people prefer to see the top >>>>> single function or something (i.e. current behavior) while others >>>>> prefer to see a higher-level view. >>>>> >>>>> But we can think again about the default at least for perf-top. I >>>>> worried about changing default behavior because last time we did it >>>>> for children mode many people complained about it. But I do think the >>>>> hierarchy mode is useful for many people though. >>>> >>>> So, I think in such cases we could experiment with asking the user about >>>> switching to the new mode by showing a popup message telling what it is >>>> about, if the user says "yes, I want to try it" switch to it and if >>>> another hotkey is pressed later, write what was chosen (yes, switch to >>>> this new mode, no, I don't like it, don't pester me about it anymore) to >>>> its ~/.perfconfig file so that next time it goes straight to this new >>>> mode, else don't ask the user again and keep using whatever mode was >>>> there already. >>>> >>>> What do you think? >>> >>> I think it's a flexible way to set the default behavior while it seems >>> like a little bit complicated for implementation. Also I think it's >>> better to popup another dialog at the end and asks for comfirmation >>> (but it might not be appropriate for --stdio). >>> >>> And to do that, we need to have a (programmable) way of dealing with >>> the configs. >>> >>> Taeung, is there an update on your config patchset (especially for >>> write support)? >>> >> >> Is related this link with what you said ? >> https://lkml.org/lkml/2016/1/11/495 > > Yep, that kind of thing. > >> >> Yes, the config patchset would be need to be updated. >> Because the config patchset which has 'write' feature >> don't use a recent 'struct perf_config_set' so I should change it >> to use 'perf_config_set' like show_config() of builtin-config.c:36. >> >> Do you need write support of perf-config command ? >> If this feature is more necessary than a recent patchset about default >> config array https://lkml.org/lkml/2016/9/5/17, >> I'd remake config patchset for getting and setting features first. :) > > What I need is a way to add a config item with specific value. Maybe > I can just append a line into a config file, but it needs to check > possible conflict somehow. So I think it needs to process existing > config items properly and update with the new value. > I got it. Understood what you said! I'll send a patchset for this. :) Thanks, Taeung