You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/07/28 07:34:13 UTC

[GitHub] [incubator-nuttx] pengxiang-hao opened a new pull request, #6724: add heapcheck(memcheck) flag

pengxiang-hao opened a new pull request, #6724:
URL: https://github.com/apache/incubator-nuttx/pull/6724

   ## Summary
   1. repalced  `TCB_FLAG_MEM_CHECK` by `TCB_FLAG_HEAPCHECK`
   2.  add heapcheck flag
   
   1 for open heapcheck, 0 for close
    `echo 1 > /proc/xxx/heapcheck`
    `echo 0 > /proc/xxx/heapcheck`
   
   ## Impact
   Using of `TCB_FLAG_MEM_CHECK` may need to be replaced with `TCB_FLAG_HEAPCHECK`.
   
   ## Testing
   Vela CI
   


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6724: add heapcheck(memcheck) flag

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on code in PR #6724:
URL: https://github.com/apache/incubator-nuttx/pull/6724#discussion_r931915457


##########
fs/procfs/fs_procfsproc.c:
##########
@@ -284,6 +292,11 @@ static const struct proc_node_s g_heap =
 {
   "heap",         "heap",   (uint8_t)PROC_HEAP,          DTYPE_FILE        /* Task heap info */
 };
+
+static const struct proc_node_s g_heapcheck =

Review Comment:
   should guard by #ifdef CONFIG_DEBUG_MM



##########
fs/procfs/fs_procfsproc.c:
##########
@@ -328,6 +341,7 @@ static FAR const struct proc_node_s * const g_nodeinfo[] =
 #endif
 #if CONFIG_MM_BACKTRACE >= 0
   &g_heap,         /* Task heap info */
+  &g_heapcheck,    /* Task heap check flag */

Review Comment:
   should guard by #ifdef CONFIG_DEBUG_MM



##########
fs/procfs/fs_procfsproc.c:
##########
@@ -950,6 +965,53 @@ static ssize_t proc_heap(FAR struct proc_file_s *procfile,
                              &offset);
   return totalsize;
 }
+
+static ssize_t proc_heapcheck(FAR struct proc_file_s *procfile,

Review Comment:
   ditto



##########
fs/procfs/fs_procfsproc.c:
##########
@@ -354,6 +368,7 @@ static const struct proc_node_s * const g_level0info[] =
 #endif
 #if CONFIG_MM_BACKTRACE >= 0
   &g_heap,         /* Task heap info */
+  &g_heapcheck,    /* Task heap check flag */

Review Comment:
   ditto



##########
fs/procfs/fs_procfsproc.c:
##########
@@ -182,6 +183,12 @@ static ssize_t proc_critmon(FAR struct proc_file_s *procfile,
 static ssize_t proc_heap(FAR struct proc_file_s *procfile,
                          FAR struct tcb_s *tcb, FAR char *buffer,
                          size_t buflen, off_t offset);
+static ssize_t proc_heapcheck(FAR struct proc_file_s *procfile,

Review Comment:
   should guard by #ifdef CONFIG_DEBUG_MM



-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-nuttx] davids5 commented on pull request #6724: add heapcheck(memcheck) flag

Posted by GitBox <gi...@apache.org>.
davids5 commented on PR #6724:
URL: https://github.com/apache/incubator-nuttx/pull/6724#issuecomment-1197894248

   @xiaoxiang781216 - I think we cross posted. There have been no changes since I reviewed the PR and asked for changes.


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #6724: add heapcheck(memcheck) flag

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged PR #6724:
URL: https://github.com/apache/incubator-nuttx/pull/6724


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #6724: add heapcheck(memcheck) flag

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on PR #6724:
URL: https://github.com/apache/incubator-nuttx/pull/6724#issuecomment-1200423864

   @davids5 please review the update.


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-nuttx] davids5 commented on a diff in pull request #6724: add heapcheck(memcheck) flag

Posted by GitBox <gi...@apache.org>.
davids5 commented on code in PR #6724:
URL: https://github.com/apache/incubator-nuttx/pull/6724#discussion_r931966111


##########
fs/procfs/fs_procfsproc.c:
##########
@@ -92,6 +92,7 @@ enum proc_node_e
 #endif
 #if CONFIG_MM_BACKTRACE >= 0
   PROC_HEAP,                          /* Task heap info */
+  PROC_HEAP_CHECK,                    /* Tash heap check flag */

Review Comment:
   ```suggestion
     PROC_HEAP_CHECK,                    /* Task heap check flag */
   ```



-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-nuttx] davids5 commented on pull request #6724: add heapcheck(memcheck) flag

Posted by GitBox <gi...@apache.org>.
davids5 commented on PR #6724:
URL: https://github.com/apache/incubator-nuttx/pull/6724#issuecomment-1197925060

   > > @xiaoxiang781216 - I think we cross posted. There have been no changes since I reviewed the PR and asked for changes.
   > 
   > I think "The title and Summary, Impact, Testing" is updated, but the code isn't. @pengxiang-hao please update the code too.
   
   GH logs the edits. I do not see any sine I posted. Do you?


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #6724: add heapcheck(memcheck) flag

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on PR #6724:
URL: https://github.com/apache/incubator-nuttx/pull/6724#issuecomment-1197922250

   > @xiaoxiang781216 - I think we cross posted. There have been no changes since I reviewed the PR and asked for changes.
   
   I think "The title and Summary, Impact, Testing" is updated, but the code isn't. @pengxiang-hao please update the code too.


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org