| 225 | |
| 226 | |
| 227 | static inline void profiling_proc_start(enum profiling_proc_level level, |
| 228 | int with_next) |
| 229 | { |
| 230 | profiling_handlers_t *handlers; |
| 231 | |
| 232 | if (!profiling_proc_level_enabled(level)) |
| 233 | return; |
| 234 | |
| 235 | proc_depth = 0; |
| 236 | if (with_next) { |
| 237 | profiling_proc_pending_stack[proc_depth].name = |
| 238 | pt[process_no].desc; |
| 239 | profiling_proc_pending_stack[proc_depth].file = NULL; |
| 240 | profiling_proc_pending_stack[proc_depth].line = 0; |
| 241 | profiling_proc_pending_stack[proc_depth].is_start = 1; |
| 242 | profiling_proc_pending_no = 1; |
| 243 | return; |
| 244 | } |
| 245 | |
| 246 | for (handlers = profiling_handlers; handlers; handlers = handlers->next) |
| 247 | if ((handlers->accepted_data_types & PROFILING_DATA_TYPE_PROC) && |
| 248 | handlers->on_start) |
| 249 | handlers->on_start(PROFILING_DATA_TYPE_PROC, pt[process_no].desc, |
| 250 | pt[process_no].type, proc_depth, NULL); |
| 251 | } |
| 252 | |
| 253 | |
| 254 | static inline void profiling_proc_end(enum profiling_proc_level level, |
no outgoing calls
no test coverage detected