Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1010570imm; Wed, 18 Jul 2018 14:56:54 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcKJ83ww0CLI/jnki4yLl0lkk9L+vJi5cKo85QTbvppFd2DN5B4fkMoavyc8MUCeYZZTMbw X-Received: by 2002:a63:8e41:: with SMTP id k62-v6mr7195182pge.187.1531951014305; Wed, 18 Jul 2018 14:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531951014; cv=none; d=google.com; s=arc-20160816; b=yAQCH8DbPMqB260FKqnrz+60Zvi5Vx3J67rbvv3IVGXDJ+2iqAX9rpaomNtWWcl1Me GQHQNzhq0ZkpW9I48j1aS/Wa06TfD+O401uPAMt0S1qM4ASbdrbAIauRowzVW3DgBT0b Qc6cRWhSxPIoccdKLA4xKv2erT29DYlWnzYib1t2x584QndQZhZZA6xxE8t8fPpEFgr/ yI1ADzoHmS+fSjFEvp71KNXjTL3n88VO7ES0vQ0FJ5v4ditLYmZ3hdZP3rxU0WdbvCc6 lVEHCE8bDIXBxi6doz1WPosUlc0g7EuIDzgK5LxvLFKpbUnVrnOP1QGV3ZREQvKkxLm4 XmkQ== 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 :mime-version:dkim-signature:arc-authentication-results; bh=oIqlx1/GJtz8S2AInm4JCTIfttXb+fPy4J+H4TnFMUs=; b=AEuoBwpRqEHXPS2LXfnblKLDmELjXMbnliLCZ1RdvooAmObHOTy0Y4fn1ZZBio3G1y XoY0cG57gkh+63nyqFmgXuj3RDXvjrleGlenR3WkIf/aEaa7Qz+h8txVWicFNvwmp3K0 1NHaPHiolPB3Fj1euBLL6i/CMuBd18fOiJJiQOSU6s1icGgbDALaM/xWuwowRbbKRYEe 9E8VM9Pl/GBXPmOZzCeaoGl2hCKu2UxeD0Fy3CvoQiHxT1ch2ezN20zWu7l/aSA7xXEI XNRdqhLSnRi6RLKSnIlWRrHwaP39kZK7eNuvHm6NGyRKnzvTg5syZ49kgsFv4MAK9514 pGTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cu5A1lB0; 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 p123-v6si3932902pfg.281.2018.07.18.14.56.39; Wed, 18 Jul 2018 14:56:54 -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=cu5A1lB0; 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 S1730262AbeGRWfT (ORCPT + 99 others); Wed, 18 Jul 2018 18:35:19 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:43657 "EHLO mail-wr1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726834AbeGRWfT (ORCPT ); Wed, 18 Jul 2018 18:35:19 -0400 Received: by mail-wr1-f50.google.com with SMTP id b15-v6so6059134wrv.10 for ; Wed, 18 Jul 2018 14:55:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=oIqlx1/GJtz8S2AInm4JCTIfttXb+fPy4J+H4TnFMUs=; b=cu5A1lB0ecv+QhPmuHo7hgxqODKkIWCDF9SFe8aih8hr0agFSkqU6aKtq/RpMfONjs QgEVw7rJuvqdaAf4BzW1Zsr4uzBL87mKoLjF3FBOPAN+3OhBYEI5W/iAWCTJmlAM6VE4 UVOjzX4o0NZ0ZebrtV8MPq/pQ+e7SxhcsPFmxlwUtNXpp3JA9k+woU8XXpmFe598MHvS rcgIgy5pFaGZ3aoM82bSrZpFEQZZUc4HqVaF/3IoRbamla21ljnKQRizSc5I1I/zYgys YkMMwZLRBQQ/mqD2t7EXS1uj103HCh8wlK8dKc9ZC2HjJejkkqzvCW9Q8j68cR8RZQcw 3qkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=oIqlx1/GJtz8S2AInm4JCTIfttXb+fPy4J+H4TnFMUs=; b=jt5pR/Ed672S6dicNBU+HbwBczeqnvffOEnPZnD4Mjj1zSHadDIUf/B3VBf4wFEdsX spYVaASK9MR/ToBWdvkG1awnr4WcG4THmNheeprvKepIaLHfWmAkrPgidekjac8E/OKR ur6SwaIPAhZ2YnzXvJHaqUWGARDbNiCOSq4/zB9EnHzE0a2gUkPaOHfYAttuJ+hfPQsC 4hlyvC1QbQyz9bdjyYdArzCu/oUEhxv/+xSCbVGqeU67kA1EDoSzPR8NKSLxta3I+vjf 4XryaM55mruKj8XPKkdwnf5kjT0hxHPWA87AtNXdpziE/MxzlsmQiD8N0u8LODaY2VRE RUug== X-Gm-Message-State: AOUpUlF08BSJIy/aiv60irQCmpayQu+gVGgbm9G8RC9w1CmsVm86kjLi 4wjAI7qyMhVvDoUIwmQDNX4PPAdsbO71gmwaDwduMKlq X-Received: by 2002:adf:e190:: with SMTP id k16-v6mr5714197wri.36.1531950925650; Wed, 18 Jul 2018 14:55:25 -0700 (PDT) MIME-Version: 1.0 From: Stephane Eranian Date: Wed, 18 Jul 2018 14:55:14 -0700 Message-ID: Subject: [RFC] perf annotate: option to report global percentage To: Jiri Olsa , LKML Cc: 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, 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? Thanks.