/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 | probe-event.h | 117 extern int parse_perf_probe_command(const char *cmd, 119 extern int parse_probe_trace_command(const char *cmd, 136 extern int parse_line_range_desc(const char *cmd, struct line_range *lr);
|
D | exec_cmd.h | 9 extern int execl_perf_cmd(const char *cmd, ...);
|
/tools/perf/ |
D | perf.c | 34 const char *cmd; member 72 const char *cmd; member 79 if (!prefixcmp(var, "pager.") && !strcmp(var + 6, c->cmd)) in pager_command_config() 85 int check_pager_config(const char *cmd) in check_pager_config() argument 88 c.cmd = cmd; in check_pager_config() 97 if (!prefixcmp(var, "tui.") && !strcmp(var + 4, c->cmd)) in browser_command_config() 99 if (!prefixcmp(var, "gtk.") && !strcmp(var + 4, c->cmd)) in browser_command_config() 108 static int check_browser_config(const char *cmd) in check_browser_config() argument 111 c.cmd = cmd; in check_browser_config() 153 const char *cmd = (*argv)[0]; in handle_options() local [all …]
|
D | builtin-data.c | 18 #define for_each_cmd(cmd) \ argument 19 for (cmd = data_cmds; cmd && cmd->name; cmd++) 34 struct data_cmd *cmd; in print_usage() local 40 for_each_cmd(cmd) { in print_usage() 41 printf("\t %s\t- %s\n", cmd->name, cmd->summary); in print_usage() 98 struct data_cmd *cmd; in cmd_data() local 112 for_each_cmd(cmd) { in cmd_data() 113 if (strcmp(cmd->name, cmdstr)) in cmd_data() 116 return cmd->fn(argc, argv, prefix); in cmd_data()
|
D | perf-completion.sh | 128 cmds_=$($cmd $1 --list-cmds) 146 local cmd 148 cmd=${words[0]} 156 cmds=$($cmd --list-opts) 158 cmds=$($cmd --list-cmds) 164 evts=$($cmd list --raw-dump) 170 subcmds=$($cmd $prev_skip_opts --list-cmds) 178 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/testing/selftests/membarrier/ |
D | membarrier_test.c | 16 static int sys_membarrier(int cmd, int flags) in sys_membarrier() argument 18 return syscall(__NR_membarrier, cmd, flags); in sys_membarrier() 23 int cmd = -1, flags = 0; in test_membarrier_cmd_fail() local 25 if (sys_membarrier(cmd, flags) != -1) { in test_membarrier_cmd_fail() 34 int cmd = MEMBARRIER_CMD_QUERY, flags = 1; in test_membarrier_flags_fail() local 36 if (sys_membarrier(cmd, flags) != -1) { in test_membarrier_flags_fail() 45 int cmd = MEMBARRIER_CMD_SHARED, flags = 0; in test_membarrier_success() local 47 if (sys_membarrier(cmd, flags) != 0) { in test_membarrier_success()
|
/tools/build/ |
D | Build.include | 41 echo-cmd = $(if $($(quiet)cmd_$(1)),\ 45 # Replace >$< with >$$< to preserve $ when reloading the .cmd file 47 # Replace >#< with >$(pound)< to avoid starting a comment in the .cmd file 51 make-cmd = $(call escsq,$(subst $(pound),$$(pound),$(subst $$,$$$$,$(cmd_$(1))))) 59 # Copy dependency data into .cmd file 62 dep-cmd = $(if $(wildcard $(fixdep)), \ 63 $(fixdep) $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp; \ 65 mv -f $(dot-target).tmp $(dot-target).cmd, \ 66 printf '$(pound) cannot find fixdep (%s)\n' $(fixdep) > $(dot-target).cmd; \ 67 printf '$(pound) using basic dep data\n\n' >> $(dot-target).cmd; \ [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 | 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 | make | 241 cmd="cd $(PERF) && make -f $(MK) DESTDIR=$$TMP_DEST $($@)"; \ 242 echo "- $@: $$cmd" && echo $$cmd > $@ && \ 243 ( eval $$cmd ) >> $@ 2>&1; \ 252 cmd="cd $(PERF) && make -f $(MK) O=$$TMP_O DESTDIR=$$TMP_DEST $($(patsubst %_O,%,$@))"; \ 253 echo "- $@: $$cmd" && echo $$cmd > $@ && \ 254 ( eval $$cmd ) >> $@ 2>&1 && \ 260 @cmd="$(PERF)/tests/perf-targz-src-pkg $(PERF)"; \ 261 echo "- $@: $$cmd" && echo $$cmd > $@ && \ 262 ( eval $$cmd ) >> $@ 2>&1
|
D | attr.c | 145 char cmd[3*PATH_MAX]; in run_dir() local 150 scnprintf(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()
|
/tools/hv/ |
D | hv_vss_daemon.c | 38 static int vss_do_freeze(char *dir, unsigned int cmd) in vss_do_freeze() argument 45 ret = ioctl(fd, cmd, 0); in vss_do_freeze() 57 if ((cmd == FIFREEZE && errno == EBUSY) || in vss_do_freeze() 58 (cmd == FITHAW && errno == EINVAL)) { in vss_do_freeze() 74 unsigned int cmd; in vss_operate() local 79 cmd = FIFREEZE; in vss_operate() 82 cmd = FITHAW; in vss_operate() 103 error |= vss_do_freeze(ent->mnt_dir, cmd); in vss_operate() 111 error |= vss_do_freeze("/", cmd); in vss_operate()
|
D | hv_kvp_daemon.c | 706 static void kvp_process_ipconfig_file(char *cmd, in kvp_process_ipconfig_file() argument 718 file = popen(cmd, "r"); in kvp_process_ipconfig_file() 741 char cmd[512]; in kvp_get_ipconfig_info() local 749 sprintf(cmd, "%s %s", "ip route show dev", if_name); in kvp_get_ipconfig_info() 750 strcat(cmd, " | awk '/default/ {print $3 }'"); in kvp_get_ipconfig_info() 755 kvp_process_ipconfig_file(cmd, (char *)buffer->gate_way, in kvp_get_ipconfig_info() 761 sprintf(cmd, "%s %s", "ip -f inet6 route show dev", if_name); in kvp_get_ipconfig_info() 762 strcat(cmd, " | awk '/default/ {print $3 }'"); in kvp_get_ipconfig_info() 767 kvp_process_ipconfig_file(cmd, (char *)buffer->gate_way, in kvp_get_ipconfig_info() 786 sprintf(cmd, "%s", "hv_get_dns_info"); in kvp_get_ipconfig_info() [all …]
|
/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/lib/traceevent/ |
D | plugin_scsi.c | 250 const char *ret = p->buffer + p->len, *cmd; in scsi_trace_rw32() local 256 cmd = "READ"; in scsi_trace_rw32() 259 cmd = "VERIFY"; in scsi_trace_rw32() 262 cmd = "WRITE"; in scsi_trace_rw32() 265 cmd = "WRITE_SAME"; in scsi_trace_rw32() 290 cmd, (unsigned long long)lba, in scsi_trace_rw32() 315 const char *ret = p->buffer + p->len, *cmd; in scsi_trace_service_action_in() local 321 cmd = "READ_CAPACITY_16"; in scsi_trace_service_action_in() 324 cmd = "GET_LBA_STATUS"; in scsi_trace_service_action_in() 344 trace_seq_printf(p, "%s lba=%llu alloc_len=%u", cmd, in scsi_trace_service_action_in()
|
/tools/testing/selftests/vm/ |
D | compaction_test.c | 28 char *cmd = "cat /proc/meminfo | grep -i memfree | grep -o '[0-9]*'"; in read_memory_info() local 29 FILE *cmdfile = popen(cmd, "r"); in read_memory_info() 39 cmd = "cat /proc/meminfo | grep -i hugepagesize | grep -o '[0-9]*'"; in read_memory_info() 40 cmdfile = popen(cmd, "r"); in read_memory_info()
|
/tools/perf/scripts/python/ |
D | futex-contention.py | 26 cmd = op & FUTEX_CMD_MASK 27 if cmd != FUTEX_WAIT:
|
/tools/lib/bpf/ |
D | bpf.c | 37 static int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf() argument 40 return syscall(__NR_bpf, cmd, attr, size); in sys_bpf()
|