linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] membarrier: allow cpu_id to be set on more commands
@ 2025-06-26 15:52 Dylan Yudaken
  2025-06-26 15:52 ` [PATCH 1/2] " Dylan Yudaken
  2025-06-26 15:52 ` [PATCH 2/2] membarrier: self test for cpu specific calls Dylan Yudaken
  0 siblings, 2 replies; 5+ messages in thread
From: Dylan Yudaken @ 2025-06-26 15:52 UTC (permalink / raw)
  To: mathieu.desnoyers, paulmck
  Cc: mingo, peterz, juri.lelli, vincent.guittot, dietmar.eggemann,
	rostedt, bsegall, mgorman, vschneid, shuah, linux-kernel,
	linux-kselftest, Dylan Yudaken

Hi,

I noticed that only the RSEQ membarrier command allows specifying a
specific cpu. I have a (extremely toy) lib I was playing around with [1] and
noticed this and that being able to specify the cpu would be useful to
me.

I'm by no means an expert in this code though - and so could be
totally missing something.

Additionally this seems really difficult to actually test. I added a
self test that just proces "some" interrupts are being sent, but
nothing more than that. I don't know what else can be done there.

Patch 1 is the main change
Patch 2 is the self-test. Which maybe you don't want at all.

[1]: https://github.com/DylanZA/rseqlock/commit/be7bc7214fd5aacec47e26126118f8bbdda0f0ea

Thanks,
Dylan


Dylan Yudaken (2):
  membarrier: allow cpu_id to be set on more commands
  membarrier: self test for cpu specific calls

 kernel/sched/membarrier.c                     |   6 +-
 tools/testing/selftests/membarrier/.gitignore |   1 +
 tools/testing/selftests/membarrier/Makefile   |   3 +-
 .../membarrier/membarrier_test_expedited.c    | 135 ++++++++++++++++++
 .../membarrier/membarrier_test_impl.h         |   5 +
 5 files changed, 148 insertions(+), 2 deletions(-)
 create mode 100644 tools/testing/selftests/membarrier/membarrier_test_expedited.c


base-commit: ee88bddf7f2f5d1f1da87dd7bedc734048b70e88
-- 
2.49.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-06-26 18:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-26 15:52 [PATCH 0/2] membarrier: allow cpu_id to be set on more commands Dylan Yudaken
2025-06-26 15:52 ` [PATCH 1/2] " Dylan Yudaken
2025-06-26 16:07   ` Mathieu Desnoyers
2025-06-26 18:30     ` Dylan
2025-06-26 15:52 ` [PATCH 2/2] membarrier: self test for cpu specific calls Dylan Yudaken

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).