Thread (13 messages) 13 messages, 3 authors, 2023-12-14

Re: [PATCH v9 1/4] arm64: mte: implement CONFIG_ARM64_MTE_COMP

From: Will Deacon <will@kernel.org>
Date: 2023-12-13 12:16:15
Also in: lkml

On Tue, Dec 12, 2023 at 05:16:15PM +0000, Catalin Marinas wrote:
On Mon, Nov 13, 2023 at 11:52:30AM +0100, Alexander Potapenko wrote:
quoted
The config implements the algorithm compressing memory tags for ARM MTE
during swapping.

The algorithm is based on RLE and specifically targets buffers of tags
corresponding to a single page. In many cases a buffer can be compressed
into 63 bits, making it possible to store it without additional memory
allocation.

Suggested-by: Evgenii Stepanov <redacted>
Signed-off-by: Alexander Potapenko <glider@google.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
quoted
+void mte_tags_to_ranges(u8 *tags, u8 *out_tags, unsigned short *out_sizes,
+			size_t *out_len)
+{
[...]
quoted
+}
+EXPORT_SYMBOL_NS(mte_tags_to_ranges, MTECOMP);
I may have asked before, what the reason for EXPORT_SYMBOL_NS? Is it for
the kunit tests? Otherwise we don't expect those to be accessed from
modules.
It looks like it. The Kconfig option for the test is tristate and it calls
this symbol directly.

Will

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help