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 <yinsheng...@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 <yinsheng...@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