drivers/note: replace sched_note_filter_dump to sched_note_filter_tag

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2023-04-08 15:22:55 +08:00 committed by Xiang Xiao
parent 75d95ae01a
commit a297ff61f5
2 changed files with 9 additions and 9 deletions

View File

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

View File

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