Home
last modified time | relevance | path

Searched refs:argc (Results 1 – 25 of 75) sorted by relevance

123

/developtools/profiler/host/smartperf/client/client_command/
Dsmartperf_main.cpp23 int main(int argc, char *argv[]) in main() argument
26 for (int i = 0; i < argc; i++) { in main()
29 if (argc > 1 && strcmp(argv[1], "-editor") == 0) { in main()
30 OHOS::SmartPerf::EditorCommand(argc, vec); in main()
32 } else if (argc > 1 && strcmp(argv[1], "-profilerfps") == 0) { in main()
34 fps.GetFPS(argc, vec); in main()
36 } else if (argc > 1 && strcmp(argv[1], "-start") == 0) { in main()
40 for (int i = 2; i < argc; i++) { in main()
42 if (i != argc - 1) { in main()
47 } else if (argc > 1 && strcmp(argv[1], "-stop") == 0) { in main()
[all …]
Dsmartperf_command.cpp28 SmartPerfCommand::SmartPerfCommand(int argc, char *argv[]) in SmartPerfCommand() argument
30 if (argc == oneParam) { in SmartPerfCommand()
46 if (argc == twoParam) { in SmartPerfCommand()
56 if (argc >= threeParamMore) { in SmartPerfCommand()
57 for (int i = 1; i <= argc - 1; i++) { in SmartPerfCommand()
60 if (i < argc - 1) { in SmartPerfCommand()
/developtools/bytrace/interfaces/kits/js/napi/
Dbytrace_napi_common.cpp34 napi_value ParseParams(napi_env& env, napi_callback_info& info, size_t& argc, napi_value* argv) in ParseParams() argument
37 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, argv, &thisVar, NULL)); in ParseParams()
130 size_t argc = ARGC_NUMBER_TWICE; in JsStrNumParamsFunc() local
132 ParseParams(env, info, argc, argv); in JsStrNumParamsFunc()
133 if (argc != ARGC_NUMBER_TWICE) { in JsStrNumParamsFunc()
150 size_t argc = ARGC_NUMBER_TRIPLE; in JSTraceStart() local
152 ParseParams(env, info, argc, argv); in JSTraceStart()
153 NAPI_ASSERT(env, argc >= ARGC_NUMBER_TWICE, "Wrong number of arguments"); in JSTraceStart()
154 if (argc < ARGC_NUMBER_TWICE) { in JSTraceStart()
165 if (argc == ARGC_NUMBER_TWICE) { in JSTraceStart()
[all …]
/developtools/smartperf_host/trace_streamer/src/
Dmain.cpp271 bool CheckArgc(int argc, char** argv, int curArgNum) in CheckArgc() argument
273 if (curArgNum == argc) { in CheckArgc()
279 bool CheckAndSetLogLevel(int argc, char** argv, int& index) in CheckAndSetLogLevel() argument
281 TS_CHECK_TRUE_RET(CheckArgc(argc, argv, ++index), false); in CheckAndSetLogLevel()
288 bool CheckAndSetMetrics(TraceExportOption& traceExportOption, int argc, char** argv, int& index) in CheckAndSetMetrics() argument
290 TS_CHECK_TRUE_RET(CheckArgc(argc, argv, ++index), false); in CheckAndSetMetrics()
294 bool CheckAndSetThreadNum(TraceExportOption& traceExportOption, int argc, char** argv, int& index) in CheckAndSetThreadNum() argument
296 TS_CHECK_TRUE_RET(CheckArgc(argc, argv, ++index), false); in CheckAndSetThreadNum()
301 bool CheckAndSetSqlitePath(TraceExportOption& traceExportOption, int argc, char** argv, int& index) in CheckAndSetSqlitePath() argument
303 TS_CHECK_TRUE_RET(CheckArgc(argc, argv, ++index), false); in CheckAndSetSqlitePath()
[all …]
/developtools/hdc/src/daemon/
Dmain.cpp42 bool ForkChildCheck(int argc, const char *argv[]) in ForkChildCheck() argument
79 if (argc == CMD_ARG1_COUNT) { in ForkChildCheck()
140 bool GetDaemonCommandlineOptions(int argc, const char *argv[]) in GetDaemonCommandlineOptions() argument
146 while ((ch = getopt(argc, const_cast<char *const *>(argv), "utl:")) != -1) { in GetDaemonCommandlineOptions()
271 int main(int argc, const char *argv[]) in main() argument
278 if (argc == 2 && !strcmp(argv[1], "-h")) { in main()
283 if (argc == CMD_ARG1_COUNT && !strcmp(argv[1], "-v")) { in main()
288 …if (argc == 1 || (argc == CMD_ARG1_COUNT && (!strcmp(argv[1], "-forkchild") || !strcmp(argv[1], "-… in main()
289 ForkChildCheck(argc, argv); in main()
291 GetDaemonCommandlineOptions(argc, argv); in main()
/developtools/hdc/src/test/
Dmain.cpp23 int argc = 0; in TEST() local
28 Base::SplitCommandToArgs("xx p1 p2 p3", &argc); in TEST()
29 GTEST_ASSERT_EQ(4, argc); in TEST()
73 int main(int argc, const char *argv[]) in main() argument
81 testing::InitGoogleTest(&argc, (char **)argv); in main()
/developtools/profiler/device/plugins/xpower_plugin/test/
Dxpower_main.cpp27 int ParseArgs(int argc, char** argv, UsageHandle usage) in ParseArgs() argument
30 for (int i = 1; i < argc;) { in ParseArgs()
33 if (i >= argc) { in ParseArgs()
61 int main(int argc, char* argv[]) in main() argument
64 int ret = ParseArgs(argc, argv, Usage); in main()
/developtools/profiler/hiebpf/test/unittest/
Dcommand_helper_test.cpp43 int argc = 1; variable
48 int ret = commandHelper.Start(&argc, &argv, "help");
51 argc++;
55 ret = commandHelper.Start(&argc, &argv, "none");
58 ret = commandHelper.Start(&argc, &argv, "help");
/developtools/smartperf_host/trace_streamer/src/base/sqlite_ext/
Dsqlite_ext_funcs.cpp39 static void sqliteExtStdevNextStep(sqlite3_context* context, int32_t argc, sqlite3_value** argv) in sqliteExtStdevNextStep() argument
41 TS_ASSERT(argc == 1); in sqliteExtStdevNextStep()
206 void BuildJson(sqlite3_context* ctx, int32_t argc, sqlite3_value** argv) in BuildJson() argument
209 if (argc % PAIR_ARGS_SIZE != 0) { in BuildJson()
217 for (int32_t i = 0; i < argc; i += PAIR_ARGS_SIZE) { in BuildJson()
219 TS_LOGI("BuildJson: Invalid args argc:%d, %d", argc, sqlite3_value_type(argv[i])); in BuildJson()
245 void RepeatedJsonStep(sqlite3_context* ctx, int32_t argc, sqlite3_value** argv) in RepeatedJsonStep() argument
255 for (int32_t i = 0; i < argc; i += PAIR_ARGS_SIZE) { in RepeatedJsonStep()
257 TS_LOGI("BuildJson: Invalid args argc:%d, %d", argc, sqlite3_value_type(argv[i])); in RepeatedJsonStep()
275 void RepeatedFieldStep(sqlite3_context* ctx, int32_t argc, sqlite3_value** argv) in RepeatedFieldStep() argument
[all …]
/developtools/profiler/device/plugins/native_hook/test/
Dperf_test_data.cpp112 int main(int argc, char *argv[]) in main() argument
118 for (int idx = 1; idx < argc; ++idx) { in main()
120 if (idx + 1 >= argc) { in main()
132 if (idx + 1 >= argc) { in main()
144 if (idx + 1 >= argc) { in main()
156 if (idx + 1 >= argc) { in main()
/developtools/hdc/src/common/
Dfile.cpp39 int argc = 0; in BeginTransfer() local
42 char **argv = Base::SplitCommandToArgs(command.c_str(), &argc); in BeginTransfer()
43 if (argc < CMD_ARG1_COUNT || argv == nullptr) { in BeginTransfer()
50 if (!SetMasterParameters(context, command.c_str(), argc, argv)) { in BeginTransfer()
68 bool HdcFile::SetMasterParameters(CtxFile *context, const char *command, int argc, char **argv) in SetMasterParameters() argument
77 for (int i = 0; i < argc; i++) { in SetMasterParameters()
104 if (argc == srcArgvIndex) { in SetMasterParameters()
108 context->remotePath = argv[argc - 1]; in SetMasterParameters()
109 context->localPath = argv[argc - 2]; in SetMasterParameters()
112 if ((srcArgvIndex + 1) == argc) { in SetMasterParameters()
[all …]
/developtools/profiler/device/services/ipc/src/
Dmain.cpp19 int main(int argc, char* argv[]) in main() argument
22 return google::protobuf::compiler::PluginMain(argc, argv, &generator); in main()
Dproto_encoder_plugin.cpp19 int main(int argc, char* argv[]) in main() argument
22 return google::protobuf::compiler::PluginMain(argc, argv, &generator); in main()
/developtools/global_resource_tool/include/
Dcmd_parser.h32 virtual uint32_t Parse(int argc, char *argv[]) = 0;
39 uint32_t Parse(int argc, char *argv[]) override;
61 uint32_t ParseCommand(int argc, char *argv[]);
114 uint32_t Parse(int argc, char *argv[]);
158 uint32_t CmdParser<T>::Parse(int argc, char *argv[]) in Parse() argument
160 if (cmdParser_.Parse(argc, argv) != RESTOOL_SUCCESS) { in Parse()
/developtools/hdc/hdc_rust/src/common/
Dbase.rs23 let mut argc = 0; in split_command_to_args() localVariable
47 argc += 1; in split_command_to_args()
61 argc += 1; in split_command_to_args()
70 (argv, argc) in split_command_to_args()
Dhdcfile.rs126 let (argv, argc) = Base::split_command_to_args(command); in begin_transfer()
127 if argc < 2 || !set_master_parameters(session_id, channel_id, command, argc, argv).await { in begin_transfer()
156 argc: u32, in set_master_parameters()
163 while i < argc as usize { in set_master_parameters()
192 if argc == src_argv_index { in set_master_parameters()
198 if src_argv_index + 1 == argc { in set_master_parameters()
203 } else if src_argv_index + 1 == argc { in set_master_parameters()
205 task.transfer.local_path = argv.get((argc - 1) as usize).unwrap().clone(); in set_master_parameters()
/developtools/profiler/device/services/profiler_service/src/
Dmain.cpp28 int main(int argc, char* argv[]) in main() argument
42 if (argc > 1) { in main()
/developtools/hdc/src/host/
Dhost_app.cpp31 int argc = 0; in BeginInstall() local
34 char **argv = Base::SplitCommandToArgs(command, &argc); in BeginInstall()
35 if (argc < 1) { in BeginInstall()
39 for (int i = 0; i < argc; ++i) { in BeginInstall()
41 if (i + 1 < argc) { in BeginInstall()
/developtools/global_resource_tool/src/
Drestool.cpp34 int main(int argc, char *argv[]) in main() argument
41 if (parser.Parse(argc, argv) != RESTOOL_SUCCESS) { in main()
/developtools/syscap_codec/src/
Dmain.c71 int main(int argc, char **argv) in main() argument
83 int32_t flag = getopt_long(argc, argv, "hvRPC:edsi:o:", g_longOptions, &optIndex); in main()
88 if (argc != 4 || optind < 0 || optind >= argc) { // 4, argc of ./syscap_tool -C f1 f2 in main()
/developtools/profiler/hidebug/interfaces/js/kits/napi/
Dnapi_hidebug.cpp116 size_t argc = valueNum; in GetDumpParam() local
120 napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in GetDumpParam()
121 if (argc != valueNum) { in GetDumpParam()
166 size_t argc = ONE_VALUE_LIMIT; in GetFileNameParam() local
170 napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in GetFileNameParam()
171 if (argc != ONE_VALUE_LIMIT) { in GetFileNameParam()
198 size_t argc = ONE_VALUE_LIMIT; in GetFileNameParamThrowErrorVersion() local
202 napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in GetFileNameParamThrowErrorVersion()
203 if (argc != ONE_VALUE_LIMIT) { in GetFileNameParamThrowErrorVersion()
485 size_t argc = REMOVE_NAPI_WRAP_PARAM_COUNT; in RemoveNapiWrap() local
[all …]
/developtools/hiperf/src/
Dmain.cpp40 int main(const int argc, const char *argv[]) in main() argument
53 for (int i = 1; i < argc; i++) { in main()
/developtools/profiler/hiebpf/src/
Dcommand_helper.cpp20 int CommandHelper::Start(int* argc, char*** argv, const std::string& help) in Start() argument
22 if ((*argc) == 1) { in Start()
31 for (int count = 1; count < (*argc); ++count) { in Start()
/developtools/profiler/hiebpf/test/
Dhiebpf_test_demo.cpp170 int main(int argc, char *argv[]) in main() argument
174 if (argc >= ARGC_NUM_MUST) { in main()
183 if (argc > ARGC_NUM_MUST) { in main()
/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/table/
Ddemo_table_base.cpp50 …auto demoCreateFn = [](sqlite3* xdb, void* pAux, int32_t argc, const char* const* argv, sqlite3_vt… in DemoTableRegister()
52 Unused(argc); in DemoTableRegister()
62 demoTable->DemoInit(argc, argv); in DemoTableRegister()
106 … demoModule.xFilter = [](sqlite3_vtab_cursor* vc, int32_t idxNum, const char* idxStr, int32_t argc, in SetModuleCallbacks()
126 …demoModule.xUpdate = [](sqlite3_vtab* pVTab, int32_t argc, sqlite3_value** argv, sqlite3_int64* pR… in SetModuleCallbacks() argument
128 return static_cast<DemoTableBase*>(pVTab)->DemoUpdate(argc, argv, pRowid); in SetModuleCallbacks()

123