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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60AC6C433EF for ; Fri, 15 Apr 2022 08:19:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351355AbiDOIWV (ORCPT ); Fri, 15 Apr 2022 04:22:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238683AbiDOIWR (ORCPT ); Fri, 15 Apr 2022 04:22:17 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C97B140CC; Fri, 15 Apr 2022 01:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Hi4xrZ5yZIHwLBnZX8ub/KAkLFYSwqOA4HWjNcaia5k=; b=Qa2CJf0ce3j7I87Yql9/UBsUF2 qJda9BAv0h4SYyh3zby8qvTvzBIQ2ZAHy6gJd+z7OG/Fzd9MyRZC4XflGybGsxFzS6Mb0feMRcJLD PgklKZfP1BNqpw58r3fqkM/aFKTpmur2U3JAK9wPmtdXmY++8gIBqh5gX9uHJl8xnEWN4n5snVyZ6 2gvEL8mCIBWSHfIhTKo37Hv+KVUMC8Fe7WyzIaFZxyAGGnKBXgjn7OO1lKum1JZWSFIgCzUDDpPzo MHqE/3orkOe9pGOQo8T7IT0av3RMAo/zYynzmTzJIlr6ad4Aut1em6HZBfbtYWOEcymtXhf+wDHkB WcBk3x0A==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfHB9-00Fxui-4U; Fri, 15 Apr 2022 08:19:43 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 813263001AE; Fri, 15 Apr 2022 10:19:41 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 56BA7202508B9; Fri, 15 Apr 2022 10:19:41 +0200 (CEST) Date: Fri, 15 Apr 2022 10:19:41 +0200 From: Peter Zijlstra To: Anshuman Khandual Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , Mark Rutland , James Clark , Rob Herring , Marc Zyngier , Ingo Molnar , Arnaldo Carvalho de Melo , linux-perf-users@vger.kernel.org Subject: Re: [RFC V2 1/8] perf: Consolidate branch sample filter helpers Message-ID: References: <20220412115455.293119-1-anshuman.khandual@arm.com> <20220412115455.293119-2-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220412115455.293119-2-anshuman.khandual@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 12, 2022 at 05:24:48PM +0530, Anshuman Khandual wrote: > Besides the branch type filtering requests, 'event.attr.branch_sample_type' > also contains various flags indicating which additional information should > be captured, along with the base branch record. These flags help configure > the underlying hardware, and capture the branch records appropriately when > required e.g after PMU interrupt. But first, this moves an existing helper > perf_sample_save_hw_index() into the header before adding some more helpers > for other branch sample filter flags. > > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc: Arnaldo Carvalho de Melo > Cc: linux-perf-users@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Anshuman Khandual Acked-by: Peter Zijlstra (Intel) 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 DD76BC433EF for ; Fri, 15 Apr 2022 08:20:54 +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=shZhIxUEScCPB0gXrKAqZAOMEklbkzQLTCpUBKW74IQ=; b=jLPF2q+WElnY8h bfGBZxaN6cPht9TVZS33VNMHpBCAjjf+lbBGZFYdGhfPU/z6vVBaZUEDvZNPhffzus2ug0rylKcYp tlZ5H7YCHP2QcHamW9ur9o1Tz7/3MLFEhnIHbVLH2JE1gddhaLkeqLf4tlsLGZ7uwo2m5uxJz1zOZ IQ6f4Xl4CrFGZI4mN8RYz/jm6a1pJAHTiz+Nl1lNmXmHi92yrWYjvw83001H3NiFzpH6TDHmLJs8m 95BjqSz+uVd8Q3qAg17dQQ3h9vK92xmetEo8+pr0gvuCNVHr6dWEYU7/cH/uii3uKxI/UTEspb4EY aJWeyfJVtAO/b/CKgl6A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfHBD-009HdJ-4a; Fri, 15 Apr 2022 08:19:47 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfHBB-009Hd2-IZ for linux-arm-kernel@bombadil.infradead.org; Fri, 15 Apr 2022 08:19:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Hi4xrZ5yZIHwLBnZX8ub/KAkLFYSwqOA4HWjNcaia5k=; b=Qa2CJf0ce3j7I87Yql9/UBsUF2 qJda9BAv0h4SYyh3zby8qvTvzBIQ2ZAHy6gJd+z7OG/Fzd9MyRZC4XflGybGsxFzS6Mb0feMRcJLD PgklKZfP1BNqpw58r3fqkM/aFKTpmur2U3JAK9wPmtdXmY++8gIBqh5gX9uHJl8xnEWN4n5snVyZ6 2gvEL8mCIBWSHfIhTKo37Hv+KVUMC8Fe7WyzIaFZxyAGGnKBXgjn7OO1lKum1JZWSFIgCzUDDpPzo MHqE/3orkOe9pGOQo8T7IT0av3RMAo/zYynzmTzJIlr6ad4Aut1em6HZBfbtYWOEcymtXhf+wDHkB WcBk3x0A==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfHB9-00Fxui-4U; Fri, 15 Apr 2022 08:19:43 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 813263001AE; Fri, 15 Apr 2022 10:19:41 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 56BA7202508B9; Fri, 15 Apr 2022 10:19:41 +0200 (CEST) Date: Fri, 15 Apr 2022 10:19:41 +0200 From: Peter Zijlstra To: Anshuman Khandual Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , Mark Rutland , James Clark , Rob Herring , Marc Zyngier , Ingo Molnar , Arnaldo Carvalho de Melo , linux-perf-users@vger.kernel.org Subject: Re: [RFC V2 1/8] perf: Consolidate branch sample filter helpers Message-ID: References: <20220412115455.293119-1-anshuman.khandual@arm.com> <20220412115455.293119-2-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220412115455.293119-2-anshuman.khandual@arm.com> 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 Tue, Apr 12, 2022 at 05:24:48PM +0530, Anshuman Khandual wrote: > Besides the branch type filtering requests, 'event.attr.branch_sample_type' > also contains various flags indicating which additional information should > be captured, along with the base branch record. These flags help configure > the underlying hardware, and capture the branch records appropriately when > required e.g after PMU interrupt. But first, this moves an existing helper > perf_sample_save_hw_index() into the header before adding some more helpers > for other branch sample filter flags. > > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc: Arnaldo Carvalho de Melo > Cc: linux-perf-users@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Anshuman Khandual Acked-by: Peter Zijlstra (Intel) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel