From 1f46cc39fc3e48914cc50ebfcdac462c1e67cf3c Mon Sep 17 00:00:00 2001 From: Dan Crowell Date: Wed, 6 Nov 2019 16:25:17 -0600 Subject: [PATCH] Increase size of default printk buffer in error logs Recent changes to add more data to our exception path have made the printk output we get in our error logs less useful than it should be. It currently takes at minimum 1076 bytes for a single exception. That number would increase if the backtrace got very large. This change resizes the buffer to allow for 17 stack frames within a single exception (1280 bytes). Change-Id: I029283ee39877c3ace812fd85c0fbc26cdecf230 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/86596 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Matt Derksen Reviewed-by: Zachary Clark Reviewed-by: Nicholas E Bofferding --- src/include/usr/errl/errludprintk.H | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/include/usr/errl/errludprintk.H b/src/include/usr/errl/errludprintk.H index 4d304ff46c6..629716e6816 100644 --- a/src/include/usr/errl/errludprintk.H +++ b/src/include/usr/errl/errludprintk.H @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2014 */ +/* Contributors Listed Below - COPYRIGHT 2014,2019 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -39,7 +41,7 @@ namespace ERRORLOG class ErrlUserDetailsPrintk : public ErrlUserDetails { public: - enum { DEFAULT_SIZE_BYTES = 256 }; + enum { DEFAULT_SIZE_BYTES = 1280 }; /** @brief Constructor *