| /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 | client.cpp | 116 string &strCmd = thisClass->command; in DoCtrlServiceWork() 117 …if (!strncmp(thisClass->command.c_str(), CMDSTR_SERVICE_START.c_str(), CMDSTR_SERVICE_START.size()… in DoCtrlServiceWork() 118 thisClass->StartKillServer(thisClass->command.c_str(), true); in DoCtrlServiceWork() 119 …} else if (!strncmp(thisClass->command.c_str(), CMDSTR_SERVICE_KILL.c_str(), CMDSTR_SERVICE_KILL.s… in DoCtrlServiceWork() 120 thisClass->StartKillServer(thisClass->command.c_str(), false); in DoCtrlServiceWork() 122 …} else if (!strncmp(thisClass->command.c_str(), CMDSTR_GENERATE_KEY.c_str(), CMDSTR_GENERATE_KEY.s… in DoCtrlServiceWork() 135 command = commandIn; in CtrlServiceWork() 329 command = commandIn; in ExecuteCommand() 330 connectKey = AutoConnectKey(command, connectKey); in ExecuteCommand() 398 if (!HostUpdater::ConfirmCommand(thisClass->command, closeInput)) { in CommandWorker() [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/profiler/host/smartperf/ide/src/hdc/hdcclient/ |
| D | HdcStream.ts | 53 public async DoCommandRemote(command: FormatCommand): Promise<boolean> { 54 switch (command.cmdFlag) { 64 let data = textEncoder.encode(command.parameters); 65 let sendResult = await this.sendToDaemon(command, data, data.length); 67 if (HdcCommand.CMD_SHELL_INIT == command.cmdFlag) { 74 await this.FileRecvCommand(command); 80 if (command.parameters == '0') { 85 await this.sendToDaemon(command, new Uint8Array(dataView.buffer), 1); 92 async FileRecvCommand(command: FormatCommand) { 93 let sizeSend = command.parameters.length; [all …]
|
| /developtools/smartperf_host/ide/src/hdc/hdcclient/ |
| D | HdcStream.ts | 53 public async DoCommandRemote(command: FormatCommand): Promise<boolean> { 54 switch (command.cmdFlag) { 64 let data = textEncoder.encode(command.parameters); 65 let sendResult = await this.sendToDaemon(command, data, data.length); 67 if (HdcCommand.CMD_SHELL_INIT == command.cmdFlag) { 74 await this.FileRecvCommand(command); 80 if (command.parameters == '0') { 85 await this.sendToDaemon(command, new Uint8Array(dataView.buffer), 1); 92 async FileRecvCommand(command: FormatCommand) { 93 let sizeSend = command.parameters.length; [all …]
|
| /developtools/profiler/host/smartperf/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/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/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/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/integration_verification/tools/deps_guard/elf_file_mgr/ |
| D | utils.py | 34 def command(command, *args): function 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/profiler/host/smartperf/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/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/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/profiler/host/smartperf/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/src/common/ |
| 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 | task.cpp | 55 bool HdcTaskBase::SendToAnother(const uint16_t command, uint8_t *bufPtr, const int size) in SendToAnother() argument 63 channelBase->SendWithCmd(taskInfo->channelId, command, bufPtr, size); in SendToAnother() 67 … return sessionBase->Send(taskInfo->sessionId, taskInfo->channelId, command, bufPtr, size) > 0; in SendToAnother() 99 bool HdcTaskBase::ServerCommand(const uint16_t command, uint8_t *bufPtr, const int size) in ServerCommand() argument 102 return hSession->ServerCommand(taskInfo->sessionId, taskInfo->channelId, command, bufPtr, size); in ServerCommand()
|
| 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);
|
| D | async_cmd.cpp | 116 int AsyncCmd::ThreadFork(const string &command, bool readWrite, int &cpid) in ThreadFork() argument 118 AsyncParams params = AsyncParams(command, readWrite, cpid); in ThreadFork() 143 string command = params.commandParam; in Popen() 176 execl(shellPath.c_str(), shellPath.c_str(), "-c", command.c_str(), NULL); in Popen() 195 bool AsyncCmd::ExecuteCommand(const string &command) in ExecuteCommand() argument 197 string cmd = command; in ExecuteCommand()
|
| /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 …]
|