Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 1990) sorted by relevance

12345678910>>...80

/openbmc/linux/tools/perf/
H A Dbuiltin.h8 int cmd_annotate(int argc, const char **argv);
9 int cmd_bench(int argc, const char **argv);
10 int cmd_buildid_cache(int argc, const char **argv);
11 int cmd_buildid_list(int argc, const char **argv);
12 int cmd_config(int argc, const char **argv);
13 int cmd_c2c(int argc, const char **argv);
14 int cmd_diff(int argc, const char **argv);
15 int cmd_evlist(int argc, const char **argv);
16 int cmd_help(int argc, const char **argv);
17 int cmd_sched(int argc, const char **argv);
[all …]
H A Dperf.c180 static int handle_options(const char ***argv, int *argc, int *envchanged) in handle_options() argument
185 const char *cmd = (*argv)[0]; in handle_options()
202 (*argv)[0] = "--help"; in handle_options()
207 (*argv)[0] = "--version"; in handle_options()
212 (*argv)[0] = "version"; in handle_options()
242 tracing_path_set((*argv)[1]); in handle_options()
245 (*argv)++; in handle_options()
252 set_buildid_dir((*argv)[1]); in handle_options()
255 (*argv)++; in handle_options()
285 if (perf_debug_option((*argv)[1])) in handle_options()
[all …]
/openbmc/linux/tools/perf/bench/
H A Dbench.h21 int bench_numa(int argc, const char **argv);
22 int bench_sched_messaging(int argc, const char **argv);
23 int bench_sched_pipe(int argc, const char **argv);
24 int bench_sched_seccomp_notify(int argc, const char **argv);
25 int bench_syscall_basic(int argc, const char **argv);
26 int bench_syscall_getpgid(int argc, const char **argv);
27 int bench_syscall_fork(int argc, const char **argv);
28 int bench_syscall_execve(int argc, const char **argv);
29 int bench_mem_memcpy(int argc, const char **argv);
30 int bench_mem_memset(int argc, const char **argv);
[all …]
/openbmc/u-boot/cmd/
H A Dtpm-v1.c17 char *const argv[]) in do_tpm_startup() argument
28 if (!strcasecmp("TPM_ST_CLEAR", argv[1])) { in do_tpm_startup()
30 } else if (!strcasecmp("TPM_ST_STATE", argv[1])) { in do_tpm_startup()
32 } else if (!strcasecmp("TPM_ST_DEACTIVATED", argv[1])) { in do_tpm_startup()
35 printf("Couldn't recognize mode string: %s\n", argv[1]); in do_tpm_startup()
43 char *const argv[]) in do_tpm_nv_define_space() argument
55 index = simple_strtoul(argv[1], NULL, 0); in do_tpm_nv_define_space()
56 perm = simple_strtoul(argv[2], NULL, 0); in do_tpm_nv_define_space()
57 size = simple_strtoul(argv[3], NULL, 0); in do_tpm_nv_define_space()
63 char *const argv[]) in do_tpm_nv_read_value() argument
[all …]
H A Dpart.c29 static int do_part_uuid(int argc, char * const argv[]) in do_part_uuid() argument
40 part = blk_get_device_part_str(argv[0], argv[1], &dev_desc, &info, 0); in do_part_uuid()
45 env_set(argv[2], info.uuid); in do_part_uuid()
52 static int do_part_list(int argc, char * const argv[]) in do_part_list() argument
65 if (argv[i][0] == '-') { in do_part_list()
66 if (!strcmp(argv[i], "-bootable")) { in do_part_list()
69 printf("Unknown option %s\n", argv[i]); in do_part_list()
73 var = argv[i]; in do_part_list()
84 ret = blk_get_device_by_str(argv[0], argv[1], &desc); in do_part_list()
115 static int do_part_info(int argc, char * const argv[], enum cmd_part_info param) in do_part_info() argument
[all …]
H A Dyaffs2.c46 int do_ytrace(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) in do_ytrace() argument
49 cmd_yaffs_tracemask(1, simple_strtol(argv[1], NULL, 16)); in do_ytrace()
57 int do_ydevls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) in do_ydevls() argument
65 int do_ydevconfig(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) in do_ydevconfig() argument
78 mtpoint = argv[1]; in do_ydevconfig()
79 mtd_dev = simple_strtol(argv[2], NULL, 16); in do_ydevconfig()
80 start_block = simple_strtol(argv[3], NULL, 16); in do_ydevconfig()
81 end_block = simple_strtol(argv[4], NULL, 16); in do_ydevconfig()
88 int do_ymount(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) in do_ymount() argument
97 mtpoint = argv[1]; in do_ymount()
[all …]
H A Dfat.c21 int do_fat_size(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_fat_size() argument
23 return do_size(cmdtp, flag, argc, argv, FS_TYPE_FAT); in do_fat_size()
34 int do_fat_fsload (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_fat_fsload() argument
36 return do_load(cmdtp, flag, argc, argv, FS_TYPE_FAT); in do_fat_fsload()
55 static int do_fat_ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_fat_ls() argument
57 return do_ls(cmdtp, flag, argc, argv, FS_TYPE_FAT); in do_fat_ls()
68 char * const argv[]) in do_fat_fsinfo() argument
79 part = blk_get_device_part_str(argv[1], argv[2], &dev_desc, &info, 1); in do_fat_fsinfo()
86 argv[1], dev, part); in do_fat_fsinfo()
101 int argc, char * const argv[]) in do_fat_fswrite() argument
[all …]
H A Dnet.c17 static int do_bootp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_bootp() argument
19 return netboot_common(BOOTP, cmdtp, argc, argv); in do_bootp()
30 int do_tftpb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_tftpb() argument
35 ret = netboot_common(TFTPGET, cmdtp, argc, argv); in do_tftpb()
48 static int do_tftpput(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_tftpput() argument
50 return netboot_common(TFTPPUT, cmdtp, argc, argv); in do_tftpput()
61 static int do_tftpsrv(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) in do_tftpsrv() argument
63 return netboot_common(TFTPSRV, cmdtp, argc, argv); in do_tftpsrv()
78 int do_rarpb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_rarpb() argument
80 return netboot_common(RARP, cmdtp, argc, argv); in do_rarpb()
[all …]
H A Dtpm-v2.c17 char *const argv[]) in do_tpm2_startup() argument
29 if (!strcasecmp("TPM2_SU_CLEAR", argv[1])) { in do_tpm2_startup()
31 } else if (!strcasecmp("TPM2_SU_STATE", argv[1])) { in do_tpm2_startup()
34 printf("Couldn't recognize mode string: %s\n", argv[1]); in do_tpm2_startup()
42 char *const argv[]) in do_tpm2_self_test() argument
54 if (!strcasecmp("full", argv[1])) { in do_tpm2_self_test()
56 } else if (!strcasecmp("continue", argv[1])) { in do_tpm2_self_test()
59 printf("Couldn't recognize test mode: %s\n", argv[1]); in do_tpm2_self_test()
67 char *const argv[]) in do_tpm2_clear() argument
70 const char *pw = (argc < 3) ? NULL : argv[2]; in do_tpm2_clear()
[all …]
H A Dmmc.c119 static int do_mmcinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_mmcinfo() argument
153 int argc, char * const argv[]) in do_mmcrpmb_key() argument
161 key_addr = (void *)simple_strtoul(argv[1], NULL, 16); in do_mmcrpmb_key()
171 int argc, char * const argv[]) in do_mmcrpmb_read() argument
182 addr = (void *)simple_strtoul(argv[1], NULL, 16); in do_mmcrpmb_read()
183 blk = simple_strtoul(argv[2], NULL, 16); in do_mmcrpmb_read()
184 cnt = simple_strtoul(argv[3], NULL, 16); in do_mmcrpmb_read()
187 key_addr = (void *)simple_strtoul(argv[4], NULL, 16); in do_mmcrpmb_read()
199 int argc, char * const argv[]) in do_mmcrpmb_write() argument
210 addr = (void *)simple_strtoul(argv[1], NULL, 16); in do_mmcrpmb_write()
[all …]
H A Dfsi.c21 static void do_getcfam(int argc, char *const argv[]) in do_getcfam() argument
31 addr = simple_strtoul(argv[2], NULL, 16); in do_getcfam()
43 static void do_putcfam(int argc, char *const argv[]) in do_putcfam() argument
53 addr = simple_strtoul(argv[2], NULL, 16); in do_putcfam()
54 val = simple_strtoul(argv[3], NULL, 16); in do_putcfam()
62 static void do_divisor(int argc, char *const argv[]) in do_divisor() argument
72 val = simple_strtoul(argv[2], NULL, 0); in do_divisor()
83 static struct fsi_master_aspeed *do_probe(int argc, char *const argv[]) in do_probe() argument
97 id = simple_strtoul(argv[2], NULL, 10); in do_probe()
113 static int do_fsi(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) in do_fsi() argument
[all …]
H A Dfdt.c89 static int fdt_get_header_value(int argc, char * const argv[]) in fdt_get_header_value() argument
95 if (argv[2][0] != 'g') in fdt_get_header_value()
99 if (strcmp(fdt_member_table[i], argv[4])) in fdt_get_header_value()
103 env_set_hex(argv[3], val); in fdt_get_header_value()
113 static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_fdt() argument
121 if (strncmp(argv[1], "ad", 2) == 0) { in do_fdt()
129 argv += 2; in do_fdt()
132 if (argc && !strcmp(*argv, "-c")) { in do_fdt()
135 argv++; in do_fdt()
151 addr = simple_strtoul(argv[0], NULL, 16); in do_fdt()
[all …]
H A Dnvedit.c116 char * const argv[]) in do_env_print() argument
123 if (argc > 1 && argv[1][0] == '-' && argv[1][1] == 'e') in do_env_print()
124 return do_env_print_efi(cmdtp, flag, --argc, ++argv); in do_env_print()
127 if (argc > 1 && argv[1][0] == '-' && argv[1][1] == 'a') { in do_env_print()
129 argv++; in do_env_print()
146 int rc = env_print(argv[i], env_flag); in do_env_print()
148 printf("## Error: \"%s\" not defined\n", argv[i]); in do_env_print()
158 int argc, char * const argv[]) in do_env_grep() argument
169 while (--argc > 0 && **++argv == '-') { in do_env_grep()
170 char *arg = *argv; in do_env_grep()
[all …]
/openbmc/openpower-hw-diags/test/
H A Dtest-cli.cpp11 char* argv[2]; in TEST() local
13 argv[i++] = (char*)"--all"; in TEST()
14 argv[i++] = (char*)"on"; in TEST()
15 parseConfig(argv, argv + i, config); in TEST()
28 argv[i++] = (char*)"--all"; in TEST()
29 argv[i++] = (char*)"off"; in TEST()
30 parseConfig(argv, argv + i, config); in TEST()
45 char* argv[11]; in TEST() local
47 argv[i++] = (char*)"--vital"; in TEST()
48 argv[i++] = (char*)"on"; in TEST()
[all …]
/openbmc/phosphor-certificate-manager/test/
H A Dargument_test.cpp16 std::vector<const char*> argv = {"binary", "--type", "client", in TEST() local
19 EXPECT_EQ(processArguments(argv.size(), argv.data(), arguments), 0); in TEST()
29 std::vector<const char*> argv = {"binary", "--type", "server", in TEST() local
32 EXPECT_EQ(processArguments(argv.size(), argv.data(), arguments), 0); in TEST()
42 std::vector<const char*> argv = {"binary", "--type", "authority", in TEST() local
45 EXPECT_NO_THROW(processArguments(argv.size(), argv.data(), arguments)); in TEST()
55 std::vector<const char*> argv = {"binary", "--type", "client", "--endpoint", in TEST() local
57 EXPECT_EQ(processArguments(argv.size(), argv.data(), arguments), 0); in TEST()
67 std::vector<const char*> argv = {"binary", "--type", "client", in TEST() local
70 EXPECT_EQ(processArguments(argv.size(), argv.data(), arguments), 0); in TEST()
[all …]
/openbmc/linux/tools/power/acpi/common/
H A Dgetopt.c53 int acpi_getopt_argument(int argc, char **argv) in acpi_getopt_argument() argument
59 if (argv[acpi_gbl_optind][(int)(current_char_ptr + 1)] != '\0') { in acpi_getopt_argument()
61 &argv[acpi_gbl_optind++][(int)(current_char_ptr + 1)]; in acpi_getopt_argument()
68 acpi_gbl_optarg = argv[acpi_gbl_optind++]; in acpi_getopt_argument()
88 int acpi_getopt(int argc, char **argv, char *opts) in acpi_getopt() argument
95 argv[acpi_gbl_optind][0] != '-' || in acpi_getopt()
96 argv[acpi_gbl_optind][1] == '\0') { in acpi_getopt()
98 } else if (strcmp(argv[acpi_gbl_optind], "--") == 0) { in acpi_getopt()
106 current_char = argv[acpi_gbl_optind][current_char_ptr]; in acpi_getopt()
114 if (argv[acpi_gbl_optind][++current_char_ptr] == '\0') { in acpi_getopt()
[all …]
/openbmc/u-boot/arch/powerpc/cpu/mpc83xx/
H A Decc.c98 int do_ecc(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) in do_ecc() argument
126 if (strcmp(argv[1], "status") == 0) { in do_ecc()
129 } else if (strcmp(argv[1], "captureclear") == 0) { in do_ecc()
139 if (strcmp(argv[1], "sbecnt") == 0) { in do_ecc()
140 val = simple_strtoul(argv[2], NULL, 10); in do_ecc()
152 } else if (strcmp(argv[1], "sbethr") == 0) { in do_ecc()
153 val = simple_strtoul(argv[2], NULL, 10); in do_ecc()
165 } else if (strcmp(argv[1], "errdisable") == 0) { in do_ecc()
168 if (strcmp(argv[2], "+sbe") == 0) { in do_ecc()
170 } else if (strcmp(argv[2], "+mbe") == 0) { in do_ecc()
[all …]
/openbmc/u-boot/drivers/net/pfe_eth/
H A Dpfe_cmd.c19 static void pfe_command_pe(int argc, char * const argv[]) in pfe_command_pe() argument
21 if (argc >= 3 && strcmp(argv[2], "pmem") == 0) { in pfe_command_pe()
22 if (argc >= 4 && strcmp(argv[3], "read") == 0) { in pfe_command_pe()
31 num = simple_strtoul(argv[6], NULL, 0); in pfe_command_pe()
39 id = simple_strtoul(argv[4], NULL, 0); in pfe_command_pe()
40 addr = simple_strtoul(argv[5], NULL, 16); in pfe_command_pe()
55 } else if (argc >= 3 && strcmp(argv[2], "dmem") == 0) { in pfe_command_pe()
56 if (argc >= 4 && strcmp(argv[3], "read") == 0) { in pfe_command_pe()
65 num = simple_strtoul(argv[6], NULL, 0); in pfe_command_pe()
73 id = simple_strtoul(argv[4], NULL, 0); in pfe_command_pe()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_usif.c50 usif_object_new(struct drm_file *f, void *data, u32 size, void *argv, u32 argc, bool parent_abi16) in usif_object_new() argument
93 ret = nvif_client_ioctl(client, argv, argc); in usif_object_new()
113 } *argv = data; in usif_ioctl() local
119 if (ret = -ENOMEM, !argv) in usif_ioctl()
121 if (ret = -EFAULT, copy_from_user(argv, user, size)) in usif_ioctl()
124 if (!(ret = nvif_unpack(-ENOSYS, &data, &size, argv->v0, 0, 0, true))) { in usif_ioctl()
126 owner = argv->v0.owner; in usif_ioctl()
127 if (argv->v0.object == 0ULL && in usif_ioctl()
128 argv->v0.type != NVIF_IOCTL_V0_DEL) in usif_ioctl()
129 argv->v0.owner = NVDRM_OBJECT_ANY; /* except client */ in usif_ioctl()
[all …]
/openbmc/u-boot/tools/
H A Drelocate-rela.c62 int main(int argc, char **argv) in main() argument
71 "<rela start> <rela end>\n", argv[0]); in main()
76 f = fopen(argv[1], "r+b"); in main()
79 argv[0], argv[1], strerror(errno)); in main()
83 if (!read_num(argv[2], &text_base) || in main()
84 !read_num(argv[3], &rela_start) || in main()
85 !read_num(argv[4], &rela_end)) { in main()
86 fprintf(stderr, "%s: bad number\n", argv[0]); in main()
92 fprintf(stderr, "%s: bad rela bounds\n", argv[0]); in main()
109 argv[0], argv[1], pos, strerror(errno)); in main()
[all …]
/openbmc/linux/tools/verification/rv/src/
H A Drv.c40 static void rv_list(int argc, char **argv) in rv_list() argument
61 if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) in rv_list()
74 static void rv_mon(int argc, char **argv) in rv_mon() argument
100 } else if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) { in rv_mon()
109 monitor_name = argv[1]; in rv_mon()
114 run += ikm_run_monitor(monitor_name, argc-1, &argv[1]); in rv_mon()
162 int main(int argc, char **argv) in main() argument
165 usage(1, "%s needs root permission", argv[0]); in main()
168 usage(1, "%s requires a command", argv[0]); in main()
170 if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) in main()
[all …]
/openbmc/openbmc/poky/scripts/cross-intercept/
H A Dar11 path = path.replace(os.path.dirname(sys.argv[0]), '')
14 if len(sys.argv) == 1:
18 argv = sys.argv variable
19 if argv[1].startswith('--'):
24 if argv[1][0] == '-':
25 argv[1] = argv[1][1:]
26 if 'U' in argv[1]:
29 argv[1] = argv[1].replace('u', '')
30 argv[1] = 'D' + argv[1]
32 os.execv(real_ar, argv)
/openbmc/openbmc/poky/scripts/native-intercept/
H A Dar11 path = path.replace(os.path.dirname(sys.argv[0]), '')
14 if len(sys.argv) == 1:
18 argv = sys.argv variable
19 if argv[1].startswith('--'):
24 if argv[1][0] == '-':
25 argv[1] = argv[1][1:]
26 if 'U' in argv[1]:
29 argv[1] = argv[1].replace('u', '')
30 argv[1] = 'D' + argv[1]
32 os.execv(real_ar, argv)
/openbmc/ipmitool/src/
H A Dipmishell.c99 int ipmi_shell_main(struct ipmi_intf * intf, int argc, char ** argv) in ipmi_shell_main() argument
217 ipmi_shell_main(struct ipmi_intf * intf, int argc, char ** argv) in ipmi_shell_main() argument
225 int ipmi_echo_main(struct ipmi_intf * intf, int argc, char ** argv) in ipmi_echo_main() argument
230 printf("%s ", argv[i]); in ipmi_echo_main()
255 int ipmi_set_main(struct ipmi_intf * intf, int argc, char ** argv) in ipmi_set_main() argument
257 if (argc == 0 || strncmp(argv[0], "help", 4) == 0) { in ipmi_set_main()
263 if (strncmp(argv[0], "verbose", 7) == 0) { in ipmi_set_main()
265 if (str2int(argv[1], &verbose) != 0) { in ipmi_set_main()
268 argv[1]); in ipmi_set_main()
276 if (strncmp(argv[0], "csv", 3) == 0) { in ipmi_set_main()
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/go/go/
H A D0003-ld-add-soname-to-shareable-objects.patch26 argv = append(argv, "-Wl,-z,relro")
28 argv = append(argv, "-shared")
29 + argv = append(argv, fmt.Sprintf("-Wl,-soname,%s", filepath.Base(*flagOutfile)))
31 argv = addASLRargs(argv, *flagAslr)
34 argv = append(argv, "-Wl,-z,relro")
36 argv = append(argv, "-shared")
37 + argv = append(argv, fmt.Sprintf("-Wl,-soname,%s", filepath.Base(*flagOutfile)))
40 argv = append(argv, "-dynamiclib")
42 argv = append(argv, "-Wl,-z,relro")
44 argv = append(argv, "-shared")
[all …]

12345678910>>...80