From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EC655C2BA4C for ; Wed, 26 Jan 2022 17:28:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0/PLYk/rMPz9wrpjmWi4hplg9WxgwlVmcXs6/IxiPXY=; b=N+wAQ6fbrOjj2F QCgTqtAdaAmVSOzUJz1X6eOZFejp4BkPLu4S8N9aXVUkDIO9A7Pw76TrjOu5rodZd4Y6a+/06W3GS 5l49eQinACxMhGGZXe4EayytfXAkafdZ7EIx4GR5Mv7syzGSjnUo1wR92pRtGEa55uqeuyhGszYHr 7tacrNKAiFuG0jV3xuY/q7u2QIfe/6YH62d/iI4x8/1jEgbFdtxrPObDsE6qsarKiMV7ykQUGadDh nDQP/+FVcMy6bYfL8YzSaL+8n/oA6CpCqVswy3PL51lEbW6377J+xJPXVkDzMdczEbjKdEoHQVCNW DVJj3iPUyViKi37qS/Eg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCm4e-00CzlL-6C; Wed, 26 Jan 2022 17:27:12 +0000 Received: from mail-oi1-f179.google.com ([209.85.167.179]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nClSl-00CkRA-P0 for linux-arm-kernel@lists.infradead.org; Wed, 26 Jan 2022 16:48:05 +0000 Received: by mail-oi1-f179.google.com with SMTP id y23so606773oia.13 for ; Wed, 26 Jan 2022 08:48:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6gFP0lcd6ItARzuIKDJccK9kwYCNQdLqC4kjVDvDJS0=; b=pU+rRlRa1dMDZRwvmG9I1X22GW96KlCFg3FFHVJ/qJWToGVgNhKfoJcUrDcatQDYSG 2xCrgeB82jpMh7hJd7Zp/5zXZfmDdoZPfEKQUp9kRq4ea5ZX+dvcm1hsl8C1oI43kXf/ hBU4W9WQ/pPpJZNJ22cnj0IsxD1vaHCINaSJFCq+gfK4S/JAiclOVLQJ1hCXxDqhkXCC vGLifRQiCvCDWexnik0e7tSdSK27S5DJZ8onYR5D46WyojDjMQm6Mhd5dWxmbC1Szdik TEF/Yk8Amm4h0uf2pjnhNi+ExgX6zW5SORUHz8s9sFAzWaY8MWbSnsJfrcXL/i3q/ojC grHQ== X-Gm-Message-State: AOAM533f4WV82ahlqqYxFzbi3xMMaxbTxv9nsePJgbMZLS0zIYS92y0H s0LXt9omZgnwDrohCL41AA== X-Google-Smtp-Source: ABdhPJwFhyVnuVxL5/czwcl+I12DBt+i8ghW7V5R5zYYXI2C1rc9EfwwMLM20QqzVavhwvZz03q/Ng== X-Received: by 2002:a05:6808:f88:: with SMTP id o8mr4510928oiw.29.1643215682768; Wed, 26 Jan 2022 08:48:02 -0800 (PST) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id z17sm5037867otk.62.2022.01.26.08.47.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 08:48:00 -0800 (PST) Received: (nullmailer pid 952293 invoked by uid 1000); Wed, 26 Jan 2022 16:47:59 -0000 Date: Wed, 26 Jan 2022 10:47:59 -0600 From: Rob Herring To: Anshuman Khandual Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , linux-perf-users@vger.kernel.org, Alexander Shishkin , Jiri Olsa , Namhyung Kim Subject: Re: [RFC V1 10/11] perf: Expand perf_branch_entry.type Message-ID: References: <1642998653-21377-1-git-send-email-anshuman.khandual@arm.com> <1642998653-21377-11-git-send-email-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1642998653-21377-11-git-send-email-anshuman.khandual@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220126_084803_846500_0C7396C3 X-CRM114-Status: GOOD ( 18.28 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jan 24, 2022 at 10:00:52AM +0530, Anshuman Khandual wrote: > Current perf_branch_entry.type is a 4 bits field just enough to accommodate > 16 generic branch types. This is insufficient to accommodate platforms like > arm64 which has much more branch types. Lets just expands this field into a > 6 bits one, which can now hold 64 generic branch types. This also adds more > generic branch types and updates the BRBE driver as required. > > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc: Arnaldo Carvalho de Melo > Cc: Mark Rutland > Cc: Alexander Shishkin > Cc: Jiri Olsa > Cc: Namhyung Kim > Cc: Will Deacon > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-perf-users@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Anshuman Khandual > --- > drivers/perf/arm_pmu_brbe.c | 7 ++++++- This patch should come before the BRBE support so that it can be applied sooner rather than later. If another field is added to the end before expanding this field, then you will be stuck with assembling bits from 2 fields. > include/uapi/linux/perf_event.h | 10 ++++++++-- > tools/include/uapi/linux/perf_event.h | 10 ++++++++-- > tools/perf/util/branch.c | 8 +++++++- > 4 files changed, 29 insertions(+), 6 deletions(-) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel