Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2382662rdb; Mon, 5 Feb 2024 05:07:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IECybgkA6PzNamJzApvkUHeYURX4jStS9AbYDqSoRr1mVFZMqKLtvCfTrsvHohKu+kw90L9 X-Received: by 2002:a17:906:3091:b0:a37:2738:1eab with SMTP id 17-20020a170906309100b00a3727381eabmr4748173ejv.55.1707138430454; Mon, 05 Feb 2024 05:07:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707138430; cv=pass; d=google.com; s=arc-20160816; b=p0aB72Xi4BStW8WWfQgVS1ryYEWhgv2Gx+boPa1R2Dn0KwOii9YfNe6qHYKDiWxNuB m4YC9dFYSOTHVA7USruQszDc4TFwa3WTWOoXe3TYPyhWwRSPCqf3N2XCaptypzVGw/lA g0uH3s9ldM1OuQ4qSZypWu4SS71CA01LK0Gji+sewcwOiEGMxHI6m2iG42xo2loDKCKS zl7FprycaK+N/3pfacV+GI056S/HzWwZKv91wyUTp7ffq56R1DJwt3+wbe2T5NSaJ9T+ eWLIQm7dv/6K3kUJPnyj6IyykXLhSkuGIiUOmdbWFedhs4eEvOiPDnaXqNlbkgQ7KqGd tpZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=T3sL/1E42a/qNsy3ZWwMhzGRqXsH9G3MJTq2jw+ks7w=; fh=h+tpUR9mhPtVK1AxBaUrkV92j30QTTnFuD9U4vleEew=; b=aL1vL6v4kfUZH4fkDoe0f4UvE4JOsEewyG1bgo2Jhcnj0DbbiTxInHAHPril60rdpz XHHmTy9lPCQ9sfSeykb8if2s6m8RrCTjk0mybk397BPMQj/JfARTdFBt7T+RNCQumf4N zTjUAs1FjzXzaqBuC4XdbJxLPvNygMmhG3Ihor35n+SNqM6Dc5Unn7vIylU1N9VBRGWA lNR584gMACyH7VmqmDhF0XADxo/GgphXqCQ1XFO9Mac+VQzwvguS0zjkslBu0C2W0Ij3 6Pxto0EN/aVectNML1mS73XhZ/oSIfWjljEvPdXAOtt0GoJ0Tse8hI+Szvf1FLPbjxM+ nCKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-52682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52682-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCWqI/NFBPZeOmdXvtk+iHvMoMdkceff2o+DQAnpmXhAGDlrt1LLlzuLElYMWcfdw0LN7TiGYkTpsNbkt+d8phHIVG+WD1KGQ/MrTAYA3w== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dk11-20020a170906f0cb00b00a363335101bsi3919144ejb.927.2024.02.05.05.07.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 05:07:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-52682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52682-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D74C91F26EB1 for ; Mon, 5 Feb 2024 13:06:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 698EB1BDD3; Mon, 5 Feb 2024 13:06:16 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE95C210E6; Mon, 5 Feb 2024 13:06:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707138375; cv=none; b=t5SccQdXfUJP6dl/Grrmbe3gOSvfSphFOeT1n/lAIoydedf3o/OHqbNu2wLWM2meO6Lh/KZ75C1iRrWD6AD5IJZR3+rpWbzsH+Dr2ii9Eim7zGMjd8IJCGxmoSQPKpE8IM4iYkfgNU8fE0lqsAu0xWJjM3RBj0DqFxl7HPDiOPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707138375; c=relaxed/simple; bh=jNCvi3Kx1udjn5zsmKNV0axNM8kCnrRuz3EFoPq0zNI=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jv2667yYsz8SrzfHnx26YrN3dcQb+lhU5xGxb4U4A8aYL26vsBLKfu+MZlOQGxitJas13NMPa7NllfwUeUgcADl9oZPx3Tg5dFp2Gmn+As/xZuT/pQlju8R48x819JcTlyc4EN+hX0tvmfzV3fszFMHc21jplKj9NfqkpphJbSI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 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) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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