Thread (208 messages) 208 messages, 21 authors, 2024-02-29

Re: [PATCH v3 31/35] lib: add memory allocations report in show_mem()

From: Kent Overstreet <kent.overstreet@linux.dev>
Date: 2024-02-13 04:34:00
Also in: cgroups, linux-arch, linux-doc, linux-fsdevel, linux-iommu, linux-mm, lkml

On Mon, Feb 12, 2024 at 07:22:42PM -0500, Steven Rostedt wrote:
On Mon, 12 Feb 2024 16:10:02 -0800
Kees Cook [off-list ref] wrote:
quoted
quoted
 #endif
+#ifdef CONFIG_MEM_ALLOC_PROFILING
+	{
+		struct seq_buf s;
+		char *buf = kmalloc(4096, GFP_ATOMIC);  
Why 4096? Maybe use PAGE_SIZE instead?
Will it make a difference for architectures that don't have 4096 PAGE_SIZE?
Like PowerPC which has PAGE_SIZE of anywhere between 4K to 256K!
it's just a string buffer
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help