| 120 | } |
| 121 | |
| 122 | static inline int profiling_get_ctx(profiling_ctx_t *ctx) |
| 123 | { |
| 124 | profiling_handlers_t *handlers; |
| 125 | |
| 126 | for (handlers = profiling_handlers; handlers; handlers = handlers->next) |
| 127 | if ((handlers->accepted_data_types & PROFILING_DATA_TYPE_SCRIPT) && |
| 128 | handlers->get_ctx && handlers->get_ctx(ctx)) |
| 129 | return 1; |
| 130 | |
| 131 | return 0; |
| 132 | } |
| 133 | |
| 134 | static inline int profiling_set_ctx(const profiling_ctx_t *ctx) |
| 135 | { |