[RFC 0/2] lib/vsprintf: Add support for pte_t

Anshuman Khandual posted 2 patches 3 months, 3 weeks ago
Documentation/core-api/printk-formats.rst | 14 ++++++++++++
lib/tests/printf_kunit.c                  | 26 +++++++++++++++++++++++
lib/vsprintf.c                            | 20 +++++++++++++++++
mm/memory.c                               |  5 ++---
scripts/checkpatch.pl                     |  2 +-
5 files changed, 63 insertions(+), 4 deletions(-)
[RFC 0/2] lib/vsprintf: Add support for pte_t
Posted by Anshuman Khandual 3 months, 3 weeks ago
Printing page table entries has been a common requirement both in generic
and platform memory management for various purposes. Let's just create a
dedicated printk format for such entries which will also help standardize
printing across different platforms.

Also add a test for this new print format in lib/tests/printf_kunit.c via
CONFIG_PRINTF_KUNIT_TEST.

This series applies on v6.16-rc2

Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Petr Mladek <pmladek@suse.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: David Hildenbrand <david@redhat.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-doc@vger.kernel.org
Cc: linux-mm@kvack.org

Anshuman Khandual (2):
  lib/vsprintf: Add support for pte_t
  kunit: printf: Add test case for pte_t

 Documentation/core-api/printk-formats.rst | 14 ++++++++++++
 lib/tests/printf_kunit.c                  | 26 +++++++++++++++++++++++
 lib/vsprintf.c                            | 20 +++++++++++++++++
 mm/memory.c                               |  5 ++---
 scripts/checkpatch.pl                     |  2 +-
 5 files changed, 63 insertions(+), 4 deletions(-)

-- 
2.30.2