Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2145483imm; Thu, 9 Aug 2018 08:02:56 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwQthArG14bJ9PaKCEn7zJDTc1BbTXgFAzsoQIIJfF+WPawKmfjdBqbVChMYIopLzTAZhzQ X-Received: by 2002:a17:902:102b:: with SMTP id b40-v6mr2398865pla.125.1533826976097; Thu, 09 Aug 2018 08:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533826976; cv=none; d=google.com; s=arc-20160816; b=Cyt0KOoKtrA0mZaZEdOAbEIGAVUDkoMJfRW+AmSTIcQEmZYFsdAsc318M9iGBsY56l EJWSIhr52uQSOovJLAEnjJKXhnzqC3G1KICnAJlD+8F1FFob96f+p6g9nsg5Sy+gF95R jiGJCJI5cGkHNyUWBe37r1uBPeO9FfZAPuyb9Ey9IWusRMIkJP3uN61/qURSFLZd9Zmg ofoLOYIZuQTFBsVzmgAMsUoLoTftZclIVCn8woHYwKRkT/LQfL0i2Dl2x0MOjiRklPy9 2N3qPAK+Af0GI9eP9TkjQXzAdmWvHvo2ycJ+vHT/QOqXdz9cl7g/bjT81xPEaEBRWV0a 6Hyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=pRf8H+6oH79Cqhl/kKEMZqlQlAMOKdtDIWkf4KC/Gq8=; b=Dws0id2xruUAG+6KuIYbnkf+WwCbN1ctkYRXDuy10+o7ZT9UdLSePcMhbVS31NVJBV K048wJnB8UxsChmzuctmNDLUWze688l7a7FUa0W1UQPfNm+HOfXQdVpXW2juRxvw2AS/ QBy18Ie7iWhZNahOloFmhRmqtl8zJ1cEIBRL6HEzJB5fnH0KfPRI25afMj8NPmKVVk+q BP3ADh1CvYkcg6QXPlkR7wrYRBC3rCLLWx5Aw0t1MtBB6ISg7J46awfXegscVi94r/Pg Ttwmbz99AhZn07teypBdc2lOcdVALfI/+9P3y40b1W9HXZeNO9hocOfLpLo4gkLje/IK Cquw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rUxw3LlF; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x13-v6si6003400pgv.389.2018.08.09.08.02.41; Thu, 09 Aug 2018 08:02:56 -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=@kernel.org header.s=default header.b=rUxw3LlF; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733016AbeHIR0O (ORCPT + 99 others); Thu, 9 Aug 2018 13:26:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:37954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732116AbeHIR0N (ORCPT ); Thu, 9 Aug 2018 13:26:13 -0400 Received: from jouet.infradead.org (179-240-153-38.3g.claro.net.br [179.240.153.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9B20A21DEC; Thu, 9 Aug 2018 15:00:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1533826856; bh=BDFrK6dqOm2YOWzeTTRk7unGOQDrHp1RIU9H2HcA0yc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rUxw3LlFUkHye8XPoGRAKjb6o3Hxt+nnMEcMiNeilSiytxeGiOwpED+TsFyUZDOxX hJD6p7MMJ5zT/ejRYZh0k0svl2B0om8ZEWyZWUjJIiSeIFeETSeMXXc7Jd7yxEFSya qrEJ0joyhLI0ezG3FbVFO4SBQHOBvW20qvc4E5xo= From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Jiri Olsa , Alexander Shishkin , David Ahern , Namhyung Kim , Peter Zijlstra , Stephane Eranian , Arnaldo Carvalho de Melo Subject: [PATCH 29/44] perf annotate: Make local period the default percent type Date: Thu, 9 Aug 2018 11:58:07 -0300 Message-Id: <20180809145822.21391-30-acme@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180809145822.21391-1-acme@kernel.org> References: <20180809145822.21391-1-acme@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiri Olsa Currently we display the percentages in annotation output based on number of samples hits. Switching it to period based percentage by default, because it corresponds more to the time spent on the line. Signed-off-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/r/20180804130521.11408-18-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/annotate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 850958bb613a..05d15629afd0 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c @@ -49,7 +49,7 @@ struct annotation_options annotation__default_options = { .jump_arrows = true, .annotate_src = true, .offset_level = ANNOTATION__OFFSET_JUMP_TARGETS, - .percent_type = PERCENT_HITS_LOCAL, + .percent_type = PERCENT_PERIOD_LOCAL, }; static regex_t file_lineno; -- 2.14.4