Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp409172imm; Wed, 26 Sep 2018 00:26:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV61XRnNDQoLzwfJKqb/pFXNtPWnH7oWdyzLvwyZ6R4g9bbOMKm/KDwd1qzL90FOvhNkshrXg X-Received: by 2002:a63:6a42:: with SMTP id f63-v6mr4535499pgc.48.1537946765702; Wed, 26 Sep 2018 00:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537946765; cv=none; d=google.com; s=arc-20160816; b=yAmZRZKkhsHkDzszD1Fq+Ih8Bs/xYKQZEe6FhOsW+9pZsbmfqICcZH8TxxrZIP0/1S qIjlCtwP11kb/mzCiH8WMqAnOil3xVT2gay41hQrpL5suPmOlC+Zyk8Ut2beFfFDQ8PR wGuatRnesUIKGoeiGa0FyeQLqJqItZn1dR+DBwaT+y+Eq5Ivn4AP6zGIFwFTkpZwOmzd vYoSh3LSovC1qJQAiMxqVUWuegEqjcI9PMgOiPyMq3ea21i0rQYOwxU93MiplwDAGE9m yWryAN9b+lMWuFcTOoTNpRhETpt/N5y36RkHySpcisq+rHS1hMlhXzXKB79y7INI+fxm 25vA== 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; bh=OnfXwgLTes9pySMDd786bIpmxRKQ00q4cgRfY3FT1jY=; b=Pv5dLcRSXoDmneScT81dOs4Z0cY89JSHhV0eA3ZC3wUnnvLAtDMbbtxBzmwTV1knQO 57ZUlnkQuMoJoRyOyafy9M0wUnyKtXihrlkyCKHkK4v8BjcDjSElRoVMciBG7INFHMkt K3fIq5BxyVM8XSZwSm4+0KJ8JeRdtLRewff2/SaVBtVCCC2S0vS5zyWK+xbwvsFayRzn zxMeE0as9xMcE1DrmdnjddoAFr/r04ze4wvW18Uz05Iclvrqv0cOB9MKWv7d7KDT72SU f9by4KSAlF0Jw3ZlNuogNs1t9ZadhsIZLIcy3u7QayxDlWj8k38zsl5oPWOiuSRVXq6O VCGw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j4-v6si4817915pga.152.2018.09.26.00.25.48; Wed, 26 Sep 2018 00:26:05 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726704AbeIZNhP (ORCPT + 99 others); Wed, 26 Sep 2018 09:37:15 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:42673 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726355AbeIZNhP (ORCPT ); Wed, 26 Sep 2018 09:37:15 -0400 Received: by mail-qt1-f194.google.com with SMTP id z8-v6so16198241qto.9 for ; Wed, 26 Sep 2018 00:25:43 -0700 (PDT) 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=OnfXwgLTes9pySMDd786bIpmxRKQ00q4cgRfY3FT1jY=; b=hkei7b4Mql+MFKvLcE3NePjzl84DfG1psJ46tel/vQm+Ynzpes4Pw7yG9zuLkkUSmu BwYTlU5+0963RUKcc9fb/oHXR81xITaQDRyzUod0qa510KlbZaweY76sAD0moX6ExKkL 1xo+qyZehcBBCA/2InSEQ9/Box5XhZoMBXXLInwGAgNDSbZoiC0+MUGgty2kuRmsO44b voDolXs+cCKm9XoH6PcqszxM6OIbTGXUuDD/0QMEF+y/5G8iXeSiGUGlDaZbJiPdwIAt TYjkbU6VI1R06FW/78+Ur6UAXDuu3CCVaUV37jzTEDEdtFLteZTbKnxVmxXK4pBeDCPp dlBA== X-Gm-Message-State: ABuFfogA1lIHUxwktbsC3y2c4enERahX4S779JGFrgwcDByjnssYdNen DSGKGuPg3jn0ZBzTLcvi1jL+KiLU94FyO0LlddSJtC+5 X-Received: by 2002:aed:3608:: with SMTP id e8-v6mr3595379qtb.75.1537946742805; Wed, 26 Sep 2018 00:25:42 -0700 (PDT) MIME-Version: 1.0 References: <20180925212018.27132-1-stefan@agner.ch> In-Reply-To: <20180925212018.27132-1-stefan@agner.ch> From: Arnd Bergmann Date: Wed, 26 Sep 2018 09:25:26 +0200 Message-ID: Subject: Re: [PATCH v2] ARM: use choice for kernel unwinders To: Stefan Agner Cc: Russell King - ARM Linux , Linux ARM , Linux Kernel Mailing List 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 On Tue, Sep 25, 2018 at 11:20 PM Stefan Agner wrote: > > While in theory multiple unwinders could be compiled in, it does > not make sense in practise. Use a choice to make the unwinder > selection mutually exclusive and mandatory. > > Already before this commit it has not been possible to deselect > FRAME_POINTER. Remove the obsolete comment. > > Furthermore, to produce a meaningful backtrace with FRAME_POINTER > enabled the kernel needs a specific function prologue: > mov ip, sp > stmfd sp!, {fp, ip, lr, pc} > sub fp, ip, #4 > > To get to the required prologue gcc uses apcs and no-sched-prolog. > This compiler options are not available on clang, and clang is not > able to generate the required prologue. Make the FRAME_POINTER > config symbol depending on !clang. > > Suggested-by: Arnd Bergmann > Signed-off-by: Stefan Agner Reviewed-by: Arnd Bergmann I've tested an earlier version of this patch on my randconfig builder without issues. Arnd