Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp342729imm; Fri, 3 Aug 2018 04:31:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfQMMNrC7++yXU89SqAjsaL9q548U2X9IJYzAbxmDJGYXWYstjxiF9tH3dBdekneQ9APIKM X-Received: by 2002:a62:1314:: with SMTP id b20-v6mr4075645pfj.230.1533295861017; Fri, 03 Aug 2018 04:31:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533295860; cv=none; d=google.com; s=arc-20160816; b=NTFBWoF+fMkYmlA4s6+y8XFDGivOybzk8c1YbirkKfXrHX3KHOEJVynZXbT/NcWuW+ dZiWES4mPwfVmkPO8C5EOo1L4wVUHxbNzgJMlWA06h5wb1kTU3dz99dQxhQRbnSe4PTm JdzrmdKmIOnAcXOOWMI6YG1pzF+AdgV7ZHUPctYkXyrADDZ8dcnJyexA8I29DUYeHGmF Rs5FCYMTMkYHoVOr8e1hK1bKncbWESqwaku+byWItKtxPyYwWBVs9n1Pz3lc9Gpf1YkF pA27UCW6NWdyTZfNLZiU1ibmDQJRF30JtFBenqGxvQkKwXnt9yRRkk7aHH3Z068DRcFv Vbkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Uj40ghYphWyAs6bl1Qaun4q4C998fiJxR0z7odj1te4=; b=BgI6cU13j60ofafSgRKPz9QO7EI2KKKUzbr1sW4exB8vAKCdFj0JkYc+cXxeRVDwAH BJsHpskQhDUBH6brvnREQAZLdnbcjQ9v8KgF4e4dEIxwA+PQysZ2tzPrIYrzjVUU+7PP x+Bip+UTJpzJLz3MNWxLJZSlMMTf4kJ2WHLFi4e3finfo3tfWFDe4Sy0GufegssFK/Nq 4mTqaXvDgPnebnVwmqtJWbb6HPBmlR09f1IlQy9i7egIfhG4vqHsv2+OzTbfvUy4BQWg z3z1FRQlXmCrxxIsC0cc1uLjLpjj6gQx6v5cBDDQCP2KPv/MWwSVmFK1GKjS6dkBEUnV Yh0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 25-v6si4886119pgk.438.2018.08.03.04.30.46; Fri, 03 Aug 2018 04:31:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727355AbeHCNZv (ORCPT + 99 others); Fri, 3 Aug 2018 09:25:51 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43026 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727184AbeHCNZv (ORCPT ); Fri, 3 Aug 2018 09:25:51 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AB1647A7EF; Fri, 3 Aug 2018 11:29:56 +0000 (UTC) Received: from krava (unknown [10.43.17.198]) by smtp.corp.redhat.com (Postfix) with SMTP id DA81A10CD798; Fri, 3 Aug 2018 11:29:55 +0000 (UTC) Date: Fri, 3 Aug 2018 13:29:55 +0200 From: Jiri Olsa To: Stephane Eranian Cc: Jiri Olsa , LKML , Arnaldo Carvalho de Melo Subject: Re: [RFC] perf annotate: option to report global percentage Message-ID: <20180803112955.GA2402@krava> References: <20180719082539.GB18667@krava> <20180731092128.GA17617@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 03 Aug 2018 11:29:56 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 03 Aug 2018 11:29:56 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jolsa@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 03, 2018 at 12:28:16AM -0700, Stephane Eranian wrote: > Hi Jiri, > On Tue, Jul 31, 2018 at 2:21 AM Jiri Olsa wrote: > > > > On Thu, Jul 19, 2018 at 10:25:39AM +0200, Jiri Olsa wrote: > > > On Wed, Jul 18, 2018 at 02:55:14PM -0700, Stephane Eranian wrote: > > > > Hi Jiri, > > > > > > > > As far as I know, once you go into annotate mode, via perf report TUI > > > > mode, the percentage you see per instruction is relative to the > > > > function. I would like the option to display the total percentage, > > > > i..e, the importance of the instruction for the entire run. Right now, > > > > if I want that, I need to do function_percentage * insn_percentage by > > > > hand. This is not convenient. Having a key toggle would be very > > > > useful, worst case a cmdline option. > > > > > > > > What do you think? > > > > > > hi, > > > that should be simple to add, we already have the 'F' in the > > > main browser window to toggle among full/filtered scale > > > > > > I'll try to add something similar for annotation window > > > > sry for delay, I was out last week > > > > I put something together and pushed it in here: > > git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git > > perf/annotate_percent > > > > there's the 'p' key to switch between local and global period > > I haven't added any command line option for stdio yet > > > > I'll have more testing and post later but any feedback > > now would be great > > > Tested your code on a few examples and it seems to work well. Looks nice! > Thanks. cool, I'll have it sorted and send out soon > PS: I'll have more small requests coming based on user feedback and my > personal experience. keep them comming, we need more user feedback ;-) thanks, jirka