| 2764 | CTL_RO_NL_CGEN(config_prof, lg_prof_sample, lg_prof_sample, size_t) |
| 2765 | |
| 2766 | static int |
| 2767 | prof_log_start_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, |
| 2768 | size_t *oldlenp, void *newp, size_t newlen) { |
| 2769 | int ret; |
| 2770 | |
| 2771 | const char *filename = NULL; |
| 2772 | |
| 2773 | if (!config_prof) { |
| 2774 | return ENOENT; |
| 2775 | } |
| 2776 | |
| 2777 | WRITEONLY(); |
| 2778 | WRITE(filename, const char *); |
| 2779 | |
| 2780 | if (prof_log_start(tsd_tsdn(tsd), filename)) { |
| 2781 | ret = EFAULT; |
| 2782 | goto label_return; |
| 2783 | } |
| 2784 | |
| 2785 | ret = 0; |
| 2786 | label_return: |
| 2787 | return ret; |
| 2788 | } |
| 2789 | |
| 2790 | static int |
| 2791 | prof_log_stop_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, |
nothing calls this directly
no test coverage detected