xiaoqizhan commented on code in PR #18468:
URL: https://github.com/apache/nuttx/pull/18468#discussion_r2867477533
##########
mm/mm_heap/mm_memdump.c:
##########
@@ -223,6 +223,29 @@ static void memdump_handler(FAR struct mm_allocnode_s
*node, FAR void *arg)
}
}
+#if CONFIG_MM_BACKTRACE >= 0
+struct memdump_tcb_arg_s
+{
+ FAR struct mm_heap_s *heap;
+ unsigned long seqmin;
+ unsigned long seqmax;
Review Comment:
@acassis ,Thank you for your review and feedback. The parameters of the
memdump command are passed down via the memdump_write method, with the relevant
code in this method as follows:
struct mm_memdump_s dump =
{
PID_MM_ALLOC,
#if CONFIG_MM_BACKTRACE >= 0
0,
ULONG_MAX
#endif
};
The type of mm_memdump_s is struct malltask, whose definition is shown below:
struct malltask
{
pid_t pid; /* Process id */
#if CONFIG_MM_BACKTRACE >= 0
unsigned long seqmin; /* The minimum sequence */
unsigned long seqmax; /* The maximum sequence */
#endif
};
To maintain consistency with the previous data types, I also use unsigned
long for seqmin and seqmax here.
--
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]