int subcommand_heaptrace_register (optparse_t *p) { optparse_err_t e; e = optparse_reg_subcommand (p, "heaptrace", cmd_heaptrace, NULL, "Control google-perftools heap profiling of flux-broker", NULL); if (e != OPTPARSE_SUCCESS) return (-1); e = optparse_reg_subcommands (optparse_get_subcommand (p, "heaptrace"), heaptrace_subcmds); return (e == OPTPARSE_SUCCESS ? 0 : -1); }
int subcommand_content_register (optparse_t *p) { optparse_err_t e; e = optparse_reg_subcommand (p, "content", cmd_content, NULL, "Access content store", NULL); if (e != OPTPARSE_SUCCESS) return (-1); e = optparse_reg_subcommands (optparse_get_subcommand (p, "content"), content_subcmds); return (e == OPTPARSE_SUCCESS ? 0 : -1); }
int subcommand_hwloc_register (optparse_t *p) { optparse_t *c; optparse_err_t e; e = optparse_reg_subcommand (p, "hwloc", cmd_hwloc, NULL, "Control/query resource-hwloc service", NULL); if (e != OPTPARSE_SUCCESS) return (-1); c = optparse_get_subcommand (p, "hwloc"); if ((e = optparse_reg_subcommands (c, hwloc_subcmds)) != OPTPARSE_SUCCESS) return (-1); e = optparse_set (optparse_get_subcommand (c, "lstopo"), OPTPARSE_SUBCMD_NOOPTS, 1); return (e == OPTPARSE_SUCCESS ? 0 : -1); }