Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp132966imm; Fri, 3 Aug 2018 00:30:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc99rbs+PTHkE8zEA6dBESaHbKiG9CkopdyJRlwNeXmrBrJM1ACeopnW5aRWz42G0OgUbL6 X-Received: by 2002:a17:902:b58b:: with SMTP id a11-v6mr2444426pls.34.1533281404300; Fri, 03 Aug 2018 00:30:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533281404; cv=none; d=google.com; s=arc-20160816; b=TU2HOralK/X26XhWuVc/xRHX2dCQQ6Tg1R4oGKJRRRisCw2KkLB2AzE3J+LkLv8vCL xzRDwOF4TSDKTVWgx8KHgYDJGmsi7BTwmhrA14/+iZr6KKsO0RRFR5rrS1Ot253zy1l5 nDHY/lwPQYvRPcgF3LKj+bqpJmQofbboZMzq9dDN73YLcHxS1ymNVqWP91IrBO2qo6H2 W9pis6+bMnyvg/hEmgpkwp2TKb1fvJlWVQaAcf/J65Jsmr2OT9Vvg+qktQpYKkaBUdia cdT3tr9ipqCsIu5cpmEXAJFvHEFQoBFx3Uz0T+ozJtt8zAT7M/piuIbTMXacmVSFfOMx eW5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=WJGzc7TV9BWfjYAjc2vMec1WML8YOA/IZiinHw8Qfdc=; b=RTZqARog5bPF31Q7rlRaaaSwu2d9D935StrQobJt2U87L3yUcQ4nw8ghNaK4pkXWx6 6ijdu6VrHFwvv9kQs8amrd4anh/PNJAWsz+yny9kAcVeLxrTnR05kfnpv5Du+wDeJeis 4iqBlbdq4v3rwOgBui4oTh2+f56o5K8O+qlur6Tg110tFbMSWV3QLm35Bi5zUHjtHImV MGGeT82LaAfeSusNuoBHmrtjLhiag4Y6d/r3FUDVQIGYvuQoM0/12KO1EeDCU0td1Gac 3VHJLNJJPUv1AuKVOUOjZIETW52NyIt9O4JLtYg4XYrH4aSYUvTL21YcXg5K6SyMJ7MQ xxFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=f68pEEga; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1-v6si4175600pga.639.2018.08.03.00.29.50; Fri, 03 Aug 2018 00:30:04 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=f68pEEga; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728734AbeHCJX2 (ORCPT + 99 others); Fri, 3 Aug 2018 05:23:28 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41281 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727192AbeHCJX2 (ORCPT ); Fri, 3 Aug 2018 05:23:28 -0400 Received: by mail-wr1-f68.google.com with SMTP id j5-v6so4433347wrr.8 for ; Fri, 03 Aug 2018 00:28:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WJGzc7TV9BWfjYAjc2vMec1WML8YOA/IZiinHw8Qfdc=; b=f68pEEgahN4wskQGl5yVo5HrIc06hBlYMcvtoXff6J6T6iNf5/KHwtDh9YIYM+Nlqp cNJjZ9PXpg7qGqWEpGxe2ceOoYQe/RLH5ZYMuqfTSZBGqcv7PqBSYinXy4n36dKhIzz5 nD0taQ+4wFQcPkk8J+Ha293iN+8aIs6kVxDl/Fl6Nnp4Sw/btIGXOwWY3WKJqJmjvPFd mY38axqHJhxbsy5BHLZEQDYBFysKT3XTr1gqAwlszONu7F1u12dn2u08/hIRtEXZ5emt UQKKJ0ecXRME7nmwGFWEGF6etq/2riUwN0D1jQo0dtYCUs742HLhOUsAiO/lCqJuaviM iVNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WJGzc7TV9BWfjYAjc2vMec1WML8YOA/IZiinHw8Qfdc=; b=fKymuKRdIT+5MdaKibSNke331ZsPCIRKCCneSH24HbrrSa9JYi/YNLBN0H9RyTnfhR 3KyQXVXA0rgMb9NrdelfYDS+k2Ulxm1SjgIvH4kyJFPuPBVQFSKNXJHAsmI03uhs2y8y s88Iasrkywuj2qMr45oyc9t5fJnQr7vriYtmbQ6ngTq+RL0We45m7IhaMjhEOjq8dZaB HH3D2K33ChguLluN+zETVZRVpUKseNFhzmXI4wt016Aop4xHg4XQLYGQBw6/PB+4QKX0 kkXlHAzvkYq1yEkkA4CmIGtAkaUBR9J8iYvFcw3luvihELNJ85T+CFXYtTazBiLlBbLr dLyA== X-Gm-Message-State: AOUpUlGPVDt66b+OKMhdNX3iw7v/bJiARM4p+w5qZ7/Ez5TK2nj2TZeI wwIdsbWKgN6Wj7/fO4ebs9yaXkqu3XmbEaKJxWU+FQ== X-Received: by 2002:adf:a0f3:: with SMTP id n48-v6mr1777239wrn.23.1533281307686; Fri, 03 Aug 2018 00:28:27 -0700 (PDT) MIME-Version: 1.0 References: <20180719082539.GB18667@krava> <20180731092128.GA17617@krava> In-Reply-To: <20180731092128.GA17617@krava> From: Stephane Eranian Date: Fri, 3 Aug 2018 00:28:16 -0700 Message-ID: Subject: Re: [RFC] perf annotate: option to report global percentage To: Jiri Olsa Cc: Jiri Olsa , LKML , Arnaldo Carvalho de Melo Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. PS: I'll have more small requests coming based on user feedback and my personal experience. > > thanks, > jirka