| 236 | ****************************************************************************/ |
| 237 | |
| 238 | static 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 |
no outgoing calls
no test coverage detected