From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17717155757; Wed, 18 Jun 2025 04:12:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750219969; cv=none; b=Cdp7G62fND2YZqX2Q9/t6hHIZnglqF+vecpctJo4VBARx1+VK+37mxu7GU2vrZB0RfFhnvqlTgjtpv60N0TI6Kr9IhtPcX07PJCKiZLh4Z6TY+7o4XSyepinGap0EyAgsmdudBVD5qP4pKsoYDD3nXeyDBWyRHGE1gQzFH7FdOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750219969; c=relaxed/simple; bh=5iy3jpjdE93os/WkQGjSSWQf0eSkKBsaoPQNj+YzYP0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=JuWJMtQjZbNw2UhFlRcPaP5Bj7CWRMZjLrEdOtvmH2+FDT59J+1eOOoWPAkK78aRoiz/inwQ4lNAoy7qRqlXJqRvP1wv+dZ8NbnahpKbaZtFX3a9JZlIl+R1f+Rz5Ilc9UjF3+pSRTRaENGEMElG2AxrZMpEPP7f45nduCD0rrk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4FAF614BF; Tue, 17 Jun 2025 21:12:25 -0700 (PDT) Received: from a076716.blr.arm.com (a076716.blr.arm.com [10.164.21.47]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7E06C3F66E; Tue, 17 Jun 2025 21:12:42 -0700 (PDT) From: Anshuman Khandual To: linux-mm@kvack.org Cc: Anshuman Khandual , Andy Shevchenko , Rasmus Villemoes , Sergey Senozhatsky , Petr Mladek , Steven Rostedt , Jonathan Corbet , Andrew Morton , David Hildenbrand , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: [RFC 0/2] lib/vsprintf: Add support for pte_t Date: Wed, 18 Jun 2025 09:42:33 +0530 Message-Id: <20250618041235.1716143-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Cc: Rasmus Villemoes Cc: Sergey Senozhatsky Cc: Petr Mladek Cc: Steven Rostedt Cc: Jonathan Corbet Cc: Andrew Morton Cc: David Hildenbrand 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