/developtools/hdc/src/host/ |
D | ext_client.cpp | 64 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 …]
|
D | host_updater.h | 27 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/ |
D | Utils.ts | 34 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/ |
D | HdcStream.ts | 48 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/ |
D | make_report_sample.py | 25 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/ |
D | subcommand_help.cpp | 52 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/ |
D | task.rs | 47 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/ |
D | utils.py | 34 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))
|
D | elf_file.py | 22 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/ |
D | daemon.cpp | 147 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 …]
|
D | daemon.h | 33 …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/ |
D | BUILD.gn | 75 …command = "$cc_wrapper $cc -MMD -MF $depfiles {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}}… 84 …command = "$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" 111 …command = "$cc_wrapper $cxx $ld_arg -shared {{ldflags}} ${external_ldflags} {{inputs}} {{solibs}} … 120 …command = "$cc_wrapper $cxx $ld_arg {{ldflags}} ${external_ldflags} {{inputs}} {{solibs}} {{libs}}… 126 command = "touch {{output}}" 131 command = "cp -arf {{source}} {{output}}" 140 …command = "$cxx -o {{output}} -MMD -MF $depfile {{defines}} $pic {{include_dirs}} {{cflags}} {{cfl… 149 …command = "$cc -o {{output}} -MMD -MF $depfile {{defines}} $pic {{include_dirs}} {{cflags}} {{cfla… [all …]
|
/developtools/hdc/hdc_rust/src/host/ |
D | unittest.rs | 31 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()
|
D | task.rs | 34 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/ |
D | base.rs | 101 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()
|
D | tcp.rs | 72 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/ |
D | task.cpp | 55 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()
|
D | task.h | 25 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 …
|
D | file.h | 26 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);
|
D | session.h | 48 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/ |
D | README.md | 6 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 …]
|
D | README_zh.md | 144 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/ |
D | Cmd.ts | 48 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/ |
D | hdc_test.py | 268 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/ |
D | utils.py | 67 def hdc_command(command): argument 68 print(command) 69 command_list = command.split(' ')
|