Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4920638imm; Tue, 31 Jul 2018 02:22:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeSI9T9TXGQqLX3ddFQ0TCj4Shclw6bS3q6FpRbZpfj9NFrLzFkF39YQbzxeOuIdtQNTlSO X-Received: by 2002:a62:6003:: with SMTP id u3-v6mr21700333pfb.114.1533028956510; Tue, 31 Jul 2018 02:22:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533028956; cv=none; d=google.com; s=arc-20160816; b=cXI8SomlwuisxWYP9WBuPRHNEXYitspC3KMw086NnagmE/eCNsGcFyenMcMJGR1fmh zKr1z/y7CZO9LrsRQqHCB4JIXOvPEKZrQvXHx/Ap/6Hne9oSL8mXzxCICSJdVB9AoL2l ij/P3Bc73BqNfuQWVcHRXwLJnC81cZixSCD96Lax6A0eXm3wLCMbBbFvHLnLhwAzwpSA UdgKJGSpUPqw11wS4a6lc0aw50GncgQh+Ye/f6wnAOkekSSmMiA4qRIutGYFLGUZyDtH /B8XXg27DjsGOLUbzH8i13MZkJN0utC6s7XLSEAnqg65r0prPqpZyNi44IqEioOyvHC6 d3rw== 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=xe84mdVuxfYHiNGiTIjCXRPTeOPnIExGVpGFSfZ0/D4=; b=j3wNsQoxWRTIR+dLSLj+UIcEXBxBFu0RE4HGu8JefeMKNhsPLpULyhrDqEmYM9k66K awWDbnNBqKNn3mCiHV9itFuOGTY+rO7crvEM5bTIMj30qp/xyVDCFUUfiSuL2sA6v+b7 GxuQ/KDCVKgQ/jQvEbw70oJt2dlck4PSPf9Idv1qKTPpVNkf1uZlhBavjKmxAaPpda4k PyZwO0CK8OhiiHA1/aq5YeUZjkHswewPsLUW/8ie8H63T8eUcWKNd/HEtKZmAr4km9Sx jSX44wvHN/Sa7s7MPBjD6JM3v2NFdgiTfxv6egM1G9ZLOuVsGhS02BdzxSu9DIFuOJwx 7d6Q== 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 v190-v6si13275010pgd.668.2018.07.31.02.22.22; Tue, 31 Jul 2018 02:22:36 -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 S1731350AbeGaLAy (ORCPT + 99 others); Tue, 31 Jul 2018 07:00:54 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37130 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729485AbeGaLAy (ORCPT ); Tue, 31 Jul 2018 07:00:54 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 37AE4402315B; Tue, 31 Jul 2018 09:21:30 +0000 (UTC) Received: from krava (unknown [10.43.17.196]) by smtp.corp.redhat.com (Postfix) with SMTP id 62BC52142F20; Tue, 31 Jul 2018 09:21:29 +0000 (UTC) Date: Tue, 31 Jul 2018 11:21:28 +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: <20180731092128.GA17617@krava> References: <20180719082539.GB18667@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180719082539.GB18667@krava> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Tue, 31 Jul 2018 09:21:30 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Tue, 31 Jul 2018 09:21:30 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.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 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 thanks, jirka