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

Function prof_dump_ctl

deps/jemalloc/src/ctl.c:2691–2712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2689}
2690
2691static int
2692prof_dump_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,
2693 void *oldp, size_t *oldlenp, void *newp, size_t newlen) {
2694 int ret;
2695 const char *filename = NULL;
2696
2697 if (!config_prof) {
2698 return ENOENT;
2699 }
2700
2701 WRITEONLY();
2702 WRITE(filename, const char *);
2703
2704 if (prof_mdump(tsd, filename)) {
2705 ret = EFAULT;
2706 goto label_return;
2707 }
2708
2709 ret = 0;
2710label_return:
2711 return ret;
2712}
2713
2714static int
2715prof_gdump_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,

Callers

nothing calls this directly

Calls 1

prof_mdumpFunction · 0.70

Tested by

no test coverage detected