From patchwork Fri May 7 20:55:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 12245183 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D778C433ED for ; Fri, 7 May 2021 20:57:19 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1650E60FD8 for ; Fri, 7 May 2021 20:57:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1650E60FD8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=zzAL7q9bP2IBi/n9OL6wwxSAi6mIFtbkR/ijE6KcQzA=; b=fscdCakli2vRogOCzuxixj19lX LpZgpHEkDVqEbeoQSu8b63M+RCqjSJHWWZoN8PjG2Va4POG3FDqN8P7K6lMmido6Rb6rnErgPbH1/ ZLB9E0E4Lp0vQLRz+s/iNtNsxhClGuneKr7KnsZHXotEf1DvY9uT4PPG9jzMpye6XPcC2KgwE1w5W lRC6Zp5hEJkk0DPQXQCxkV0hb67yIroE48lq81UUlRluIemAZuj0tRUcxVRu1rtyLjvuyHfxYZdcC E3PJzN6HnMTqKQysOuuK3SsKjOifgrx9LqugjyC1F8A1ARVpmB+PyPdI0RNqWSOWs01KbKW2JIbmx 6C4c4BEA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lf7Vg-0082d8-AB; Fri, 07 May 2021 20:55:44 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lf7Vc-0082cj-CT for linux-arm-kernel@desiato.infradead.org; Fri, 07 May 2021 20:55:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=RPwYxQ/G3rhOoLfwIgiJmY5QnE9mrhjUeAyG7fqUPTY=; b=KnYhNZjl04lz4lAPWv81u/Xzgd DhTEkBNyAzQLrSBiO8SbF1aB6Seefn/evzMYc9/lEFKrAAou5NGWFQ/wW4HJxVKmMFAn33+B0FFVt vRwNC/W9ICRUfhwRx7fTGhcdlwkM+b7XDJ3neaGT2rNyCRo5aJIRYi4eggLsnmqxPPAQR/qVUszXr gxg+BGTgHh6JXR3tuHAzocKalExZ6Sf/6cxHBCe4a07rmrfXsyClxfVKQB24yIY5cjWmb9ZN+SBaO VjU9SE/6c778aYJzu06GECSL8rGmrst7Qm81UiEhHUXh/oTGwB1GrXOQ/AWsfkzHXB/urV12DCLnh yjRVeakg==; Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lf7VZ-007BAN-Ep for linux-arm-kernel@lists.infradead.org; Fri, 07 May 2021 20:55:38 +0000 Received: by mail-pj1-x1034.google.com with SMTP id lj11-20020a17090b344bb029015bc3073608so6267127pjb.3 for ; Fri, 07 May 2021 13:55:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RPwYxQ/G3rhOoLfwIgiJmY5QnE9mrhjUeAyG7fqUPTY=; b=LNxZxepW+UC0Y1XBj2dy4y1rp1H6OzGzwlDR5/k47T6tyxD79Y/i4yJwV5N0lZ+VFZ a8Xu/wG2Tm7gtc0rRRA8uUCmZHCDoCL9NS9Sm2WL7Qh6S0U++r1/xl0A2IeMQkpThR5W LaAH+0LietCJ7G1AT7P3w0Joc/JNVwQhcV8P8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RPwYxQ/G3rhOoLfwIgiJmY5QnE9mrhjUeAyG7fqUPTY=; b=ZiTFfSjPKnqbXT3KxpsnNN94ZLQtS+94j/jSzOsn5oBjffLSWc+yDfT6w89F9pKEB3 XvXsaX4398cBvlXUK212zvS2TxctOgcBkoF9W7vBHdroN08wJ4bkc6mA+ieYhuysdm5V NBLYIDb9nP4wcPW84sfS8kNUhUODo8V4O08ai0RR2hGPqUHQ0PaZxFJdIYgiCGozQX4Y gR9e7aTuSjbaAToS5UGHKSRbaem/X9zwsUNGPpHFElBg/jA/gmf0Q/oBsvjESEx8JxaZ PxxyQHB8N8u1UOnOxneyK8srJll8uPmhg7fyPuDWOo5FpvVXowfcbbJXfZgAR1J8RAZK fwLA== X-Gm-Message-State: AOAM532JyA/d8Q264J3clhwZrULYvEOovP5faaL/tnaSWrOe0ObRbJLg KNaeF6gLq6cTH8FA/LljtT6bew== X-Google-Smtp-Source: ABdhPJzk5q+RqqaeU/dImKZTUfx8BnrHWZjv79jeHRGyFTZRMB87eu1vtuUpAfgd2ErT3+E0DOME3g== X-Received: by 2002:a17:90a:c087:: with SMTP id o7mr12769919pjs.65.1620420935943; Fri, 07 May 2021 13:55:35 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:201:3c7e:d35:3a19:632f]) by smtp.gmail.com with ESMTPSA id ge4sm13161565pjb.49.2021.05.07.13.55.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 May 2021 13:55:35 -0700 (PDT) From: Douglas Anderson To: Catalin Marinas , Will Deacon Cc: Nick Desaulniers , Seth LaForge , Ricky Liang , Douglas Anderson , Alexander Shishkin , Arnaldo Carvalho de Melo , Ingo Molnar , Jiri Olsa , Mark Rutland , Namhyung Kim , Nathan Chancellor , Peter Zijlstra , clang-built-linux@googlegroups.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH 0/3] arm64: perf: Make compat tracing better Date: Fri, 7 May 2021 13:55:10 -0700 Message-Id: <20210507205513.640780-1-dianders@chromium.org> X-Mailer: git-send-email 2.31.1.607.g51e8a6a459-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210507_135537_535514_D6E1B3ED X-CRM114-Status: GOOD ( 12.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The goal for this series is to improve "perf" behavior when 32-bit userspace code is involved. This turns out to be fairly important for Chrome OS which still runs 32-bit userspace for the time being (long story there). I won't repeat everything said in the individual patches since since they are wordy enough as it is. Please enjoy and I hope this isn't too ugly/hacky for inclusion in mainline. Thanks to Nick Desaulniers for his early review of these patches and to Ricky for the super early prototype that some of this is based on. Douglas Anderson (3): arm64: perf: perf_callchain_user() compat support for clang/non-APCS-gcc-arm arm64: perf: Improve compat perf_callchain_user() for clang leaf functions arm64: perf: Add a config option saying 32-bit thumb code uses R11 for FP arch/arm64/Kconfig | 12 ++ arch/arm64/kernel/perf_callchain.c | 329 +++++++++++++++++++++++++---- 2 files changed, 305 insertions(+), 36 deletions(-)