| 438 | } |
| 439 | |
| 440 | static void destroy_trace_span(const void *key) |
| 441 | { |
| 442 | size_t numkey = trace_key(key); |
| 443 | struct span *span = trace_span_find(numkey); |
| 444 | |
| 445 | /* It's usually ended normally. */ |
| 446 | if (!span) |
| 447 | return; |
| 448 | |
| 449 | /* Otherwise resume so we can terminate it */ |
| 450 | if (trace_to_file) |
| 451 | fprintf(trace_to_file, "destroying span\n"); |
| 452 | trace_span_resume(key); |
| 453 | trace_span_end(key); |
| 454 | } |
| 455 | |
| 456 | void trace_span_suspend_may_free_(const void *key, const char *lbl) |
| 457 | { |
nothing calls this directly
no test coverage detected