Home
last modified time | relevance | path

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

12345678910>>...41

/linux-6.6.21/tools/perf/
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 …]
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 …]
Dbuiltin-bench.c31 typedef int (*bench_fn_t)(int argc, const char **argv);
211 int argc, const char **argv) in run_bench() argument
225 argv[0] = name; in run_bench()
227 ret = fn(argc, argv); in run_bench()
237 const char *argv[2]; in run_collection() local
239 argv[1] = NULL; in run_collection()
252 argv[1] = bench->name; in run_collection()
253 run_bench(coll->name, bench->name, bench->fn, 1, argv); in run_collection()
266 int cmd_bench(int argc, const char **argv) in cmd_bench() argument
281 argc = parse_options(argc, argv, bench_options, bench_usage, in cmd_bench()
[all …]
/linux-6.6.21/tools/perf/bench/
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 …]
Dsyscall.c58 char *const argv[] = { (char *)pathname, NULL }; in test_execve() local
65 execve(pathname, argv, NULL); in test_execve()
76 static int bench_syscall_common(int argc, const char **argv, int syscall) in bench_syscall_common() argument
83 argc = parse_options(argc, argv, options, bench_syscall_usage, 0); in bench_syscall_common()
166 int bench_syscall_basic(int argc, const char **argv) in bench_syscall_basic() argument
168 return bench_syscall_common(argc, argv, __NR_getppid); in bench_syscall_basic()
171 int bench_syscall_getpgid(int argc, const char **argv) in bench_syscall_getpgid() argument
173 return bench_syscall_common(argc, argv, __NR_getpgid); in bench_syscall_getpgid()
176 int bench_syscall_fork(int argc, const char **argv) in bench_syscall_fork() argument
178 return bench_syscall_common(argc, argv, __NR_fork); in bench_syscall_fork()
[all …]
/linux-6.6.21/tools/power/acpi/common/
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 …]
/linux-6.6.21/drivers/gpu/drm/nouveau/
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 …]
/linux-6.6.21/tools/verification/rv/src/
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 …]
/linux-6.6.21/tools/testing/selftests/net/
Dsctp_hello.c29 static int do_client(int argc, char *argv[]) in do_client() argument
36 printf("%s client -4|6 IP PORT [IP PORT]\n", argv[0]); in do_client()
41 ss.ss_family = !strcmp(argv[2], "-4") ? AF_INET : AF_INET6; in do_client()
49 set_addr(&ss, argv[5], argv[6], &len); in do_client()
57 set_addr(&ss, argv[3], argv[4], &len); in do_client()
74 int main(int argc, char *argv[]) in main() argument
80 if (argc < 2 || (strcmp(argv[1], "server") && strcmp(argv[1], "client"))) { in main()
81 printf("%s server|client ...\n", argv[0]); in main()
85 if (!strcmp(argv[1], "client")) in main()
86 return do_client(argc, argv); in main()
[all …]
/linux-6.6.21/tools/testing/selftests/net/mptcp/
Dpm_nl_ctl.c32 static void syntax(char *argv[]) in syntax() argument
34 …(stderr, "%s add|ann|rem|csf|dsf|get|set|del|flush|dump|events|listen|accept [<args>]\n", argv[0]); in syntax()
339 int dsf(int fd, int pm_family, int argc, char *argv[]) in dsf() argument
362 syntax(argv); in dsf()
368 if (!strcmp(argv[arg], "lip")) { in dsf()
372 params[0] = argv[arg]; in dsf()
373 } else if (!strcmp(argv[arg], "lport")) { in dsf()
377 params[1] = argv[arg]; in dsf()
378 } else if (!strcmp(argv[arg], "rip")) { in dsf()
382 params[2] = argv[arg]; in dsf()
[all …]
/linux-6.6.21/samples/timers/
Dhpet_example.c30 void (*func)(int argc, const char ** argv);
51 main(int argc, const char ** argv) in main() argument
56 argv++; in main()
65 if (!strcmp(argv[0], hpet_command[i].command)) { in main()
67 argv++; in main()
70 hpet_command[i].func(argc, argv); in main()
74 fprintf(stderr, "do_hpet: command %s not implemented\n", argv[0]); in main()
80 hpet_open_close(int argc, const char **argv) in hpet_open_close() argument
89 fd = open(argv[0], O_RDONLY); in hpet_open_close()
99 hpet_info(int argc, const char **argv) in hpet_info() argument
[all …]
/linux-6.6.21/lib/
Dargv_split.c35 void argv_free(char **argv) in argv_free() argument
37 argv--; in argv_free()
38 kfree(argv[0]); in argv_free()
39 kfree(argv); in argv_free()
64 char **argv, **argv_ret; in argv_split() local
72 argv = kmalloc_array(argc + 2, sizeof(*argv), gfp); in argv_split()
73 if (!argv) { in argv_split()
78 *argv = argv_str; in argv_split()
79 argv_ret = ++argv; in argv_split()
86 *argv++ = argv_str; in argv_split()
[all …]
/linux-6.6.21/tools/tracing/rtla/src/
Drtla.c46 int run_command(int argc, char **argv, int start_position) in run_command() argument
48 if (strcmp(argv[start_position], "osnoise") == 0) { in run_command()
49 osnoise_main(argc-start_position, &argv[start_position]); in run_command()
51 } else if (strcmp(argv[start_position], "hwnoise") == 0) { in run_command()
52 hwnoise_main(argc-start_position, &argv[start_position]); in run_command()
54 } else if (strcmp(argv[start_position], "timerlat") == 0) { in run_command()
55 timerlat_main(argc-start_position, &argv[start_position]); in run_command()
64 int main(int argc, char *argv[]) in main() argument
69 retval = run_command(argc, argv, 0); in main()
76 if (strcmp(argv[1], "-h") == 0) { in main()
[all …]
Dtimerlat.c40 int timerlat_main(int argc, char *argv[]) in timerlat_main() argument
50 timerlat_top_main(argc, argv); in timerlat_main()
54 if ((strcmp(argv[1], "-h") == 0) || (strcmp(argv[1], "--help") == 0)) { in timerlat_main()
56 } else if (strncmp(argv[1], "-", 1) == 0) { in timerlat_main()
58 timerlat_top_main(argc, argv); in timerlat_main()
60 } else if (strcmp(argv[1], "top") == 0) { in timerlat_main()
61 timerlat_top_main(argc-1, &argv[1]); in timerlat_main()
63 } else if (strcmp(argv[1], "hist") == 0) { in timerlat_main()
64 timerlat_hist_main(argc-1, &argv[1]); in timerlat_main()
/linux-6.6.21/fs/nilfs2/
Dioctl.c48 struct nilfs_argv *argv, int dir, in nilfs_ioctl_wrap_copy() argument
54 void __user *base = (void __user *)(unsigned long)argv->v_base; in nilfs_ioctl_wrap_copy()
60 if (argv->v_nmembs == 0) in nilfs_ioctl_wrap_copy()
63 if (argv->v_size > PAGE_SIZE) in nilfs_ioctl_wrap_copy()
71 if (argv->v_index > ~(__u64)0 - argv->v_nmembs) in nilfs_ioctl_wrap_copy()
77 maxmembs = PAGE_SIZE / argv->v_size; in nilfs_ioctl_wrap_copy()
81 pos = argv->v_index; in nilfs_ioctl_wrap_copy()
82 for (i = 0; i < argv->v_nmembs; i += n) { in nilfs_ioctl_wrap_copy()
83 n = (argv->v_nmembs - i < maxmembs) ? in nilfs_ioctl_wrap_copy()
84 argv->v_nmembs - i : maxmembs; in nilfs_ioctl_wrap_copy()
[all …]
/linux-6.6.21/tools/bpf/bpftool/
Dmap.c298 static char **parse_bytes(char **argv, const char *name, unsigned char *val, in parse_bytes() argument
304 if (is_prefix(*argv, "hex")) { in parse_bytes()
306 argv++; in parse_bytes()
309 while (i < n && argv[i]) { in parse_bytes()
310 val[i] = strtoul(argv[i], &endptr, base); in parse_bytes()
312 p_err("error parsing byte: %s", argv[i]); in parse_bytes()
323 return argv + i; in parse_bytes()
340 static int parse_elem(char **argv, struct bpf_map_info *info, in parse_elem() argument
344 if (!*argv) { in parse_elem()
351 if (is_prefix(*argv, "key")) { in parse_elem()
[all …]
Dmain.h34 #define NEXT_ARG() ({ argc--; argv++; if (argc < 0) usage(); })
35 #define NEXT_ARGP() ({ (*argc)--; (*argv)++; if (*argc < 0) usage(); })
36 #define BAD_ARG() ({ p_err("what is '%s'?", *argv); -1; })
37 #define GET_ARG() ({ argc--; *argv++; })
45 argv[-1], _cnt, argc); \
130 int (*func)(int argc, char **argv);
133 int cmd_select(const struct cmd *cmds, int argc, char **argv,
134 int (*help)(int argc, char **argv));
146 int do_pin_any(int argc, char **argv, int (*get_fd_by_id)(int *, char ***));
150 int do_gen(int argc, char **argv);
[all …]
/linux-6.6.21/tools/power/cpupower/utils/
Dcpupower.c25 static int cmd_help(int argc, const char **argv);
106 static int cmd_help(int argc, const char **argv) in cmd_help() argument
109 print_man_page(argv[1]); /* exits within execlp() */ in cmd_help()
123 static void handle_options(int *argc, const char ***argv) in handle_options() argument
130 for (x = 0; x < *argc && ((*argv)[x])[0] == '-'; x++) { in handle_options()
131 const char *param = (*argv)[x]; in handle_options()
140 if (!strcmp((*argv)[x+1], "all")) in handle_options()
144 (*argv)[x+1], cpus_chosen); in handle_options()
172 *argv += new_argc; in handle_options()
175 int main(int argc, const char *argv[]) in main() argument
[all …]
Dbuiltin.h5 extern int cmd_set(int argc, const char **argv);
6 extern int cmd_info(int argc, const char **argv);
7 extern int cmd_freq_set(int argc, const char **argv);
8 extern int cmd_freq_info(int argc, const char **argv);
9 extern int cmd_idle_set(int argc, const char **argv);
10 extern int cmd_idle_info(int argc, const char **argv);
11 extern int cmd_cap_info(int argc, const char **argv);
12 extern int cmd_cap_set(int argc, const char **argv);
13 extern int cmd_monitor(int argc, const char **argv);
/linux-6.6.21/tools/usb/usbip/src/
Dusbip.c20 static int usbip_help(int argc, char *argv[]);
21 static int usbip_version(int argc, char *argv[]);
36 int (*fn)(int argc, char *argv[]);
93 static int usbip_help(int argc, char *argv[]) in usbip_help() argument
99 if (argc > 1 && argv++) { in usbip_help()
101 if (!strcmp(cmds[i].name, argv[0]) && cmds[i].usage) { in usbip_help()
118 static int usbip_version(int argc, char *argv[]) in usbip_version() argument
121 (void) argv; in usbip_version()
127 static int run_command(const struct command *cmd, int argc, char *argv[]) in run_command() argument
130 return cmd->fn(argc, argv); in run_command()
[all …]
/linux-6.6.21/kernel/debug/kdb/
Dkdb_main.c459 int kdb_set(int argc, const char **argv) in kdb_set() argument
468 argv[2] = argv[3]; in kdb_set()
478 if (strcmp(argv[1], "PROMPT") == 0 && in kdb_set()
485 if (strcmp(argv[1], "KDBDEBUG") == 0) { in kdb_set()
489 debugflags = simple_strtoul(argv[2], &cp, 0); in kdb_set()
490 if (cp == argv[2] || debugflags & ~KDB_DEBUG_FLAG_MASK) { in kdb_set()
492 argv[2]); in kdb_set()
505 return kdb_setenv(argv[1], argv[2]); in kdb_set()
543 int kdbgetaddrarg(int argc, const char **argv, int *nextarg, in kdbgetaddrarg() argument
577 symname = (char *)argv[*nextarg]; in kdbgetaddrarg()
[all …]
/linux-6.6.21/tools/power/acpi/tools/ec/
Dec_access.c53 void parse_opts(int argc, char *argv[]) in parse_opts() argument
57 while ((c = getopt(argc, argv, "rs:b:w:v:h")) != -1) { in parse_opts()
62 usage(argv[0], EXIT_FAILURE); in parse_opts()
67 usage(argv[0], EXIT_FAILURE); in parse_opts()
72 usage(argv[0], EXIT_FAILURE); in parse_opts()
78 usage(argv[0], EXIT_FAILURE); in parse_opts()
84 usage(argv[0], EXIT_FAILURE); in parse_opts()
92 usage(argv[0], EXIT_SUCCESS); in parse_opts()
95 usage(argv[0], EXIT_FAILURE); in parse_opts()
104 usage(argv[0], EXIT_FAILURE); in parse_opts()
[all …]
/linux-6.6.21/scripts/kconfig/
Dpreprocess.c17 static char *expand_string_with_args(const char *in, int argc, char *argv[]);
109 char *(*func)(int argc, char *argv[]);
112 static char *do_error_if(int argc, char *argv[]) in do_error_if() argument
114 if (!strcmp(argv[0], "y")) in do_error_if()
115 pperror("%s", argv[1]); in do_error_if()
120 static char *do_filename(int argc, char *argv[]) in do_filename() argument
125 static char *do_info(int argc, char *argv[]) in do_info() argument
127 printf("%s\n", argv[0]); in do_info()
132 static char *do_lineno(int argc, char *argv[]) in do_lineno() argument
141 static char *do_shell(int argc, char *argv[]) in do_shell() argument
[all …]
/linux-6.6.21/arch/sparc/boot/
Dpiggyback.c177 int main(int argc,char **argv) in main() argument
188 if (strcmp(argv[1], "64") == 0) in main()
190 if (stat (argv[4], &s) < 0) in main()
191 die(argv[4]); in main()
193 if (!get_start_end(argv[3], &start, &end)) { in main()
195 argv[3]); in main()
198 if ((image = open(argv[2], O_RDWR)) < 0) in main()
199 die(argv[2]); in main()
201 die(argv[2]); in main()
214 offset = get_hdrs_offset(image, argv[2]); in main()
[all …]
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Duoutp.c31 nvkm_uoutp_mthd_dp_mst_vcpi(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_dp_mst_vcpi() argument
34 union nvif_outp_dp_mst_vcpi_args *args = argv; in nvkm_uoutp_mthd_dp_mst_vcpi()
47 nvkm_uoutp_mthd_dp_retrain(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_dp_retrain() argument
49 union nvif_outp_dp_retrain_args *args = argv; in nvkm_uoutp_mthd_dp_retrain()
61 nvkm_uoutp_mthd_dp_aux_pwr(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_dp_aux_pwr() argument
63 union nvif_outp_dp_aux_pwr_args *args = argv; in nvkm_uoutp_mthd_dp_aux_pwr()
74 nvkm_uoutp_mthd_hda_eld(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_hda_eld() argument
77 union nvif_outp_hda_eld_args *args = argv; in nvkm_uoutp_mthd_hda_eld()
103 nvkm_uoutp_mthd_infoframe(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_infoframe() argument
106 union nvif_outp_infoframe_args *args = argv; in nvkm_uoutp_mthd_infoframe()
[all …]

12345678910>>...41