From: Steven Rostedt <rostedt@goodmis.org>
To: Mark Rutland <mark.rutland@arm.com>
Cc: richard clark <richard.xnu.clark@gmail.com>,
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
Date: Mon, 5 Feb 2024 08:06:09 -0500 [thread overview]
Message-ID: <20240205080609.563df00f@rorschach.local.home> (raw)
In-Reply-To: <ZcC4aWWKFU1NgrZM@FVFF77S0Q05N>
On Mon, 5 Feb 2024 10:28:57 +0000
Mark Rutland <mark.rutland@arm.com> 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
next prev parent reply other threads:[~2024-02-05 13:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-05 9:57 Question about the ipi_raise filter usage and output richard clark
2024-02-05 10:28 ` Mark Rutland
2024-02-05 13:06 ` Steven Rostedt [this message]
2024-02-05 14:39 ` Mark Rutland
2024-02-05 16:05 ` Valentin Schneider
2024-02-06 8:42 ` richard clark
2024-02-06 9:39 ` Valentin Schneider
2024-02-07 2:28 ` richard clark
2024-02-07 2:33 ` richard clark
2024-02-05 10:38 ` Steven Rostedt
2024-02-06 2:47 ` richard clark
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240205080609.563df00f@rorschach.local.home \
--to=rostedt@goodmis.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mhiramat@kernel.org \
--cc=nico@fluxnic.net \
--cc=richard.xnu.clark@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox