Home
last modified time | relevance | path

Searched refs:optarg (Results 1 – 9 of 9) sorted by relevance

/developtools/hdc/src/host/
Dmain.cpp225 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/
Dmalloc_test.cpp449 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()
Dhook_test.c432 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/
Dmain.c103 pcidfile = optarg; in main()
108 inputfile = optarg; in main()
111 outputpath = optarg; in main()
/developtools/bytrace/bin/src/
Dbytrace_cmd.cpp461 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/
Dcmd_parser.cpp421 string curOpt = (optarg == nullptr) ? argv[optind - 1] : argv[optind - 2]; in ParseCommand()
451 string argValue = (optarg != nullptr) ? optarg : ""; in ParseCommand()
/developtools/hdc/src/daemon/
Dmain.cpp146 int logLevel = atoi(optarg); in GetDaemonCommandlineOptions()
/developtools/profiler/device/plugins/hiebpf_plugin/tools/src/
Debpf_converter.cpp487 inputPath = optarg; in main()
491 outputPath = optarg; in main()
/developtools/profiler/device/cmds/src/
Dmain.cpp484 if (option == 'c' && strcmp(optarg, "-") == 0) { in main()