Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4593860ybh; Tue, 6 Aug 2019 14:30:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGD6bZb/Frnj9Dw/itUCJNcYhNLeHuNenY+jkueHhcaj4/kYFAG7CGR6t7H259EcgfdiRW X-Received: by 2002:a65:690f:: with SMTP id s15mr4669545pgq.432.1565127040039; Tue, 06 Aug 2019 14:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565127040; cv=none; d=google.com; s=arc-20160816; b=kOcEzpuDxlVY0BZD9+KtxaGK5lv9p8w+A1+ZlvAaJqmQJAFwYTRrkMJnH4DwvNSDfN 3VL3W6YUjmfB5jnIMzbFXbVIjmK8cH0SAfIC5fzOVyrHIUn+T6Yz+yjEBnNbTg1mS65l IzKJ0K+E9G+4BXc8hxwpblywc3KaZffpjFR59kzK8+I48QxnFL4fMFLJo1ap62T05Ba9 jO4tki0/aAm9m1lI8TKqhQIw6bKUmCVh3RU2nNWQRB7yoVejzXv4b3/uZdf33zy0chK4 omiY/HcPSnH0jpis+joxSDUMIXn9Ny/OE1tJu5N/Rul9DG2ecyWUwbfadHBzgF0OaOV4 mvBA== 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; bh=3nDyENKB38R0uDM7hzocjvJMgcMblLNFl99d81wPXq0=; b=m4GqqBzbXfWGKu7leu9SS3OMWQAXVWVCIJoksM8+o5ejvscEyFraVuNk9+0tsPto+0 Ti8hokdyw15SiLL6uRgdtDq4ojZfTbOOi25Hqm8iDJuWTVjGzN6PRJ3lEcLhh6LNqLx3 5bUy3yiw0q0Jy8axjiT5gjGoUM6BsoAiByyMhbs8ZSAA3BovmyDisj/2vjigusEH6jMj 8hlHRLwBFTfMmMfRNSaUe3hQUYFix24bvTn6sK6Sug3EmY3Hm6W7Ughkllw92GHdFsKt 3YezEg1qZ0oq2rSdzwdaBrJQ1VJbYmzwgmSA3S9nLZTQ/iEQ3QBcIVKYYGrZwSN0S0ru HXiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=B1fQq7Ol; 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 130si50971665pfb.117.2019.08.06.14.30.23; Tue, 06 Aug 2019 14:30:40 -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=B1fQq7Ol; 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 S1726576AbfHFV33 (ORCPT + 99 others); Tue, 6 Aug 2019 17:29:29 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:33728 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbfHFV32 (ORCPT ); Tue, 6 Aug 2019 17:29:28 -0400 Received: by mail-qk1-f196.google.com with SMTP id r6so64195760qkc.0 for ; Tue, 06 Aug 2019 14:29: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=3nDyENKB38R0uDM7hzocjvJMgcMblLNFl99d81wPXq0=; b=B1fQq7Olm//etuiMshyzmR6nSITrP4xNB2SwIKDtHN5C821cmc3nhuNNwgaDWMZGto 1qYoxibjR9Z9Oigna5Oiuk2AYfsr+1BH8D00qhDVSSA1ZyZ4B/N59UUHC+FsVGq2FWHl CtGq2qFPjmvD53RUyCsRTToG3Z22W2bFRi1zs9A+4fJEk+NVMXUqDTKSaHZu3bYzxFxr D8fjEqe/NPo4IKE8KJKVG3k7PNY/7kPcZBU4/FL+gkuooHMkjb9V6OTyRPVJgE+mZpsK zi9/sADR3/muEXHww/dsvT39wNnXqIjhUpuDogkcSLgvusdYd9NyTzpgxtbqIIZJxq8e DQhA== 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=3nDyENKB38R0uDM7hzocjvJMgcMblLNFl99d81wPXq0=; b=hM/w2tIftZ6mqoWRiQ3XTj7lCKWvG3uflmBUFzoq42dDN8GWDKqXtckGDJwek1Waf5 RlczAr93ISjNgCXjOmnO8EWrE1sOIYSPU+DIWJ4Fq/Bw8aJg8X/GpDz3xkITMH98mc8Z L10WVnMEwQaRVoYoE70YAzfRMZlzqDsPLZdrngVUHTrwTiYzVzm4KRML1XtKHNWszbnL ryK32Y9tk4YyC95WKizNa+YTMXW3KMwz/0ARPnX8fd1xH3mrk/xoPg6pM/n6J31roXv8 fluAOTfhtuxDMc41FHToU1pYheC2Wlv74dvY+uGLNTIIGJtyRwI2zBilgx7qTyVNfAwp hVPA== X-Gm-Message-State: APjAAAVEbS0GVaHZP16TfqPtXOGxlyeEw/48qxl7DBebLEQR18EZJE9Z iJqC6d2CwlyQo1t3Q6z2XVSqZP5zrphMR945uPGndQ== X-Received: by 2002:a37:4d82:: with SMTP id a124mr5158808qkb.72.1565126967750; Tue, 06 Aug 2019 14:29:27 -0700 (PDT) MIME-Version: 1.0 References: <20190801231046.105022-1-nhuck@google.com> <01222982-4206-9925-0482-639a79384451@arm.com> <20190805133940.GA10425@arm.com> In-Reply-To: <20190805133940.GA10425@arm.com> From: Nathan Huckleberry Date: Tue, 6 Aug 2019 14:29:16 -0700 Message-ID: Subject: Re: [RFC PATCH] ARM: UNWINDER_FRAME_POINTER implementation for Clang To: Dave Martin Cc: Robin Murphy , clang-built-linux , Tri Vo , linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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 I'm not sure that we should disable a broken feature instead of attempting a fix. CONFIG_FUNCTION_GRAPH_TRACER is dependent on CONFIG_FRAME_POINTER and there have been reports by MediaTek that the frame pointer unwinder is faster in some cases. On Mon, Aug 5, 2019 at 6:39 AM Dave Martin wrote: > > On Fri, Aug 02, 2019 at 10:27:30AM -0700, Nathan Huckleberry wrote: > > You're right. Would pushing an extra register be an adequate fix? > > Would forcing CONFIG_ARM_UNWIND=y for clang work as an alternative to > this? > > Assuming clang supports -funwind-tables or equivalent, this may just > work. > > [...] > > Cheers > ---Dave