Home
last modified time | relevance | path

Searched refs:command (Results 1 – 25 of 123) 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/src/
Dsubcommand_help.cpp54 for (const auto &command : commands) { in OnHelp() local
55 if (command.second == nullptr) { in OnHelp()
58 printf("\t%s:\t%s\n", command.second->Name().c_str(), command.second->Brief().c_str()); in OnHelp()
62 auto command = SubCommand::FindSubCommand(args.front()); in OnHelp() local
63 if (command != nullptr) { in OnHelp()
65 printf("%s\n", command->Help().c_str()); in OnHelp()
/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/packing_tool/
Dbuild.py60 command = ['bash', shell_path, root_path, jar_output, out_path,
62 print('command: ', command)
63 run_cmd('haptobin_tool', command, 5000)
94 command = ['bash', shell_path, root_path, jar_output, out_path, big_version,
96 print('command: ', command)
97 run_cmd('app_unpacking_tool', command, 5000)
137 command = ['bash', shell_path, root_path, jar_output, out_path,
139 print('command: ', command)
140 run_cmd('app_packing_tool', command, 5000)
165 command = ['bash', shell_path, root_path, jar_output, out_path,
[all …]
/developtools/integration_verification/tools/deps_guard/elf_file_mgr/
Dutils.py36 def command(command, *args): argument
37 debug(DEBUG_SPAM, "calling", command, ' '.join(args))
38 pipe = os.popen(command + ' ' + ' '.join(args), 'r')
43 command, ' '.join(args))
Delf_file.py22 from .utils import command
56 dynamics = command("readelf", "--dynamic", self._f_safe)
77 soname_data = command("mklibs-readelf", "--print-soname", self._f_safe)
83 size_data = command("size", self._f_safe)
/developtools/smartperf_host/trace_streamer/gn/toolchain/
DBUILD.gn81command = "$cc_wrapper $cc -MMD -MF $depfiles {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}}…
90command = "$cc_wrapper $cxx -MMD -MF $depfiles {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc…
101 command = "rm -f {{output}} && libtool -static {{arflags}} -o {{output}} -filelist $rspfile"
103 command = "rm -rf {{output}} && $ar rcsD {{output}} @$rspfile"
117command = "$cc_wrapper $cxx $ld_arg -shared {{ldflags}} ${external_ldflags} {{inputs}} {{solibs}} …
126command = "$cc_wrapper $cxx $ld_arg {{ldflags}} ${external_ldflags} {{inputs}} {{solibs}} {{libs}}…
132 command = "touch {{output}}"
137 command = "cp -arf {{source}} {{output}}"
146command = "$cxx -o {{output}} -MMD -MF $depfile {{defines}} $pic {{include_dirs}} {{cflags}} {{cfl…
155command = "$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.rs45 pub command: HdcCommand, field
57 match task_info.command { in channel_task_dispatch()
135 hdc::info!("get unknown command {:#?}", task_info.command); in channel_task_dispatch()
146 match task_info.command { in channel_forward_task()
154 task_info.command, in channel_forward_task()
249 command: task_info.command, in channel_jdwp_task()
269 command: HdcCommand::UnityHilog, in channel_hilog_task()
284 command: HdcCommand::UnityBugreportInit, in channel_bug_report_task()
296 match task_info.command { in channel_file_task()
312 task_info.command, in channel_file_task()
[all …]
Dparser.rs27 pub command: Option<HdcCommand>, field
91 if let Some(command) = CMD_MAP.get(cmd.as_str()) { in split_opt_and_cmd()
93 cmd_opt = Some(command.to_owned()); in split_opt_and_cmd()
94 if *command == HdcCommand::ForwardInit || *command == HdcCommand::ForwardRportInit { in split_opt_and_cmd()
110 command: cmd_opt, in split_opt_and_cmd()
120 command: parsed.command, in parse_command()
129 if let Some(HdcCommand::UnityReboot) = parsed.command { in exchange_parsed_for_daemon()
154 pub command: Option<HdcCommand>, field
/developtools/hdc/hdc_rust/src/daemon/
Dtask.rs33 match task_message.command { in daemon_shell_task()
66 command: HdcCommand::KernelChannelClose, in daemon_shell_task()
111 command: HdcCommand::KernelChannelClose, in daemon_channel_close()
120 match task_message.command { in daemon_file_task()
129 task_message.command, in daemon_file_task()
140 task_message.command, in daemon_file_task()
157 task_message.command, in daemon_file_task()
171 task_message.command, in daemon_file_task()
186 task_message.command, in daemon_file_task()
200 task_message.command, in daemon_file_task()
[all …]
/developtools/hdc/hdc_rust/src/transfer/
Dbase.rs104 let command = match HdcCommand::try_from(payload_protect.command_flag) { in unpack_task_message_lock() localVariable
105 Ok(command) => command, in unpack_task_message_lock()
115 command, in unpack_task_message_lock()
137 command, in unpack_task_message_lock()
154 command: HdcCommand::UartFinish, in unpack_task_message_lock()
202 let command = match HdcCommand::try_from(payload_protect.command_flag) { in unpack_task_message() localVariable
203 Ok(command) => command, in unpack_task_message()
213 command, in unpack_task_message()
Dtcp.rs74 let command = match HdcCommand::try_from(payload_protect.command_flag) { in unpack_task_message() localVariable
75 Ok(command) => command, in unpack_task_message()
84 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
100 …bool DispatchTaskData(HSession hSession, const uint32_t channelId, const uint16_t command, uint8_t…
108 …virtual bool FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, uin… in FetchCommand() argument
113 …tual bool ServerCommand(const uint32_t sessionId, const uint32_t channelId, const uint16_t command, in ServerCommand() argument
126 …static vector<uint8_t> BuildCtrlString(InnerCtrlCommand command, uint32_t channelId, uint8_t *data…
148 …bool TaskCommandDispatch(HTaskInfo hTaskInfo, uint8_t taskType, const uint16_t command, uint8_t *p… in TaskCommandDispatch() argument
165 if (!ptrTask->CommandDispatch(command, payload, payloadSize)) { in TaskCommandDispatch()
207 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): void {
53 const data = { cmd: command, addr: addr };
58 static execHdcCmd(command: string, callback: Function): void {
64 cmd: command,
71 static async execFileRecv(command: string, filePath: string, callback: Function): Promise<void> {
78 cmd: command,
93 static execHdcTraceCmd(command: string, serialNumber: string, callback: Function): void {
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/hdc/src/daemon/
Ddaemon.cpp192 const uint16_t command, uint8_t *payload, const int payloadSize) in InitMod() argument
197 switch (command) { in InitMod()
208 … ret = TaskCommandDispatch<HdcDaemonUnity>(hTaskInfo, TYPE_UNITY, command, payload, payloadSize); in InitMod()
212 … ret = TaskCommandDispatch<HdcShell>(hTaskInfo, TYPE_SHELL, command, payload, payloadSize); in InitMod()
221 ret = TaskCommandDispatch<HdcFile>(hTaskInfo, TASK_FILE, command, payload, payloadSize); in InitMod()
227 … ret = TaskCommandDispatch<HdcDaemonApp>(hTaskInfo, TASK_APP, command, payload, payloadSize); in InitMod()
236 …ret = TaskCommandDispatch<HdcDaemonForward>(hTaskInfo, TASK_FORWARD, command, payload, payloadSize… in InitMod()
672 bool HdcDaemon::CheckControl(const uint16_t command) in InitMod() argument
675 switch (command) { // this switch is match RedirectToTask function in InitMod()
720 bool HdcDaemon::FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, u… in InitMod() argument
[all …]

12345