You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/04/18 18:53:42 UTC

[nuttx] branch master updated (f5f0af4f9c -> 2188c0f9a8)

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


    from f5f0af4f9c arch/arm64: fixed backtrace skip calc error
     new 75d95ae01a trace: replace SCHED_NOTE_BEGIN to sched_note_begin
     new a297ff61f5 drivers/note: replace sched_note_filter_dump to sched_note_filter_tag
     new 2188c0f9a8 trace: modify the dependency to SCHED_INSTRUMENTATION_DUMP

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 Kconfig                    |  2 +-
 drivers/note/note_driver.c |  8 ++++----
 include/nuttx/sched_note.h | 10 +++++-----
 include/nuttx/trace.h      |  4 ++--
 4 files changed, 12 insertions(+), 12 deletions(-)


[nuttx] 03/03: trace: modify the dependency to SCHED_INSTRUMENTATION_DUMP

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 2188c0f9a8407405872c671ac6e6277e81e4a406
Author: yinshengkai <yi...@xiaomi.com>
AuthorDate: Sat Apr 8 17:00:25 2023 +0800

    trace: modify the dependency to SCHED_INSTRUMENTATION_DUMP
    
    Signed-off-by: yinshengkai <yi...@xiaomi.com>
---
 Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Kconfig b/Kconfig
index d67b1b9692..b3ed47f5d1 100644
--- a/Kconfig
+++ b/Kconfig
@@ -2009,7 +2009,7 @@ endmenu # Debug Options
 menuconfig  TRACE
 	bool "Enable tracepoints"
 	default n
-	depends on SCHED_INSTRUMENTATION
+	depends on SCHED_INSTRUMENTATION_DUMP
 	---help---
 		If this option is enabled, tracepoints at critical code in
 		the kernel will be enabled.


[nuttx] 02/03: drivers/note: replace sched_note_filter_dump to sched_note_filter_tag

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit a297ff61f5e9807f4762807b75fffaaf900163e1
Author: yinshengkai <yi...@xiaomi.com>
AuthorDate: Sat Apr 8 15:22:55 2023 +0800

    drivers/note: replace sched_note_filter_dump to sched_note_filter_tag
    
    Signed-off-by: yinshengkai <yi...@xiaomi.com>
---
 drivers/note/note_driver.c |  8 ++++----
 include/nuttx/sched_note.h | 10 +++++-----
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/note/note_driver.c b/drivers/note/note_driver.c
index ee47b5c779..fc079c11fd 100644
--- a/drivers/note/note_driver.c
+++ b/drivers/note/note_driver.c
@@ -467,7 +467,7 @@ static inline int note_isenabled_dump(uint32_t tag)
   /* If the dump trace is disabled, do nothing. */
 
   if (!(g_note_filter.mode.flag & NOTE_FILTER_MODE_FLAG_DUMP) ||
-      NOTE_FILTER_DUMPMASK_ISSET(tag, &g_note_filter.tag_mask))
+      NOTE_FILTER_TAGMASK_ISSET(tag, &g_note_filter.tag_mask))
     {
       return false;
     }
@@ -1876,7 +1876,7 @@ void sched_note_filter_irq(FAR struct note_filter_irq_s *oldf,
  * Name: sched_note_filter_tag
  *
  * Description:
- *   Set and get tsg filter setting
+ *   Set and get tag filter setting
  *   (Same as NOTECTL_GETDUMPFILTER / NOTECTL_SETDUMPFILTER ioctls)
  *
  * Input Parameters:
@@ -1893,8 +1893,8 @@ void sched_note_filter_irq(FAR struct note_filter_irq_s *oldf,
  ****************************************************************************/
 
 #  ifdef CONFIG_SCHED_INSTRUMENTATION_DUMP
-void sched_note_filter_dump(FAR struct note_filter_tag_s *oldf,
-                            FAR struct note_filter_tag_s *newf)
+void sched_note_filter_tag(FAR struct note_filter_tag_s *oldf,
+                           FAR struct note_filter_tag_s *newf)
 {
   irqstate_t falgs;
 
diff --git a/include/nuttx/sched_note.h b/include/nuttx/sched_note.h
index 8e07bc7e1b..4810aa4b3a 100644
--- a/include/nuttx/sched_note.h
+++ b/include/nuttx/sched_note.h
@@ -109,13 +109,13 @@
 /* Helper macros for dump instrumentation filter */
 
 #ifdef CONFIG_SCHED_INSTRUMENTATION_DUMP
-#  define NOTE_FILTER_DUMPMASK_SET(tag, s) \
+#  define NOTE_FILTER_TAGMASK_SET(tag, s) \
   ((s)->tag_mask[(tag) / 8] |= (1 << ((tag) % 8)))
-#  define NOTE_FILTER_DUMPMASK_CLR(tag, s) \
+#  define NOTE_FILTER_TAGMASK_CLR(tag, s) \
   ((s)->tag_mask[(tag) / 8] &= ~(1 << ((tag) % 8)))
-#  define NOTE_FILTER_DUMPMASK_ISSET(tag, s) \
+#  define NOTE_FILTER_TAGMASK_ISSET(tag, s) \
   ((s)->tag_mask[(tag) / 8] & (1 << ((tag) % 8)))
-#  define NOTE_FILTER_DUMPMASK_ZERO(s) \
+#  define NOTE_FILTER_TAGMASK_ZERO(s) \
   memset((s), 0, sizeof(struct note_filter_tag_s));
 #endif
 
@@ -686,7 +686,7 @@ void sched_note_filter_irq(FAR struct note_filter_irq_s *oldf,
 #endif
 
 #if defined(CONFIG_SCHED_INSTRUMENTATION_FILTER) && \
-    defined(CONFIG_SCHED_INSTRUMENTATION_IRQHANDLER)
+    defined(CONFIG_SCHED_INSTRUMENTATION_DUMP)
 void sched_note_filter_tag(FAR struct note_filter_tag_s *oldf,
                            FAR struct note_filter_tag_s *newf);
 #endif


[nuttx] 01/03: trace: replace SCHED_NOTE_BEGIN to sched_note_begin

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 75d95ae01afbeaf8f94d2c21883eae0de0be211f
Author: yinshengkai <yi...@xiaomi.com>
AuthorDate: Sat Apr 8 15:22:55 2023 +0800

    trace: replace SCHED_NOTE_BEGIN to sched_note_begin
    
    Signed-off-by: yinshengkai <yi...@xiaomi.com>
---
 include/nuttx/trace.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/nuttx/trace.h b/include/nuttx/trace.h
index c79c9d7f08..70c68d3f67 100644
--- a/include/nuttx/trace.h
+++ b/include/nuttx/trace.h
@@ -32,8 +32,8 @@
  ****************************************************************************/
 
 #ifdef CONFIG_TRACE
-#  define trace_begin(tag) SCHED_NOTE_BEGIN(tag)
-#  define trace_end(tag) SCHED_NOTE_END(tag)
+#  define trace_begin(tag) sched_note_begin(tag)
+#  define trace_end(tag) sched_note_end(tag)
 #else
 #  define trace_begin(tag)
 #  define trace_end(tag)