Re: [PATCH v2] printk: Improve memory usage logging during boot
From: Petr Mladek
Date: Wed Oct 16 2024 - 06:29:37 EST
On Tue 2024-10-15 05:47:55, Isaac Manjarres wrote:
> On Wed, Oct 02, 2024 at 11:04:48AM -0700, Isaac Manjarres wrote:
> > On Tue, Oct 01, 2024 at 05:46:31PM +0200, Petr Mladek wrote:
> > > On Mon 2024-09-30 11:48:24, Isaac J. Manjarres wrote:
> > > > With the new logs, it is much easier to see exactly why the memory
> > > > increased by 2304 KB:
> > > >
> > > Note need to send v3. I could update the commit message when committing
> > > the patch.
>
> I just wanted to follow up to see if there was anything else left
> for this patch? Otherwise, would it be possible to please merge this?
I am sorry for the delay and thanks for the reminder. Last weeks were
a bit hectic...
Anyway, I have just comitted the patch into printk/linux.git,
branch for-6.13.
Note:
I have updated the sample messages in the commit message as suggested
earlier.
Also I double checked the patch and simplified the comment
in the following hunk. The original one was a bit cryptic.
@@ -1185,20 +1196,25 @@ void __init setup_log_buf(int early)
if (!early && !new_log_buf_len)
log_buf_add_cpu();
- if (!new_log_buf_len)
+ if (!new_log_buf_len) {
+ /* Show the memory stats only once. */
+ if (!early)
+ goto out;
+
return;
+ }
, see also
https://git.kernel.org/pub/scm/linux/kernel/git/printk/linux.git/commit/?h=for-6.13&id=a961ec4e2860af4933e8c1763fe4f038c2d6ac80
Best Regards,
Petr