Home
last modified time | relevance | path

Searched refs:longOptions (Results 1 – 4 of 4) sorted by relevance

/base/hiviewdfx/hidumper/frameworks/native/src/manager/
Ddump_implement.cpp186 static struct option longOptions[] = {{"cpufreq", no_argument, 0, 0}, in CmdParseWithParameter() local
195 int c = getopt_long(argc, argv, optStr, longOptions, &optionIndex); in CmdParseWithParameter()
199 DumpStatus status = ParseLongCmdOption(argc, opts_, longOptions, optionIndex, argv); in CmdParseWithParameter()
299 …s DumpImplement::ParseLongCmdOption(int argc, DumperOpts &opts_, const struct option longOptions[], in ParseLongCmdOption() argument
303 if (StringUtils::GetInstance().IsSameStr(longOptions[optionIndex].name, "cpufreq")) { in ParseLongCmdOption()
305 } else if (StringUtils::GetInstance().IsSameStr(longOptions[optionIndex].name, "cpuusage")) { in ParseLongCmdOption()
307 } else if (StringUtils::GetInstance().IsSameStr(longOptions[optionIndex].name, "log")) { in ParseLongCmdOption()
309 } else if (StringUtils::GetInstance().IsSameStr(longOptions[optionIndex].name, "mem")) { in ParseLongCmdOption()
311 } else if (StringUtils::GetInstance().IsSameStr(longOptions[optionIndex].name, "net")) { in ParseLongCmdOption()
313 } else if (StringUtils::GetInstance().IsSameStr(longOptions[optionIndex].name, "storage")) { in ParseLongCmdOption()
[all …]
/base/hiviewdfx/hidumper/frameworks/native/include/manager/
Ddump_implement.h75 DumpStatus ParseLongCmdOption(int argc, DumperOpts& opts_, const struct option longOptions[],
80 bool IsLongOption(const std::string& str, const struct option longOptions[], int size);
/base/hiviewdfx/hilog/services/hilogtool/
Dmain.cpp955 static void GetOpts(string& opts, struct option(&longOptions)[OPT_ENTRY_CNT]) in GetOpts()
973 longOptions[longOptcount].name = optEntries[i].longOpt; in GetOpts()
974 longOptions[longOptcount].has_arg = optEntries[i].needArg ? required_argument : no_argument; in GetOpts()
975 longOptions[longOptcount].flag = nullptr; in GetOpts()
976 longOptions[longOptcount].val = optEntries[i].opt; in GetOpts()
979 longOptions[longOptcount].name = nullptr; in GetOpts()
980 longOptions[longOptcount].has_arg = 0; in GetOpts()
981 longOptions[longOptcount].flag = nullptr; in GetOpts()
982 longOptions[longOptcount].val = 0; in GetOpts()
1001 struct option longOptions[OPT_ENTRY_CNT]; in HilogEntry() local
[all …]
/base/hiviewdfx/hilog_lite/command/
Dhilog_command.c193 struct option longOptions[] = { in HilogCmdProc() local
202 while ((opt = getopt_long(argc, argv, shortOptions, longOptions, &optionIndex)) != -1) { in HilogCmdProc()