Searched refs:optarg (Results 1 – 9 of 9) sorted by relevance
| /developtools/hdc/src/host/ |
| D | main.cpp | 225 bool ParseServerListenString(string &serverListenString, char *optarg) in ParseServerListenString() argument 227 if (strlen(optarg) > strlen("0000::0000:0000:0000:0000%interfacename:65535")) { in ParseServerListenString() 232 if (strcpy_s(buf, sizeof(buf), optarg) != 0) { in ParseServerListenString() 277 serverListenString += optarg; in ParseServerListenString() 279 serverListenString = optarg; in ParseServerListenString() 315 int logLevel = atoi(optarg); in GetCommandlineOptions() 342 if (strlen(optarg) > MAX_CONNECTKEY_SIZE) { in GetCommandlineOptions() 343 Base::PrintMessage("Sizeo of of parament '-t' %d is too long", strlen(optarg)); in GetCommandlineOptions() 347 g_connectKey = optarg; in GetCommandlineOptions() 351 if (!Hdc::ParseServerListenString(g_serverListenString, optarg)) { in GetCommandlineOptions() [all …]
|
| /developtools/profiler/device/plugins/native_hook/test/ |
| D | malloc_test.cpp | 449 if (!strcmp("mmap", optarg)) { in CommandParse() 450 printf("Type: %s \n", optarg); in CommandParse() 452 } else if (!strcmp("alloc", optarg)) { in CommandParse() 453 printf("Type: %s \n", optarg); in CommandParse() 455 } else if (!strcmp("all", optarg)) { in CommandParse() 456 printf("Type: %s \n", optarg); in CommandParse() 463 g_mallocSize = atoi(optarg); in CommandParse() 471 g_threadNum = atoi(optarg); in CommandParse() 478 g_fileName = optarg; in CommandParse()
|
| D | hook_test.c | 432 if (!strcmp("mmap", optarg)) { in CommandParse() 433 printf("Type: %s \n", optarg); in CommandParse() 435 } else if (!strcmp("alloc", optarg)) { in CommandParse() 436 printf("Type: %s \n", optarg); in CommandParse() 438 } else if (!strcmp("all", optarg)) { in CommandParse() 439 printf("Type: %s \n", optarg); in CommandParse() 446 g_mallocSize = atoi(optarg); in CommandParse() 454 g_threadNum = atoi(optarg); in CommandParse() 461 g_fileName = optarg; in CommandParse()
|
| /developtools/syscap_codec/src/ |
| D | main.c | 103 pcidfile = optarg; in main() 108 inputfile = optarg; in main() 111 outputpath = optarg; in main()
|
| /developtools/bytrace/bin/src/ |
| D | bytrace_cmd.cpp | 461 if (!StrToNum(optarg, g_bufferSizeKB)) { in ParseBufferSizeOpt() 478 if (regex_match(optarg, re)) { in ParseTraceClockOpt() 479 g_clock = optarg; in ParseTraceClockOpt() 496 size_t len = strnlen(optarg, MAX_OUTPUT_LEN); in ParseOutputOpt() 497 … if (len == MAX_OUTPUT_LEN || len < 1 || (stat(optarg, &buf) == 0 && (buf.st_mode & S_IFDIR))) { in ParseOutputOpt() 501 g_outputFile = optarg; in ParseOutputOpt() 514 if (!StrToNum(optarg, g_traceDuration)) { in ParseHelpTimeOpt() 518 fprintf(stderr, "Error: \"-t %s\" to be greater than zero. eg: \"--time 5\"\n", optarg); in ParseHelpTimeOpt() 548 if (!StrToNum(optarg, g_bufferSizeKB)) { in ParseBOpt() 572 if (!StrToNum(optarg, g_traceDuration)) { in ParseHltOpt() [all …]
|
| /developtools/global_resource_tool/src/ |
| D | cmd_parser.cpp | 421 string curOpt = (optarg == nullptr) ? argv[optind - 1] : argv[optind - 2]; in ParseCommand() 451 string argValue = (optarg != nullptr) ? optarg : ""; in ParseCommand()
|
| /developtools/hdc/src/daemon/ |
| D | main.cpp | 146 int logLevel = atoi(optarg); in GetDaemonCommandlineOptions()
|
| /developtools/profiler/device/plugins/hiebpf_plugin/tools/src/ |
| D | ebpf_converter.cpp | 487 inputPath = optarg; in main() 491 outputPath = optarg; in main()
|
| /developtools/profiler/device/cmds/src/ |
| D | main.cpp | 484 if (option == 'c' && strcmp(optarg, "-") == 0) { in main()
|