Message ID | 1444298504-10392-5-git-send-email-takahiro.akashi@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBC2PLDH7WAKRBDH73CYAKGQETYIKNNQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id BD73322FF4 for <linaro@patches.linaro.org>; Thu, 8 Oct 2015 10:03:56 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf8123602wic.3 for <linaro@patches.linaro.org>; Thu, 08 Oct 2015 03:03:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=8DGta05yDGlgOu7X6eKXydjqy3pNNLyFKEyc2wskp+0=; b=TKdBovaSv11iiPViguWryFm2SDq1D0qi89fmkswd1uvuOZgO5qghRCxgQPKSSEo+T7 3QfmhPyX32LWqUfsTPdXakGRytDWIB0ZqsQFVJQB+076fOZQN86ZujjmXBqX9i1nUcPi GvNzZZScj3qX6CfCj055H+OTWnpGQRI2r4sNavE3ElgsbWBzEp+5Qw2Bw4lGlDu2X7nc YLqnsbwGdRMgK3uEImjxS2KgaR1wkghSj/kDfFLn1PYg//qbMtIp35AbtULtvDG4iDJO IrkbO68kCSpslRzdQ7FUXqSNpyEIijAkxcZ5Ro1GIFdJjAqkjfvoYoYE+F6M8w6ZzTbc TVrQ== X-Gm-Message-State: ALoCoQlVO4UFDkzKn2fRpERWbRqryC/FBQZ2gCj4ii/WDurl3/vnN5SSPyfz8hwahlbdibMwddf0 X-Received: by 10.112.164.1 with SMTP id ym1mr1198821lbb.15.1444298636044; Thu, 08 Oct 2015 03:03:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.161.20 with SMTP id k20ls164372lfe.88.gmail; Thu, 08 Oct 2015 03:03:55 -0700 (PDT) X-Received: by 10.25.211.85 with SMTP id k82mr2084560lfg.100.1444298635881; Thu, 08 Oct 2015 03:03:55 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id zd5si29042708lbb.139.2015.10.08.03.03.55 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Oct 2015 03:03:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbcao8 with SMTP id ao8so41536768lbc.3 for <patchwork-forward@linaro.org>; Thu, 08 Oct 2015 03:03:55 -0700 (PDT) X-Received: by 10.112.199.137 with SMTP id jk9mr3162597lbc.86.1444298635734; Thu, 08 Oct 2015 03:03:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp482970lbq; Thu, 8 Oct 2015 03:03:54 -0700 (PDT) X-Received: by 10.50.25.195 with SMTP id e3mr2865229igg.0.1444298634169; Thu, 08 Oct 2015 03:03:54 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 103si31036489iol.12.2015.10.08.03.03.53; Thu, 08 Oct 2015 03:03: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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755772AbbJHKDl (ORCPT <rfc822;pingbo.wen@linaro.org> + 30 others); Thu, 8 Oct 2015 06:03:41 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:36796 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755727AbbJHKDi (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 8 Oct 2015 06:03:38 -0400 Received: by pablk4 with SMTP id lk4so50741951pab.3 for <linux-kernel@vger.kernel.org>; Thu, 08 Oct 2015 03:03:37 -0700 (PDT) X-Received: by 10.68.105.164 with SMTP id gn4mr4342539pbb.44.1444298617527; Thu, 08 Oct 2015 03:03:37 -0700 (PDT) Received: from localhost.localdomain (61-205-1-208m5.grp1.mineo.jp. [61.205.1.208]) by smtp.googlemail.com with ESMTPSA id ya10sm44431428pbc.69.2015.10.08.03.03.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Oct 2015 03:03:36 -0700 (PDT) From: AKASHI Takahiro <takahiro.akashi@linaro.org> To: catalin.marinas@arm.com, will.deacon@arm.com, rostedt@goodmis.org Cc: jungseoklee85@gmail.com, olof@lixom.net, broonie@kernel.org, david.griego@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, AKASHI Takahiro <takahiro.akashi@linaro.org> Subject: [PATCH v3 4/7] arm64: ftrace: allow for tracing leaf functions Date: Thu, 8 Oct 2015 19:01:41 +0900 Message-Id: <1444298504-10392-5-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444298504-10392-1-git-send-email-takahiro.akashi@linaro.org> References: <1444298504-10392-1-git-send-email-takahiro.akashi@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: takahiro.akashi@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index f9914d7..71cad91 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -28,6 +28,11 @@ endif KBUILD_CFLAGS += -mgeneral-regs-only $(lseinstr) KBUILD_AFLAGS += $(lseinstr) +ifdef CONFIG_STACK_TRACER +ifdef CONFIG_FRAME_POINTER +KBUILD_CFLAGS += -mno-omit-leaf-frame-pointer +endif +endif ifeq ($(CONFIG_CPU_BIG_ENDIAN), y) KBUILD_CPPFLAGS += -mbig-endian
CONFIG_FRAME_POINTER is always enabled on arm64, adding -fno-omit-frame-pointer, while ftrace, CONFIG_FUNCTION_TRACER, adds -pg to KBUILD_CFLAGS. The combination of these options, however, does not implicitly enables -fno-omit-leaf-frame-pointer option, and no leaf functions are actually traced under ftrace. This patch allows for tracing leaf functions by adding -fno-omit-leaf-frame-pointer option, but does it only when CONFIG_STACK_TRACER is configured because it will increase the kernel size and add extra instructions on runtime. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- arch/arm64/Makefile | 5 +++++ 1 file changed, 5 insertions(+)