/tools/perf/util/ |
D | run-command.c | 19 int start_command(struct child_process *cmd) in start_command() argument 30 need_in = !cmd->no_stdin && cmd->in < 0; in start_command() 33 if (cmd->out > 0) in start_command() 34 close(cmd->out); in start_command() 37 cmd->in = fdin[1]; in start_command() 40 need_out = !cmd->no_stdout in start_command() 41 && !cmd->stdout_to_stderr in start_command() 42 && cmd->out < 0; in start_command() 47 else if (cmd->in) in start_command() 48 close(cmd->in); in start_command() [all …]
|
D | generate-cmdlist.sh | 14 while read cmd 17 /^NAME/,/perf-'"$cmd"'/H 20 s/.*perf-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/ 22 }' "Documentation/perf-$cmd.txt" 28 while read cmd 31 /^NAME/,/perf-'"$cmd"'/H 34 s/.*perf-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/ 36 }' "Documentation/perf-$cmd.txt"
|
D | exec_cmd.c | 127 int execl_perf_cmd(const char *cmd,...) in execl_perf_cmd() argument 134 va_start(param, cmd); in execl_perf_cmd() 135 argv[0] = cmd; in execl_perf_cmd() 144 return error("too many args to run %s", cmd); in execl_perf_cmd()
|
D | exec_cmd.h | 9 extern int execl_perf_cmd(const char *cmd, ...);
|
D | probe-event.h | 99 extern int parse_perf_probe_command(const char *cmd, 115 extern int parse_line_range_desc(const char *cmd, struct line_range *lr);
|
D | srcline.c | 199 char cmd[PATH_MAX]; in addr2line() local 205 scnprintf(cmd, sizeof(cmd), "addr2line -e %s %016"PRIx64, in addr2line() 208 fp = popen(cmd, "r"); in addr2line()
|
/tools/perf/ |
D | perf.c | 31 const char *cmd; member 68 const char *cmd; member 75 if (!prefixcmp(var, "pager.") && !strcmp(var + 6, c->cmd)) in pager_command_config() 81 int check_pager_config(const char *cmd) in check_pager_config() argument 84 c.cmd = cmd; in check_pager_config() 93 if (!prefixcmp(var, "tui.") && !strcmp(var + 4, c->cmd)) in browser_command_config() 95 if (!prefixcmp(var, "gtk.") && !strcmp(var + 4, c->cmd)) in browser_command_config() 104 static int check_browser_config(const char *cmd) in check_browser_config() argument 107 c.cmd = cmd; in check_browser_config() 132 const char *cmd = (*argv)[0]; in handle_options() local [all …]
|
D | perf-completion.sh | 105 local cmd 107 cmd=${words[0]} 117 cmds=$($cmd --list-cmds) 122 evts=$($cmd list --raw-dump) 126 subcmds=$($cmd $prev --list-cmds) 131 opts=$($cmd $subcmd --list-opts)
|
D | builtin.h | 11 extern const char *help_unknown_cmd(const char *cmd); 14 extern int check_pager_config(const char *cmd);
|
D | builtin-help.c | 163 static void exec_man_cmd(const char *cmd, const char *page) in exec_man_cmd() argument 168 strbuf_addf(&shell_cmd, "%s %s", cmd, page); in exec_man_cmd() 170 warning("failed to exec '%s': %s", cmd, in exec_man_cmd() 303 static const char *prepend(const char *prefix, const char *cmd) in prepend() argument 306 size_t cmd_len = strlen(cmd); in prepend() 309 strcpy(p + pre_len, cmd); in prepend()
|
/tools/usb/usbip/src/ |
D | usbip.c | 107 const struct command *cmd; in usbip_help() local 122 for (cmd = cmds; cmd->name != NULL; cmd++) in usbip_help() 123 if (cmd->help != NULL) in usbip_help() 124 printf(" %-10s %s\n", cmd->name, cmd->help); in usbip_help() 139 static int run_command(const struct command *cmd, int argc, char *argv[]) in run_command() argument 141 dbg("running command: `%s'", cmd->name); in run_command() 142 return cmd->fn(argc, argv); in run_command() 154 char *cmd; in main() local 187 cmd = argv[optind]; in main() 188 if (cmd) { in main() [all …]
|
/tools/perf/tests/ |
D | python-use.c | 13 char *cmd; in test__python_use() local 16 if (asprintf(&cmd, "echo \"import sys ; sys.path.append('%s'); import perf\" | %s %s", in test__python_use() 20 ret = system(cmd) ? -1 : 0; in test__python_use() 21 free(cmd); in test__python_use()
|
D | make | 203 cmd="cd $(PERF) && make -f $(MK) DESTDIR=$$TMP_DEST $($@)"; \ 204 echo "- $@: $$cmd" && echo $$cmd > $@ && \ 205 ( eval $$cmd ) >> $@ 2>&1; \ 214 cmd="cd $(PERF) && make -f $(MK) O=$$TMP_O DESTDIR=$$TMP_DEST $($(patsubst %_O,%,$@))"; \ 215 echo "- $@: $$cmd" && echo $$cmd > $@ && \ 216 ( eval $$cmd ) >> $@ 2>&1 && \ 222 @cmd="$(PERF)/tests/perf-targz-src-pkg $(PERF)"; \ 223 echo "- $@: $$cmd" && echo $$cmd > $@ && \ 224 ( eval $$cmd ) >> $@ 2>&1
|
D | perf-record.c | 51 const char *cmd = "sleep"; in test__PERF_RECORD() local 52 const char *argv[] = { cmd, "1", NULL, }; in test__PERF_RECORD() 227 if (strcmp(event->comm.comm, cmd)) { in test__PERF_RECORD() 243 found_cmd_mmap = !strcmp(bname + 1, cmd); in test__PERF_RECORD() 287 pr_debug("Missing PERF_RECORD_COMM for %s!\n", cmd); in test__PERF_RECORD() 292 pr_debug("PERF_RECORD_MMAP for %s missing!\n", cmd); in test__PERF_RECORD()
|
D | attr.c | 145 char cmd[3*PATH_MAX]; in run_dir() local 150 snprintf(cmd, 3*PATH_MAX, PYTHON " %s/attr.py -d %s/attr/ -p %s %.*s", in run_dir() 153 return system(cmd) ? TEST_FAIL : TEST_OK; in run_dir()
|
D | code-reading.c | 101 char cmd[PATH_MAX * 2]; in read_via_objdump() local 107 ret = snprintf(cmd, sizeof(cmd), fmt, "objdump", addr, addr + len, in read_via_objdump() 109 if (ret <= 0 || (size_t)ret >= sizeof(cmd)) in read_via_objdump() 112 pr_debug("Objdump command is: %s\n", cmd); in read_via_objdump() 115 strcat(cmd, " 2>/dev/null"); in read_via_objdump() 117 f = popen(cmd, "r"); in read_via_objdump()
|
/tools/power/cpupower/utils/ |
D | cpupower.c | 44 const char *cmd; member 72 printf("\t%s\n", commands[i].cmd); in print_help() 173 const char *cmd; in main() local 185 cmd = argv[0]; in main() 198 argv[0] = cmd = "help"; in main() 215 if (strcmp(p->cmd, cmd)) in main() 219 "privileges\n"), cmd); in main()
|
/tools/perf/ui/browsers/ |
D | scripts.c | 109 char cmd[SCRIPT_FULLPATH_LEN*2], script_name[SCRIPT_FULLPATH_LEN]; in script_browse() local 139 sprintf(cmd, "perf script -s %s ", script_name); in script_browse() 142 strcat(cmd, script_opt); in script_browse() 145 strcat(cmd, " -i "); in script_browse() 146 strcat(cmd, input_name); in script_browse() 149 strcat(cmd, " 2>&1"); in script_browse() 151 fp = popen(cmd, "r"); in script_browse()
|
/tools/hv/ |
D | hv_vss_daemon.c | 47 static int vss_do_freeze(char *dir, unsigned int cmd, char *fs_op) in vss_do_freeze() argument 53 ret = ioctl(fd, cmd, 0); in vss_do_freeze() 65 unsigned int cmd; in vss_operate() local 70 cmd = FIFREEZE; in vss_operate() 74 cmd = FITHAW; in vss_operate() 96 error |= vss_do_freeze(ent->mnt_dir, cmd, fs_op); in vss_operate() 101 error |= vss_do_freeze("/", cmd, fs_op); in vss_operate()
|
D | hv_kvp_daemon.c | 709 static void kvp_process_ipconfig_file(char *cmd, in kvp_process_ipconfig_file() argument 721 file = popen(cmd, "r"); in kvp_process_ipconfig_file() 744 char cmd[512]; in kvp_get_ipconfig_info() local 752 sprintf(cmd, "%s %s", "ip route show dev", if_name); in kvp_get_ipconfig_info() 753 strcat(cmd, " | awk '/default/ {print $3 }'"); in kvp_get_ipconfig_info() 758 kvp_process_ipconfig_file(cmd, (char *)buffer->gate_way, in kvp_get_ipconfig_info() 764 sprintf(cmd, "%s %s", "ip -f inet6 route show dev", if_name); in kvp_get_ipconfig_info() 765 strcat(cmd, " | awk '/default/ {print $3 }'"); in kvp_get_ipconfig_info() 770 kvp_process_ipconfig_file(cmd, (char *)buffer->gate_way, in kvp_get_ipconfig_info() 789 sprintf(cmd, "%s", "hv_get_dns_info"); in kvp_get_ipconfig_info() [all …]
|
/tools/lib/traceevent/ |
D | plugin_scsi.c | 247 const char *ret = p->buffer + p->len, *cmd; in scsi_trace_rw32() local 253 cmd = "READ"; in scsi_trace_rw32() 256 cmd = "VERIFY"; in scsi_trace_rw32() 259 cmd = "WRITE"; in scsi_trace_rw32() 262 cmd = "WRITE_SAME"; in scsi_trace_rw32() 287 cmd, (unsigned long long)lba, in scsi_trace_rw32() 312 const char *ret = p->buffer + p->len, *cmd; in scsi_trace_service_action_in() local 318 cmd = "READ_CAPACITY_16"; in scsi_trace_service_action_in() 321 cmd = "GET_LBA_STATUS"; in scsi_trace_service_action_in() 341 trace_seq_printf(p, "%s lba=%llu alloc_len=%u", cmd, in scsi_trace_service_action_in()
|
/tools/perf/scripts/python/ |
D | futex-contention.py | 26 cmd = op & FUTEX_CMD_MASK 27 if cmd != FUTEX_WAIT:
|
/tools/virtio/virtio-trace/ |
D | trace-agent.c | 189 int cmd; in parse_args() local 192 while ((cmd = getopt(argc, argv, "hos:")) != -1) { in parse_args() 193 switch (cmd) { in parse_args()
|
/tools/testing/selftests/rcutorture/bin/ |
D | kvm-recheck-lock.sh | 41 dur=`sed -e 's/^.* locktorture.shutdown_secs=//' -e 's/ .*$//' < $i/qemu-cmd 2> /dev/null`
|
D | kvm-recheck-rcu.sh | 41 dur=`sed -e 's/^.* rcutorture.shutdown_secs=//' -e 's/ .*$//' < $i/qemu-cmd 2> /dev/null`
|