Home
last modified time | relevance | path

Searched refs:command (Results 1 – 25 of 122) sorted by relevance

12345

/developtools/hdc/src/host/
Dext_client.cpp64 void ExtClient::ExecuteCommand(const string &command) in ExecuteCommand() argument
66 … if (!strncmp(command.c_str(), CMDSTR_SOFTWARE_VERSION.c_str(), CMDSTR_SOFTWARE_VERSION.size())) { in ExecuteCommand()
67 Version(command); in ExecuteCommand()
68 … } else if (!strncmp(command.c_str(), CMDSTR_SOFTWARE_HELP.c_str(), CMDSTR_SOFTWARE_HELP.size())) { in ExecuteCommand()
69 Help(command); in ExecuteCommand()
70 …} else if (!strncmp(command.c_str(), CMDSTR_TARGET_DISCOVER.c_str(), CMDSTR_TARGET_DISCOVER.size()… in ExecuteCommand()
71 Discover(command); in ExecuteCommand()
72 … } else if (!strncmp(command.c_str(), CMDSTR_SERVICE_START.c_str(), CMDSTR_SERVICE_START.size())) { in ExecuteCommand()
73 Start(command); in ExecuteCommand()
74 } else if (!strncmp(command.c_str(), CMDSTR_SERVICE_KILL.c_str(), CMDSTR_SERVICE_KILL.size())) { in ExecuteCommand()
[all …]
Dhost_updater.h27 bool CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) override;
37 bool CheckUpdateContinue(const uint16_t command, const uint8_t *payload, int payloadSize);
41 bool CheckCmd(HdcCommand command, uint8_t *payload, int payloadSize, size_t paramCount);
/developtools/smartperf_host/ide/src/hdc/common/
DUtils.ts34 let command = cmd;
36 command = command.substring('hdc_std '.length);
38 command = command.substring('hdc '.length);
40 let formatCommand = FormatCommand.string2FormatCommand(command);
43 warn('command : ' + command + ' is not Support');
/developtools/smartperf_host/ide/src/hdc/hdcclient/
DHdcStream.ts48 public async DoCommandRemote(command: FormatCommand): Promise<boolean> {
49 switch (command.cmdFlag) {
59 let data = textEncoder.encode(command.parameters);
60 let sendResult = await this.sendToDaemon(command, data, data.length);
62 if (HdcCommand.CMD_SHELL_INIT === command.cmdFlag) {
69 await this.FileRecvCommand(command);
75 if (command.parameters === '0') {
80 await this.sendToDaemon(command, new Uint8Array(dataView.buffer), 1);
87 async FileRecvCommand(command: FormatCommand): Promise<void> {
90 if (HdcCommand.CMD_FILE_INIT === command.cmdFlag) {
[all …]
/developtools/hiperf/script/
Dmake_report_sample.py25 def get_used_binaries(perf_data, command): argument
27 'report.txt'.encode("utf-8"), command.encode())
50 command = ""
52 command += "-s "
54 command += "--symbol-dir " + args.local_lib_dir
56 get_used_binaries(args.perf_data, command)
/developtools/hiperf/src/
Dsubcommand_help.cpp52 for (const auto &command : commands) { in OnHelp() local
53 printf("\t%s:\t%s\n", command.second->Name().c_str(), command.second->Brief().c_str()); in OnHelp()
57 auto command = SubCommand::FindSubCommand(args.front()); in OnHelp() local
58 if (command != nullptr) { in OnHelp()
60 printf("%s\n", command->Help().c_str()); in OnHelp()
/developtools/hdc/hdc_rust/src/daemon/
Dtask.rs47 match task_message.command { in daemon_shell_task()
102 command: HdcCommand::KernelChannelClose, in daemon_channel_close()
111 match task_message.command { in daemon_file_task()
120 task_message.command, in daemon_file_task()
131 task_message.command, in daemon_file_task()
148 task_message.command, in daemon_file_task()
162 task_message.command, in daemon_file_task()
177 task_message.command, in daemon_file_task()
188 task_message.command, in daemon_file_task()
204 task_message.command, in daemon_file_task()
[all …]
/developtools/integration_verification/tools/deps_guard/elf_file_mgr/
Dutils.py34 def command(command, *args): argument
35 debug(DEBUG_SPAM, "calling", command, ' '.join(args))
36 pipe = os.popen(command + ' ' + ' '.join(args), 'r')
41 command, ' '.join(args))
Delf_file.py22 from .utils import command
44 soname_data = command("mklibs-readelf", "--print-soname", self._f_safe)
50 size_data = command("size", self._f_safe)
75 dynamics = command("readelf", "--dynamic", self._f_safe)
/developtools/hdc/src/daemon/
Ddaemon.cpp147 const uint16_t command, uint8_t *payload, const int payloadSize) in RedirectToTask() argument
152 switch (command) { in RedirectToTask()
163 … ret = TaskCommandDispatch<HdcDaemonUnity>(hTaskInfo, TYPE_UNITY, command, payload, payloadSize); in RedirectToTask()
167 … ret = TaskCommandDispatch<HdcShell>(hTaskInfo, TYPE_SHELL, command, payload, payloadSize); in RedirectToTask()
176 ret = TaskCommandDispatch<HdcFile>(hTaskInfo, TASK_FILE, command, payload, payloadSize); in RedirectToTask()
182 … ret = TaskCommandDispatch<HdcDaemonApp>(hTaskInfo, TASK_APP, command, payload, payloadSize); in RedirectToTask()
191 …ret = TaskCommandDispatch<HdcDaemonForward>(hTaskInfo, TASK_FORWARD, command, payload, payloadSize… in RedirectToTask()
333 bool HdcDaemon::CheckControl(const uint16_t command) in CheckControl() argument
336 switch (command) { // this switch is match RedirectToTask function in CheckControl()
381 bool HdcDaemon::FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, u… in FetchCommand() argument
[all …]
Ddaemon.h33 …bool FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, uint8_t *pa…
35 …bool ServerCommand(const uint32_t sessionId, const uint32_t channelId, const uint16_t command, uin…
46 …ectToTask(HTaskInfo hTaskInfo, HSession hSession, const uint32_t channelId, const uint16_t command,
49 static bool CheckControl(const uint16_t command);
/developtools/smartperf_host/trace_streamer/gn/toolchain/
DBUILD.gn75command = "$cc_wrapper $cc -MMD -MF $depfiles {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}}…
84command = "$cc_wrapper $cxx -MMD -MF $depfiles {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc…
95 command = "rm -f {{output}} && libtool -static {{arflags}} -o {{output}} -filelist $rspfile"
97 command = "rm -rf {{output}} && $ar rcsD {{output}} @$rspfile"
111command = "$cc_wrapper $cxx $ld_arg -shared {{ldflags}} ${external_ldflags} {{inputs}} {{solibs}} …
120command = "$cc_wrapper $cxx $ld_arg {{ldflags}} ${external_ldflags} {{inputs}} {{solibs}} {{libs}}…
126 command = "touch {{output}}"
131 command = "cp -arf {{source}} {{output}}"
140command = "$cxx -o {{output}} -MMD -MF $depfile {{defines}} $pic {{include_dirs}} {{cflags}} {{cfl…
149command = "$cc -o {{output}} -MMD -MF $depfile {{defines}} $pic {{include_dirs}} {{cflags}} {{cfla…
[all …]
/developtools/hdc/hdc_rust/src/host/
Dunittest.rs31 command: Some(HdcCommand::FileInit), in if_parse_cmd_param_works()
39 assert_eq!(actual.command, expected.command); in if_parse_cmd_param_works()
51 command: Some(HdcCommand::KernelCheckServer), in if_parse_opt_cmd_works()
56 assert_eq!(actual.command, expected.command); in if_parse_opt_cmd_works()
67 command: Some(HdcCommand::FileInit), in if_parse_opt_cmd_param_works()
75 assert_eq!(actual.command, expected.command); in if_parse_opt_cmd_param_works()
Dtask.rs34 pub command: HdcCommand, field
46 match task_info.command { in channel_task_dispatch()
86 hdc::info!("get unknown command {:#?}", task_info.command); in channel_task_dispatch()
105 command: HdcCommand::UnityHilog, in channel_hilog_task()
120 command: HdcCommand::UnityBugreportInit, in channel_bug_report_task()
148 match task_info.command { in channel_file_task()
166 let cmd_idx = match task_info.command { in channel_file_task()
180 let _ = task_.command_dispatch(task_info.command, &cmd[..], cmd.len() as u16); in channel_file_task()
200 command: task_info.command, in channel_unity_task()
211 match task_info.command { in channel_shell_task()
[all …]
/developtools/hdc/hdc_rust/src/transfer/
Dbase.rs101 let command = match HdcCommand::try_from(payload_protect.command_flag) { in unpack_task_message_lock() localVariable
102 Ok(command) => command, in unpack_task_message_lock()
112 command, in unpack_task_message_lock()
134 command, in unpack_task_message_lock()
151 command: HdcCommand::UartFinish, in unpack_task_message_lock()
199 let command = match HdcCommand::try_from(payload_protect.command_flag) { in unpack_task_message() localVariable
200 Ok(command) => command, in unpack_task_message()
210 command, in unpack_task_message()
Dtcp.rs72 let command = match HdcCommand::try_from(payload_protect.command_flag) { in unpack_task_message() localVariable
73 Ok(command) => command, in unpack_task_message()
82 command, in unpack_task_message()
/developtools/hdc/src/common/
Dtask.cpp55 bool HdcTaskBase::SendToAnother(const uint16_t command, uint8_t *bufPtr, const int size) in SendToAnother() argument
59 …RITE_LOG(LOG_FATAL, "TaskFinish singalStop channelId:%u command:%u", taskInfo->channelId, command); in SendToAnother()
64 channelBase->SendWithCmd(taskInfo->channelId, command, bufPtr, size); in SendToAnother()
68 … return sessionBase->Send(taskInfo->sessionId, taskInfo->channelId, command, bufPtr, size) > 0; in SendToAnother()
100 bool HdcTaskBase::ServerCommand(const uint16_t command, uint8_t *bufPtr, const int size) in ServerCommand() argument
103 return hSession->ServerCommand(taskInfo->sessionId, taskInfo->channelId, command, bufPtr, size); in ServerCommand()
Dtask.h25 virtual bool CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) in CommandDispatch() argument
39 …bool SendToAnother(const uint16_t command, uint8_t *bufPtr, const int size); // D / S corresponds…
41 …bool ServerCommand(const uint16_t command, uint8_t *bufPtr, const int size); // D / s command is …
Dfile.h26 bool CommandDispatch(const uint16_t command, uint8_t *payload, const int payloadSize) override;
34 bool BeginTransfer(CtxFile *context, const string &command);
36 bool SetMasterParameters(CtxFile *context, const char *command, int argc, char **argv);
Dsession.h48 InnerCtrlCommand command; member
72 const uint16_t command, uint8_t *payload, const int payloadSize) in RedirectToTask() argument
99 …bool DispatchTaskData(HSession hSession, const uint32_t channelId, const uint16_t command, uint8_t…
107 …virtual bool FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, uin… in FetchCommand() argument
112 …tual bool ServerCommand(const uint32_t sessionId, const uint32_t channelId, const uint16_t command, in ServerCommand() argument
125 …static vector<uint8_t> BuildCtrlString(InnerCtrlCommand command, uint32_t channelId, uint8_t *data…
147 …bool TaskCommandDispatch(HTaskInfo hTaskInfo, uint8_t taskType, const uint16_t command, uint8_t *p… in TaskCommandDispatch() argument
164 if (!ptrTask->CommandDispatch(command, payload, payloadSize)) { in TaskCommandDispatch()
206 bool NeedNewTaskInfo(const uint16_t command, bool &masterTask);
/developtools/hiperf/
DREADME.md6 hiperf is a command-line debugging tool provided by OpenHarmony for developers. It can capture perf…
24 ├── proto # Definition of the data structure exported to proto by the report command
60 | Build the unit test interface (command line). | --build-target hiperf_interfacetest |
67 | Dev command-line program | arm | out\ohos-arm-release\developtools\hiperf\hiperf | hi…
69 | Host command-line program | Linux | out\ohos-arm-release\clang_x64\developtools\hiperf | hi…
127 Help information about the test command:
131 this is a demo test command
154 hiperf [options] COMMAND [args for command]
165 - [args for command]
170 You can run the **--help** command to view help information.
[all …]
DREADME_zh.md144 this is a demo test command
167 hiperf [options] COMMAND [args for command]
178 - [args for command]
186 --help [command]
188 [command] --help
197 | --help [command] | 显示指定功能的帮助信息 |
228 Usage: hiperf stat [options] [command [command-args]]
229 Collect performance counter information of running [command].
243 Usage: hiperf record [options] [command [command-args]]
244 Collect performance sampling information of running [command].
[all …]
/developtools/smartperf_host/ide/src/command/
DCmd.ts48 static execObjDump(command: string, addr: string, callback: Function) {
53 const data = { cmd: command, addr: addr };
58 static execHdcCmd(command: string, callback: Function) {
64 cmd: command,
71 static async execFileRecv(command: string, filePath: string, callback: Function) {
78 cmd: command,
93 static execHdcTraceCmd(command: string, serialNumber: string, callback: Function) {
99 cmd: command,
/developtools/hdc/scripts/
Dhdc_test.py268 command = "{}{}".format(head, cmd)
270 print(command)
272 subprocess.Popen(command,
279 command = "{}{}".format(head, cmd)
281 print(command)
285 res = subprocess.Popen(command,
295 for command in cmds:
296 run_command(command, head, need_del)
312 for command in commands:
313 if command_judge(command):
[all …]
/developtools/integration_verification/cases/smoke/basic/screenshot32/xdevice_smoke/acls_check/
Dutils.py67 def hdc_command(command): argument
68 print(command)
69 command_list = command.split(' ')

12345