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 6FEFFC48295 for ; Mon, 5 Feb 2024 13:06:39 +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:MIME-Version:References:In-Reply-To: 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=n0rAwOf4L4GzjfXBuJDH4Th8kxomsKJu/HsOHQpRtPo=; b=BD3GrVk/sEDAd9 DJILGcgq3BSQAAgvbuqZy+d8t1WM/bc9zConYjJaHEZHgcBCRGKcM58cYhm6rxBW2/eTcKGdbe9D+ S+aHL1hgMp2lY6ywt1VDU81m6f/5g4/2Jz/jkru5aGCjTPCQ0iEN8k7UT7Kc+iYzoU45l0mpkk0iR 5CYg8/zk+dIYqBVwuP8tbNwIkXBiBbtUsLAA9JJSkjzXlTFNQ22rhZiI4cI2psA8CV0qIHrCgoDoa cLlTaluDh4GR98Pxzfxxu2fzC+xg7qe6eaP76LAW02c3Qk8NiuAG1nNuR+GXvZqQU7QTmHwe4/1kM yOoeChySlseBTzG8WwYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rWyg3-00000003M2H-0TYN; Mon, 05 Feb 2024 13:06:23 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rWyfz-00000003M0t-1nkC for linux-arm-kernel@lists.infradead.org; Mon, 05 Feb 2024 13:06:21 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id F2FDACE0E95; Mon, 5 Feb 2024 13:06:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D183C433F1; Mon, 5 Feb 2024 13:06:13 +0000 (UTC) Date: Mon, 5 Feb 2024 08:06:09 -0500 From: Steven Rostedt To: Mark Rutland Cc: richard clark , nico@fluxnic.net, mhiramat@kernel.org, linux-arm-kernel@lists.infradead.org, linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Question about the ipi_raise filter usage and output Message-ID: <20240205080609.563df00f@rorschach.local.home> In-Reply-To: References: X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240205_050619_674324_236E8EAB X-CRM114-Status: GOOD ( 11.89 ) 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, 5 Feb 2024 10:28:57 +0000 Mark Rutland wrote: > > I try to write below: > > echo 'target_cpus == 11 && reason == "Function call interrupts"' > > > events/ipi/ipi_raise/filter > > The '=' checks if the target_cpus bitmap *only* contains CPU 11. If the cpumask > contains other CPUs, the filter will skip the call. > > I believe you can use '&' to check whether a cpumask contains a CPU, e.g. > > 'target_cpus & 11' 11 == 0xb = b1011 So the above would only be true for CPUs 0,1 and 3 ;-) I think you meant: 'target_cpus & 0x800' I tried "1 << 11' but it appears to not allow shifts. I wonder if we should add that? -- Steve _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel