| 274 | |
| 275 | #ifdef CONFIG_SCHED_INSTRUMENTATION_SWITCH |
| 276 | static 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 | /**************************************************************************** |
no test coverage detected