| 2559 | } |
| 2560 | |
| 2561 | static int |
| 2562 | prof_dump_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, |
| 2563 | size_t *oldlenp, void *newp, size_t newlen) { |
| 2564 | int ret; |
| 2565 | const char *filename = NULL; |
| 2566 | |
| 2567 | if (!config_prof) { |
| 2568 | return ENOENT; |
| 2569 | } |
| 2570 | |
| 2571 | WRITEONLY(); |
| 2572 | WRITE(filename, const char *); |
| 2573 | |
| 2574 | if (prof_mdump(tsd, filename)) { |
| 2575 | ret = EFAULT; |
| 2576 | goto label_return; |
| 2577 | } |
| 2578 | |
| 2579 | ret = 0; |
| 2580 | label_return: |
| 2581 | return ret; |
| 2582 | } |
| 2583 | |
| 2584 | static int |
| 2585 | prof_gdump_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, |
nothing calls this directly
no test coverage detected