xiaoxiang781216 commented on code in PR #19479:
URL: https://github.com/apache/nuttx/pull/19479#discussion_r3610860872


##########
sched/sched/sched_backtrace.c:
##########
@@ -28,15 +28,34 @@
 #include <nuttx/sched.h>
 #include <nuttx/init.h>
 
+#include <string.h>
+
 #include "sched.h"
 
 #ifdef CONFIG_ARCH_HAVE_BACKTRACE
 
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+#if defined(CONFIG_SMP) && defined(CONFIG_ARCH_ADDRENV)
+
+/* Depth of the scratch buffer used to relay a remote backtrace back to
+ * the caller, since the caller's own buffer may not be mapped in the
+ * address environment active on the target CPU.  Requests larger than
+ * this are serviced over multiple round trips.

Review Comment:
   why not switch to kmm_malloc if it's too big?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to