| 462 | } |
| 463 | |
| 464 | void trace_span_resume_(const void *key, const char *lbl) |
| 465 | { |
| 466 | if (disable_trace) |
| 467 | return; |
| 468 | |
| 469 | size_t numkey = trace_key(key); |
| 470 | current = trace_span_find(numkey); |
| 471 | assert(current->suspended); |
| 472 | current->suspended = false; |
| 473 | TRACE_DBG("Resuming span %s (%zu)\n", current->name, current->key); |
| 474 | DTRACE_PROBE1(lightningd, span_resume, current->id); |
| 475 | if (trace_to_file) { |
| 476 | fprintf(trace_to_file, "span_resume %016" PRIx64 "\n", |
| 477 | current->id); |
| 478 | fflush(trace_to_file); |
| 479 | } |
| 480 | } |
| 481 | |
| 482 | void trace_cleanup(void) |
| 483 | { |
nothing calls this directly
no test coverage detected