MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / prof_log_start_ctl

Function prof_log_start_ctl

deps/jemalloc/src/ctl.c:2766–2788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2764CTL_RO_NL_CGEN(config_prof, lg_prof_sample, lg_prof_sample, size_t)
2765
2766static int
2767prof_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;
2786label_return:
2787 return ret;
2788}
2789
2790static int
2791prof_log_stop_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,

Callers

nothing calls this directly

Calls 2

prof_log_startFunction · 0.85
tsd_tsdnFunction · 0.50

Tested by

no test coverage detected