mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH RFC 00/11] rust: add support for dynamic debug
@ 2026-10-11 12:52 Thomas Weißschuh
  2026-10-11 12:52 ` [PATCH RFC 01/11] rust: print: use CStr for __LOG_PREFIX Thomas Weißschuh
                   ` (10 more replies)
  0 siblings, 11 replies; 21+ messages in thread
From: Thomas Weißschuh @ 2026-10-11 12:52 UTC (permalink / raw)
  To: Jason Baron, Jim Cromie, Miguel Ojeda, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
	Trevor Gross, Danilo Krummrich, Daniel Almeida, Tamir Duberstein,
	Alexandre Courbot, Onur Özkan, Andrew Morton, Will Deacon,
	Peter Zijlstra, Mark Rutland, Lyude Paul, Yury Norov,
	Luis Chamberlain, Petr Pavlu, Daniel Gomez, Sami Tolvanen,
	Aaron Tomlin, Brendan Higgins, David Gow, Rae Moar,
	Greg Kroah-Hartman, Rafael J. Wysocki
  Cc: linux-kernel, rust-for-linux, linux-modules, linux-kselftest,
	kunit-dev, driver-core, Thomas Weißschuh

Add the Rust infrastructure to integrate with the dynamic debug
infrastructure.

Static keys are not used for now, as the full bindings are missing
for those. A follow-up series will add that.
Also custom classes are not supported yet, but could be added on top.

Patches 1-4: Generic Rust preparation patches.
Patches 5-7: C dynamic debug preparation patches.
Patches 8: Rust Dynamic debug infrastructure.
Patches 9-11: Rust Dynamic debug enablement.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (11):
      rust: print: use CStr for __LOG_PREFIX
      rust: sync: atomic: Add Atomic<u{8,16}>
      rust: num: Add Bounded::USABLE_BITS
      samples: rust_print: add debug messages
      dyndbg: use u32 for struct _ddebug bitfields
      dyndbg: make _ddebug::flags its own field
      dyndbg: use READ_ONCE()/WRITE_ONCE() to access descriptor flags
      rust: add support for dynamic debug
      rust: print: enable dynamic debug for pr_debug!()
      rust: device: remove logging methods
      rust: device: enable dynamic debug for dev_dbg!()

 MAINTAINERS                          |   1 +
 include/linux/dynamic_debug.h        |  13 +-
 lib/dynamic_debug.c                  |  24 ++--
 rust/bindings/bindings_helper.h      |   1 +
 rust/kernel/device.rs                | 175 +++++++++++------------
 rust/kernel/dynamic_debug.rs         | 264 +++++++++++++++++++++++++++++++++++
 rust/kernel/lib.rs                   |   6 +-
 rust/kernel/num/bounded.rs           |   3 +
 rust/kernel/print.rs                 |  21 +--
 rust/kernel/sync/atomic/predefine.rs |  44 ++++--
 rust/macros/module.rs                |   4 +-
 samples/rust/Makefile                |   2 +
 samples/rust/rust_print_main.rs      |   2 +
 scripts/rustdoc_test_gen.rs          |   4 +-
 14 files changed, 428 insertions(+), 136 deletions(-)
---
base-commit: 2dee3d3adcadcc57d62ba6608cd02f50b0c10264
change-id: 20260921-rust-dyndbg-17b822f24894

Best regards,
--  
Thomas Weißschuh <linux@weissschuh.net>


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

end of thread, other threads:[~2026-10-11 15:45 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-11 12:52 [PATCH RFC 00/11] rust: add support for dynamic debug Thomas Weißschuh
2026-10-11 12:52 ` [PATCH RFC 01/11] rust: print: use CStr for __LOG_PREFIX Thomas Weißschuh
2026-10-11 13:01   ` Gary Guo
2026-10-11 14:43     ` Thomas Weißschuh
2026-10-11 12:52 ` [PATCH RFC 02/11] rust: sync: atomic: Add Atomic<u{8,16}> Thomas Weißschuh
2026-10-11 13:04   ` Gary Guo
2026-10-11 12:52 ` [PATCH RFC 03/11] rust: num: Add Bounded::USABLE_BITS Thomas Weißschuh
2026-10-11 12:52 ` [PATCH RFC 04/11] samples: rust_print: add debug messages Thomas Weißschuh
2026-10-11 13:53   ` Miguel Ojeda
2026-10-11 14:48     ` Thomas Weißschuh
2026-10-11 12:52 ` [PATCH RFC 05/11] dyndbg: use u32 for struct _ddebug bitfields Thomas Weißschuh
2026-10-11 12:52 ` [PATCH RFC 06/11] dyndbg: make _ddebug::flags its own field Thomas Weißschuh
2026-10-11 13:23   ` Gary Guo
2026-10-11 14:47     ` Thomas Weißschuh
2026-10-11 15:44       ` Gary Guo
2026-10-11 12:52 ` [PATCH RFC 07/11] dyndbg: use READ_ONCE()/WRITE_ONCE() to access descriptor flags Thomas Weißschuh
2026-10-11 13:16   ` Gary Guo
2026-10-11 12:52 ` [PATCH RFC 08/11] rust: add support for dynamic debug Thomas Weißschuh
2026-10-11 12:52 ` [PATCH RFC 09/11] rust: print: enable dynamic debug for pr_debug!() Thomas Weißschuh
2026-10-11 12:52 ` [PATCH RFC 10/11] rust: device: remove logging methods Thomas Weißschuh
2026-10-11 12:52 ` [PATCH RFC 11/11] rust: device: enable dynamic debug for dev_dbg!() Thomas Weißschuh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®