MCPcopy Create free account
hub / github.com/apache/nuttx / note_isenabled_switch

Function note_isenabled_switch

drivers/note/note_driver.c:276–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274
275#ifdef CONFIG_SCHED_INSTRUMENTATION_SWITCH
276static inline int note_isenabled_switch(FAR struct note_driver_s *driver)
277{
278#ifdef CONFIG_SCHED_INSTRUMENTATION_FILTER
279 if (!note_isenabled(driver))
280 {
281 return false;
282 }
283
284 /* If the switch trace is disabled, do nothing. */
285
286 if ((driver->filter.mode.flag & NOTE_FILTER_MODE_FLAG_SWITCH) == 0)
287 {
288 return false;
289 }
290#endif
291
292 return true;
293}
294#endif /* CONFIG_SCHED_INSTRUMENTATION_SWITCH */
295
296/****************************************************************************

Callers 6

sched_note_suspendFunction · 0.85
sched_note_resumeFunction · 0.85
sched_note_cpu_pauseFunction · 0.85
sched_note_cpu_pausedFunction · 0.85
sched_note_cpu_resumeFunction · 0.85
sched_note_cpu_resumedFunction · 0.85

Calls 1

note_isenabledFunction · 0.85

Tested by

no test coverage detected