/external/perfetto/src/profiling/memory/ |
D | proc_utils.cc | 60 bool NormalizeCmdLine(char* cmdline, size_t size, std::string* name) { in NormalizeCmdLine() argument 61 char* first_arg = static_cast<char*>(memchr(cmdline, '\0', size)); in NormalizeCmdLine() 69 char* first_at = static_cast<char*>(memchr(cmdline, '@', size)); in NormalizeCmdLine() 75 memrchr(cmdline, '/', static_cast<size_t>(first_arg - cmdline))); in NormalizeCmdLine() 82 start = cmdline; in NormalizeCmdLine() 95 for (std::string cmdline : cmdlines) { in NormalizeCmdlines() local 97 cmdline.resize(cmdline.size() + 1, '\0'); in NormalizeCmdlines() 99 if (!NormalizeCmdLine(&(cmdline[0]), cmdline.size(), &normalized)) { in NormalizeCmdlines() 101 cmdline.c_str()); in NormalizeCmdlines() 119 char cmdline[512]; in GetCmdlineForPID() local [all …]
|
/external/python/cpython3/Modules/ |
D | main.c | 522 _PyCmdline *cmdline) in pymain_init_cmdline_argv() argument 524 assert(cmdline->argv == NULL); in pymain_init_cmdline_argv() 548 cmdline->argv = argv; in pymain_init_cmdline_argv() 551 cmdline->argv = pymain->wchar_argv; in pymain_init_cmdline_argv() 555 if (pymain->argc >= 1 && cmdline->argv != NULL) { in pymain_init_cmdline_argv() 556 program = cmdline->argv[0]; in pymain_init_cmdline_argv() 571 pymain_clear_cmdline(_PyMain *pymain, _PyCmdline *cmdline) in pymain_clear_cmdline() argument 576 clear_wstrlist(cmdline->nwarnoption, cmdline->warnoptions); in pymain_clear_cmdline() 577 cmdline->nwarnoption = 0; in pymain_clear_cmdline() 578 cmdline->warnoptions = NULL; in pymain_clear_cmdline() [all …]
|
/external/python/setuptools/ |
D | launcher.c | 132 char **parse_argv(char *cmdline, int *argc) in parse_argv() argument 136 char **result = calloc(strlen(cmdline), sizeof(char *)); in parse_argv() 137 char *output = cmdline; in parse_argv() 144 while (isspace(*cmdline)) cmdline++; /* skip leading spaces */ in parse_argv() 147 c = *cmdline++; in parse_argv() 153 while (isspace(*cmdline)) cmdline++; /* skip leading spaces */ in parse_argv() 154 if (!*cmdline) return result; /* avoid empty arg if trailing ws */ in parse_argv() 230 char* cmdline; in join_executable_and_args() local 237 cmdline = (char*)calloc(len, sizeof(char)); in join_executable_and_args() 238 sprintf(cmdline, "%s", executable); in join_executable_and_args() [all …]
|
/external/libopus/ |
D | Makefile.mips | 70 COMPILE.c.cmdline = $(CC) -c $(CFLAGS) -o $@ $< 72 LINK.o.cmdline = $(LINK.o) $^ $(LDLIBS) -o $@$(EXESUFFIX) 74 ARCHIVE.cmdline = $(AR) $(ARFLAGS) $@ $^ && $(RANLIB) $@ 77 $(COMPILE.c.cmdline) 80 $(COMPILE.cpp.cmdline) 122 $(ARCHIVE.cmdline) 125 $(LINK.o.cmdline) 128 $(LINK.o.cmdline) 131 $(LINK.o.cmdline) 134 $(LINK.o.cmdline) [all …]
|
D | Makefile.unix | 68 COMPILE.c.cmdline = $(CC) -c $(CFLAGS) -o $@ $< 70 LINK.o.cmdline = $(LINK.o) $^ $(LDLIBS) -o $@$(EXESUFFIX) 72 ARCHIVE.cmdline = $(AR) $(ARFLAGS) $@ $^ && $(RANLIB) $@ 75 $(COMPILE.c.cmdline) 78 $(COMPILE.cpp.cmdline) 120 $(ARCHIVE.cmdline) 123 $(LINK.o.cmdline) 126 $(LINK.o.cmdline) 129 $(LINK.o.cmdline) 132 $(LINK.o.cmdline) [all …]
|
/external/perfetto/test/trace_processor/ |
D | kernel_lmk.py | 23 trace.add_process(pid=1, ppid=0, cmdline="init") 24 trace.add_process(pid=2, ppid=1, cmdline="two_thread_process") 25 trace.add_process(pid=4, ppid=1, cmdline="single_thread_process") 27 trace.add_process(pid=1000, ppid=1, cmdline="padding_process") 28 trace.add_thread(tid=1301, tgid=1000, cmdline="padding_process_thread_1") 29 trace.add_thread(tid=1302, tgid=1000, cmdline="padding_process_thread_2") 31 trace.add_thread(tid=300, tgid=2, cmdline="two_thread_process")
|
D | counters_order_ref.py | 23 trace.add_process(pid=1, ppid=0, cmdline="init") 24 trace.add_process(pid=2, ppid=1, cmdline="two_thread_process") 25 trace.add_process(pid=4, ppid=1, cmdline="single_thread_process") 26 trace.add_thread(tid=3, tgid=2, cmdline="two_thread_process")
|
/external/mesa3d/src/gallium/auxiliary/os/ |
D | os_process.c | 125 os_get_command_line(char *cmdline, size_t size) in os_get_command_line() argument 130 strncpy(cmdline, args, size); in os_get_command_line() 132 cmdline[size - 1] = 0; in os_get_command_line() 138 const int n = read(f, cmdline, size - 1); in os_get_command_line() 143 if (cmdline[i] == 0) { in os_get_command_line() 144 cmdline[i] = ' '; in os_get_command_line() 148 cmdline[n] = 0; in os_get_command_line() 156 cmdline[0] = 0; in os_get_command_line()
|
/external/grpc-grpc/tools/run_tests/ |
D | run_performance_tests.py | 74 cmdline = (language.worker_cmdline() + ['--driver_port=%s' % port]) 85 cmdline = perf_cmd + ['-o', '%s-perf.data' % perf_file_base_name 86 ] + cmdline 92 cmdline = ['timeout', '%s' % (worker_timeout + 30)] + cmdline 96 % ' '.join(cmdline) 98 cmdline = ssh_cmd 101 cmdline=cmdline, 133 cmdline=[cmd], 151 cmdline=[cmd], 183 cmdline=[cmd], [all …]
|
/external/toybox/toys/other/ |
D | switch_root.c | 46 char *newroot = *toys.optargs, **cmdline = toys.optargs+1; in switch_root_main() local 73 while (**cmdline == '/') (*cmdline)++; in switch_root_main() 76 if (stat(*cmdline, &st1) || !S_ISREG(st1.st_mode) || !(st1.st_mode&0100)) { in switch_root_main() 112 execv(*cmdline, cmdline); in switch_root_main() 113 perror_msg("Failed to exec '%s'", *cmdline); in switch_root_main()
|
/external/honggfuzz/netbsd/ |
D | arch.c | 87 args[x] = run->global->exe.cmdline[x]; in arch_launchChild() 88 } else if (!strcmp(run->global->exe.cmdline[x], _HF_FILE_PLACEHOLDER)) { in arch_launchChild() 90 } else if (strstr(run->global->exe.cmdline[x], _HF_FILE_PLACEHOLDER)) { in arch_launchChild() 91 const char* off = strstr(run->global->exe.cmdline[x], _HF_FILE_PLACEHOLDER); in arch_launchChild() 92 snprintf(argData, sizeof(argData), "%.*s%s", (int)(off - run->global->exe.cmdline[x]), in arch_launchChild() 93 run->global->exe.cmdline[x], inputFile); in arch_launchChild() 96 args[x] = run->global->exe.cmdline[x]; in arch_launchChild() 217 if (access(hfuzz->exe.cmdline[0], X_OK) == -1) { in arch_archInit() 218 PLOG_E("File '%s' doesn't seem to be executable", hfuzz->exe.cmdline[0]); in arch_archInit()
|
/external/avb/libavb/ |
D | avb_cmdline.c | 37 const char* cmdline, in avb_sub_cmdline() argument 65 if (avb_strstr(cmdline, replace_str[n]) == NULL) { in avb_sub_cmdline() 89 ret = avb_replace(cmdline, replace_str[n], guid_buf); in avb_sub_cmdline() 135 if (slot_data->cmdline != NULL) { in cmdline_append_option() 136 offset = avb_strlen(slot_data->cmdline); in cmdline_append_option() 147 avb_memcpy(new_cmdline, slot_data->cmdline, offset - 1); in cmdline_append_option() 153 if (slot_data->cmdline != NULL) { in cmdline_append_option() 154 avb_free(slot_data->cmdline); in cmdline_append_option() 156 slot_data->cmdline = new_cmdline; in cmdline_append_option() 369 slot_data->cmdline, "$(ANDROID_VERITY_MODE)", dm_verity_mode); in avb_append_options() [all …]
|
/external/toybox/toys/pending/ |
D | sh.c | 107 char *cmdline; // Unparsed line for display purposes member 151 static char *parse_pipeline(char *cmdline, struct pipeline *line) in parse_pipeline() argument 154 char *start = line->cmdline = cmdline; in parse_pipeline() 156 if (!cmdline) return 0; in parse_pipeline() 158 line->cmdline = cmdline; in parse_pipeline() 167 line->cmdlinelen = start-cmdline; in parse_pipeline() 191 line->cmdlinelen = start-cmdline; in parse_pipeline()
|
/external/u-boot/lib/libavb/ |
D | avb_cmdline.c | 18 const char* cmdline, in avb_sub_cmdline() argument 62 ret = avb_replace(cmdline, replace_str[n], guid_buf); in avb_sub_cmdline() 108 if (slot_data->cmdline != NULL) { in cmdline_append_option() 109 offset = avb_strlen(slot_data->cmdline); in cmdline_append_option() 120 avb_memcpy(new_cmdline, slot_data->cmdline, offset - 1); in cmdline_append_option() 126 if (slot_data->cmdline != NULL) { in cmdline_append_option() 127 avb_free(slot_data->cmdline); in cmdline_append_option() 129 slot_data->cmdline = new_cmdline; in cmdline_append_option() 336 slot_data->cmdline, "$(ANDROID_VERITY_MODE)", dm_verity_mode); in avb_append_options() 337 avb_free(slot_data->cmdline); in avb_append_options() [all …]
|
/external/google-breakpad/src/common/linux/ |
D | file_id_unittest.cc | 82 char cmdline[4096]; in TEST() local 83 sprintf(cmdline, "cp \"%s\" \"%s\"", exe_name, templ.c_str()); in TEST() 84 ASSERT_EQ(0, system(cmdline)) << "Failed to execute: " << cmdline; in TEST() 85 sprintf(cmdline, "chmod u+w \"%s\"", templ.c_str()); in TEST() 86 ASSERT_EQ(0, system(cmdline)) << "Failed to execute: " << cmdline; in TEST() 87 sprintf(cmdline, "strip \"%s\"", templ.c_str()); in TEST() 88 ASSERT_EQ(0, system(cmdline)) << "Failed to execute: " << cmdline; in TEST()
|
/external/honggfuzz/linux/ |
D | arch.c | 147 args[x] = run->global->exe.cmdline[x]; in arch_launchChild() 148 } else if (!strcmp(run->global->exe.cmdline[x], _HF_FILE_PLACEHOLDER)) { in arch_launchChild() 150 } else if (strstr(run->global->exe.cmdline[x], _HF_FILE_PLACEHOLDER)) { in arch_launchChild() 151 const char* off = strstr(run->global->exe.cmdline[x], _HF_FILE_PLACEHOLDER); in arch_launchChild() 152 snprintf(argData, sizeof(argData), "%.*s%s", (int)(off - run->global->exe.cmdline[x]), in arch_launchChild() 153 run->global->exe.cmdline[x], inputFile); in arch_launchChild() 156 args[x] = run->global->exe.cmdline[x]; in arch_launchChild() 312 if (access(hfuzz->exe.cmdline[0], X_OK) == -1) { in arch_archInit() 313 PLOG_E("File '%s' doesn't seem to be executable", hfuzz->exe.cmdline[0]); in arch_archInit() 317 TEMP_FAILURE_RETRY(open(hfuzz->exe.cmdline[0], O_RDONLY | O_CLOEXEC))) == -1) { in arch_archInit() [all …]
|
/external/deqp/execserver/tools/ |
D | xsMain.cpp | 42 void registerOptions (de::cmdline::Parser& parser) in registerOptions() 44 using de::cmdline::Option; in registerOptions() 45 using de::cmdline::NamedValue; in registerOptions() 55 de::cmdline::CommandLine cmdLine; in main() 68 de::cmdline::Parser parser; in main()
|
/external/strace/tests/ |
D | kexec_file_load.c | 80 char *cmdline = tail_memdup(cmdline_str, sizeof(cmdline_str)); in main() local 90 { (uintptr_t) (cmdline + sizeof(cmdline_str)), "", "", in main() 92 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, in main() 93 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, in main() 101 cmdline + sizeof(cmdline_str)); in main()
|
/external/strace/tests-m32/ |
D | kexec_file_load.c | 80 char *cmdline = tail_memdup(cmdline_str, sizeof(cmdline_str)); in main() local 90 { (uintptr_t) (cmdline + sizeof(cmdline_str)), "", "", in main() 92 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, in main() 93 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, in main() 101 cmdline + sizeof(cmdline_str)); in main()
|
/external/strace/tests-mx32/ |
D | kexec_file_load.c | 80 char *cmdline = tail_memdup(cmdline_str, sizeof(cmdline_str)); in main() local 90 { (uintptr_t) (cmdline + sizeof(cmdline_str)), "", "", in main() 92 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, in main() 93 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, in main() 101 cmdline + sizeof(cmdline_str)); in main()
|
/external/ltp/testcases/kernel/hotplug/memory_hotplug/ |
D | commands.c | 1137 static int parse_command(char *cmdline) in parse_command() argument 1143 cmdline += strspn(cmdline, whitespace); /* possibly redundant */ in parse_command() 1145 cmd = strtok_r(cmdline, whitespace, &args); in parse_command() 1175 char *cmdline; in process_commands() local 1181 cmdline = fgets(cmdbuf, CMDBUFSZ, stdin); in process_commands() 1182 if (cmdline == NULL) { in process_commands() 1187 if (cmdline[0] == '\n') in process_commands() 1193 cmdlen = strlen(cmdline); in process_commands() 1194 if (cmdline[cmdlen - 1] == '\n') in process_commands() 1195 cmdline[--cmdlen] = '\0'; in process_commands() [all …]
|
/external/python/cpython2/Lib/ |
D | webbrowser.py | 172 cmdline = [self.name] + [arg.replace("%s", url) 176 p = subprocess.Popen(cmdline) 178 p = subprocess.Popen(cmdline, close_fds=True) 189 cmdline = [self.name] + [arg.replace("%s", url) 193 p = subprocess.Popen(cmdline) 198 p = subprocess.Popen(cmdline, close_fds=True, preexec_fn=setsid) 223 cmdline = [self.name] + raise_opt + args 236 p = subprocess.Popen(cmdline, close_fds=True, stdin=inout, 667 for cmdline in _userchoices: 668 if cmdline != '': [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_getopt.py | 101 cmdline = ['-a', '1', '-b', '--alpha=2', '--beta', '-a', '3', '-a', 104 opts, args = getopt.getopt(cmdline, 'a:b', ['alpha=', 'beta']) 112 self.assertError(getopt.getopt, cmdline, 'a:b', ['alpha', 'beta']) 116 cmdline = ['-a', 'arg1', '-b', '1', '--alpha', '--beta=2'] 119 opts, args = getopt.gnu_getopt(cmdline, 'ab:', ['alpha', 'beta=']) 130 opts, args = getopt.gnu_getopt(cmdline, '+ab:', ['alpha', 'beta=']) 136 opts, args = getopt.gnu_getopt(cmdline, 'ab:', ['alpha', 'beta='])
|
/external/python/cpython2/PC/ |
D | w9xpopen.c | 35 char *cmdline, *cmdlinefill; in main() local 64 cmdline = cmdlinefill = (char *)malloc(cmdlen+1); in main() 65 if (cmdline == NULL) in main() 93 NULL, cmdline, in main() 100 free(cmdline); in main()
|
/external/python/cpython2/Lib/test/ |
D | test_getopt.py | 101 cmdline = ['-a', '1', '-b', '--alpha=2', '--beta', '-a', '3', '-a', 104 opts, args = getopt.getopt(cmdline, 'a:b', ['alpha=', 'beta']) 112 self.assertError(getopt.getopt, cmdline, 'a:b', ['alpha', 'beta']) 116 cmdline = ['-a', 'arg1', '-b', '1', '--alpha', '--beta=2'] 119 opts, args = getopt.gnu_getopt(cmdline, 'ab:', ['alpha', 'beta=']) 130 opts, args = getopt.gnu_getopt(cmdline, '+ab:', ['alpha', 'beta=']) 136 opts, args = getopt.gnu_getopt(cmdline, 'ab:', ['alpha', 'beta='])
|