Lines Matching refs:config
46 bool ParseConfigToCmd(const HiperfPluginConfig& config, std::vector<std::string>& cmds) in ParseConfigToCmd() argument
48 g_isRoot = config.is_root(); in ParseConfigToCmd()
49 auto logLevel = config.log_level(); in ParseConfigToCmd()
65 if (!config.outfile_name().empty()) { in ParseConfigToCmd()
66 prepareCmd += " -o " + config.outfile_name(); in ParseConfigToCmd()
68 …int ret = strncpy_s(g_pluginModule.outFileName, fileSize, config.outfile_name().c_str(), fileSize … in ParseConfigToCmd()
69 … CHECK_TRUE(ret == EOK, false, "strncpy_s error! outfile is %s", config.outfile_name().c_str()); in ParseConfigToCmd()
71 if (!config.record_args().empty()) { in ParseConfigToCmd()
72 prepareCmd += " " + config.record_args(); in ParseConfigToCmd()
115 HiperfPluginConfig config; in HiperfPluginSessionStart() local
116 bool res = config.ParseFromArray(configData, configSize); in HiperfPluginSessionStart()
120 res = ParseConfigToCmd(config, cmds); in HiperfPluginSessionStart()