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 2021/07/29 03:04:24 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #4250: sched/wqueue: added debug option to tag and print worker name

xiaoxiang781216 commented on a change in pull request #4250:
URL: https://github.com/apache/incubator-nuttx/pull/4250#discussion_r678788080



##########
File path: sched/wqueue/kwork_thread.c
##########
@@ -161,7 +170,15 @@ static int work_thread(int argc, FAR char *argv[])
            */
 
           leave_critical_section(flags);
+
+#ifdef CONFIG_WQUEUE_TAG_WORKER_NAME
+          sinfo("WORKER %s started\n", name_tag);
+#endif
           CALL_WORKER(worker, arg);

Review comment:
       Is it enough to print worker address? we can get the function name from address with any methods(e.g. System.map, addr2line, gdb).




-- 
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