| 132 | } |
| 133 | |
| 134 | static inline int profiling_set_ctx(const profiling_ctx_t *ctx) |
| 135 | { |
| 136 | profiling_handlers_t *handlers; |
| 137 | int ret = 0; |
| 138 | |
| 139 | for (handlers = profiling_handlers; handlers; handlers = handlers->next) |
| 140 | if ((handlers->accepted_data_types & PROFILING_DATA_TYPE_SCRIPT) && |
| 141 | handlers->set_ctx && handlers->set_ctx(ctx)) |
| 142 | ret = 1; |
| 143 | |
| 144 | return ret; |
| 145 | } |
| 146 | |
| 147 | |
| 148 |
no outgoing calls
no test coverage detected