Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 23 of 23) sorted by relevance

/misc/services/acrn_manager/
A Dacrnctl.c291 if (snprintf(cmd, sizeof(cmd), "mv %s %s", fname, argv[1]) >= sizeof(cmd)) { in acrnctl_do_add()
326 if (snprintf(cmd, sizeof(cmd), "cat %s.result", argv[1]) >= sizeof(cmd)) { in acrnctl_do_add()
377 if (snprintf(cmd, sizeof(cmd), "rm -f %s.result", argv[1]) >= sizeof(cmd)) { in acrnctl_do_add()
382 if (snprintf(cmd, sizeof(cmd), "mv %s %s", argv[1], fname) >= sizeof(cmd)) { in acrnctl_do_add()
388 if (snprintf(cmd, sizeof(cmd), "mv %s.back %s", argv[1], argv[1]) >= sizeof(cmd)) { in acrnctl_do_add()
395 if (snprintf(cmd, sizeof(cmd), "rm -f %s", fname) >= sizeof(cmd)) { in acrnctl_do_add()
625 printf("acrnctl %s %s\n", cmd->cmd, df_opt); in df_valid_args()
637 printf("acrnctl %s %s\n", cmd->cmd, df_opt); in valid_blkrescan_args()
649 printf("acrnctl %s %s\n", cmd->cmd, df_opt); in valid_add_args()
661 printf("acrnctl %s %s\n", cmd->cmd, df_opt); in valid_start_args()
[all …]
A Dacrn_vm_ops.c291 int shell_cmd(const char *cmd, char *outbuf, int len) in shell_cmd() argument
298 return system(cmd); in shell_cmd()
302 if (snprintf(cmd_buf, sizeof(cmd_buf), "%s 2>&1", cmd) >= sizeof(cmd_buf)) { in shell_cmd()
362 char cmd[PATH_LEN + sizeof(ACRN_CONF_PATH_ADD) * 2 + MAX_VM_NAME_LEN * 2]; in start_vm() local
364 if (snprintf(cmd, sizeof(cmd), "bash %s/%s.sh $(cat %s/%s.args)", in start_vm()
365 ACRN_CONF_PATH_ADD, vmname, ACRN_CONF_PATH_ADD, vmname) >= sizeof(cmd)) { in start_vm()
370 return system(cmd); in start_vm()
A Dacrnctl.h39 int shell_cmd(const char *cmd, char *outbuf, int len);
A DREADME.rst30 Use acrnctl [cmd] help for details
/misc/packaging/
A Dcompile_iasl.py14 cmd = "cd iasl_build" + "&&" +"wget https://acpica.org/sites/acpica/files/acpica-unix-20191018.tar.… variable
15 os.system(cmd)
17 cmd = "cd iasl_build" + "&&" +"tar zxvf acpica-unix-20191018.tar.gz" variable
18 os.system(cmd)
20 cmd = "cd iasl_build/acpica-unix-20191018" + "&&" +"make clean" variable
21 os.system(cmd)
23 cmd = "cd iasl_build/acpica-unix-20191018" + "&&" +"make iasl" variable
24 os.system(cmd)
26 cmd = "cd iasl_build/acpica-unix-20191018" + "&&" +"cp ./generate/unix/bin/iasl /usr/sbin/" variable
A Dgen_acrn_deb.py23 def run_command(cmd, path): argument
25 print("cmd = %s, path = %s" % (cmd, path))
27 shlex.split(cmd),
41 cmd = {
45 cmd_list.append(cmd)
49 for cmd in cmd_list:
50 ret = run_command(cmd['cmd'], cmd['dir'])
52 print("cmd(%s) run in dir(%s) failed and exit" % (cmd['cmd'], cmd['dir']))
/misc/config_tools/board_inspector/legacy/
A Dclos.py16 def dump_cpuid_reg(cmd, reg): argument
21 res = external_tools.run(cmd)
64 cmd = "cpuid -1 -r -l 0x10"
65 rdt_res = dump_cpuid_reg(cmd, "ebx")
72 cmd = "cpuid -1 -r -l 0x10 --subleaf 2"
73 rdt_clos_max.append(dump_cpuid_reg(cmd, "edx"))
74 l2_info = dump_cpuid_reg(cmd, "eax")
77 cmd = "cpuid -1 -r -l 0x10 --subleaf 1"
78 rdt_clos_max.append(dump_cpuid_reg(cmd, "edx"))
79 l3_info = dump_cpuid_reg(cmd, "eax")
[all …]
A Dparser_lib.py94 def dump_execute(cmd, desc, config): argument
103 if not val_dmi and "dmidecode" in cmd:
107 res = external_tools.run(cmd)
143 def get_output_lines(cmd): argument
145 res = external_tools.run(cmd)
A Dmisc.py38 cmd = 'stty -F /dev/ttyS{}'.format(s_inc)
39 res = external_tools.run('{}'.format(cmd))
187 cmd = 'blkid'
189 parser_lib.dump_execute(cmd, desc, config)
235 cmd = 'lspci -vv | grep "MSI-X" | grep "Count="'
236 res_lines = parser_lib.get_output_lines(cmd)
A Ddmar.py192 cmd = "lspci -xxx"
196 res = external_tools.run(cmd)
/misc/services/life_mngr/
A Dcommand.c46 struct command *cmd = (struct command *)arg; in dispatch_command_handlers() local
51 if (cmd == NULL) { in dispatch_command_handlers()
55 LOG_PRINTF("Handle command (%s) in command monitor\n", cmd->name); in dispatch_command_handlers()
56 LIST_FOREACH(handler, &cmd->cmd_handlers_head, list) { in dispatch_command_handlers()
64 LOG_PRINTF("No handler for command:%s\r\n", cmd->name); in dispatch_command_handlers()
78 struct command *cmd; in register_command_handler() local
85 cmd = find_command(cmd_name); in register_command_handler()
86 if (cmd == NULL) { in register_command_handler()
100 pthread_mutex_lock(&cmd->cmd_handler_mtx); in register_command_handler()
101 LIST_INSERT_HEAD(&cmd->cmd_handlers_head, handler, list); in register_command_handler()
[all …]
A Dmonitor.c36 struct command *cmd; in monitor_cmd_dispatch() local
38 cmd = find_command(cmd_name); in monitor_cmd_dispatch()
39 if (cmd != NULL) in monitor_cmd_dispatch()
40 dispatch_command_handlers(cmd, fd); in monitor_cmd_dispatch()
/misc/debug_tools/acrn_crashlog/common/
A Dcmdutils.c125 char *cmd; in exec_out2file() local
134 ret = vasprintf(&cmd, fmt, args); in exec_out2file()
139 strtrim(cmd, ret); in exec_out2file()
140 argc = strcnt(cmd, ' ') + 1; in exec_out2file()
144 free(cmd); in exec_out2file()
150 start = cmd; in exec_out2file()
164 free(cmd); in exec_out2file()
182 char *cmd; in exec_out2mem() local
198 pp = popen(cmd, "r"); in exec_out2mem()
200 free(cmd); in exec_out2mem()
[all …]
/misc/config_tools/configurator/packages/configurator/tests/
A Dmock.js10 mockIPC(async (cmd, args) => {
14 switch (cmd) {
22 if (args?.message?.cmd === "getAppVersion") {
26 console.log(cmd, args)
/misc/config_tools/board_inspector/inspectorlib/
A Dexternal_tools.py29 cmd = f"{full_path} {parts[1]}" if len(parts) == 2 else full_path
30 return subprocess.Popen(cmd, **kwargs)
/misc/config_tools/acpi_gen/
A Dbin_gen.py194 def exec_command(cmd): argument
200 print('exec: ', cmd)
202 cmd_list = cmd.split()
213 print('exception when exec {}'.format(cmd), e)
/misc/efi-stub/
A Dboot.h115 const char *cmd; member
A Dcontainer.c378 ctr->mod_info[j].cmd = (const char *)cmd_lzh->Data; in container_load_modules()
A Dboot.c508 memcpy(tag->cmdline, modinfo->cmd, modinfo->cmdsize); in construct_mbi2()
/misc/debug_tools/acrn_crashlog/acrnprobe/
A Dsender.c171 static void get_log_cmd(const char *despath, const char *cmd) in get_log_cmd() argument
173 const int res = exec_out2file(despath, cmd); in get_log_cmd()
176 LOGE("get_log_by_cmd exec %s returns (%d)\n", cmd, res); in get_log_cmd()
A Dconf.rst218 + ``cmd``:
/misc/debug_tools/acrn_log/
A DREADME.rst82 and ``-s`` options on the ``ExecStart`` cmd, and restart the service.
/misc/config_tools/launch_config/
A Dlaunch_cfg_gen.py114 def add_dynamic_dm_parameter(self, cmd, opt=""): argument

Completed in 52 milliseconds