| 418 | } |
| 419 | |
| 420 | void trace_span_suspend_(const void *key, const char *lbl) |
| 421 | { |
| 422 | if (disable_trace) |
| 423 | return; |
| 424 | |
| 425 | size_t numkey = trace_key(key); |
| 426 | struct span *span = trace_span_find(numkey); |
| 427 | TRACE_DBG("Suspending span %s (%zu)\n", current->name, current->key); |
| 428 | assert(current == span); |
| 429 | assert(!span->suspended); |
| 430 | span->suspended = true; |
| 431 | current = current->parent; |
| 432 | DTRACE_PROBE1(lightningd, span_suspend, span->id); |
| 433 | if (trace_to_file) { |
| 434 | fprintf(trace_to_file, "span_suspend %016" PRIx64 "\n", |
| 435 | span->id); |
| 436 | fflush(trace_to_file); |
| 437 | } |
| 438 | } |
| 439 | |
| 440 | static void destroy_trace_span(const void *key) |
| 441 | { |
no test coverage detected