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

Function note_isenabled

drivers/note/note_driver.c:238–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236 ****************************************************************************/
237
238static inline int note_isenabled(FAR struct note_driver_s *driver)
239{
240#ifdef CONFIG_SCHED_INSTRUMENTATION_FILTER
241 if (!(driver->filter.mode.flag & NOTE_FILTER_MODE_FLAG_ENABLE))
242 {
243 return false;
244 }
245
246#ifdef CONFIG_SMP
247 /* Ignore notes that are not in the set of monitored CPUs */
248
249 if (CPU_ISSET(this_cpu(), &driver->filter.mode.cpuset) == 0)
250 {
251 /* Not in the set of monitored CPUs. Do not log the note. */
252
253 return false;
254 }
255#endif
256#endif
257
258 return true;
259}
260
261/****************************************************************************
262 * Name: note_isenabled_switch

Callers 12

note_isenabled_switchFunction · 0.85
note_isenabled_syscallFunction · 0.85
note_isenabled_irqFunction · 0.85
note_isenabled_dumpFunction · 0.85
sched_note_startFunction · 0.85
sched_note_stopFunction · 0.85
sched_note_cpu_startFunction · 0.85
sched_note_cpu_startedFunction · 0.85
sched_note_preemptionFunction · 0.85
sched_note_csectionFunction · 0.85
sched_note_spinlockFunction · 0.85
sched_note_heapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected