Home
last modified time | relevance | path

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

12345678910>>...39

/linux-6.1.9/tools/perf/
Dbuiltin.h11 int cmd_annotate(int argc, const char **argv);
12 int cmd_bench(int argc, const char **argv);
13 int cmd_buildid_cache(int argc, const char **argv);
14 int cmd_buildid_list(int argc, const char **argv);
15 int cmd_config(int argc, const char **argv);
16 int cmd_c2c(int argc, const char **argv);
17 int cmd_diff(int argc, const char **argv);
18 int cmd_evlist(int argc, const char **argv);
19 int cmd_help(int argc, const char **argv);
20 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-list.c26 int cmd_list(int argc, const char **argv) in cmd_list() argument
57 argc = parse_options(argc, argv, list_options, list_usage, in cmd_list()
80 if (strcmp(argv[i], "tracepoint") == 0) in cmd_list()
82 else if (strcmp(argv[i], "hw") == 0 || in cmd_list()
83 strcmp(argv[i], "hardware") == 0) in cmd_list()
86 else if (strcmp(argv[i], "sw") == 0 || in cmd_list()
87 strcmp(argv[i], "software") == 0) { in cmd_list()
91 } else if (strcmp(argv[i], "cache") == 0 || in cmd_list()
92 strcmp(argv[i], "hwcache") == 0) in cmd_list()
94 else if (strcmp(argv[i], "pmu") == 0) in cmd_list()
[all …]
Dbuiltin-bench.c30 typedef int (*bench_fn_t)(int argc, const char **argv);
197 int argc, const char **argv) in run_bench() argument
211 argv[0] = name; in run_bench()
213 ret = fn(argc, argv); in run_bench()
223 const char *argv[2]; in run_collection() local
225 argv[1] = NULL; in run_collection()
238 argv[1] = bench->name; in run_collection()
239 run_bench(coll->name, bench->name, bench->fn, 1, argv); in run_collection()
252 int cmd_bench(int argc, const char **argv) in cmd_bench() argument
266 argc = parse_options(argc, argv, bench_options, bench_usage, in cmd_bench()
[all …]
/linux-6.1.9/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_syscall_basic(int argc, const char **argv);
25 int bench_mem_memcpy(int argc, const char **argv);
26 int bench_mem_memset(int argc, const char **argv);
27 int bench_mem_find_bit(int argc, const char **argv);
28 int bench_futex_hash(int argc, const char **argv);
29 int bench_futex_wake(int argc, const char **argv);
30 int bench_futex_wake_parallel(int argc, const char **argv);
[all …]
/linux-6.1.9/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.1.9/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.1.9/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()
328 int dsf(int fd, int pm_family, int argc, char *argv[]) in dsf() argument
351 syntax(argv); in dsf()
357 if (!strcmp(argv[arg], "lip")) { in dsf()
361 params[0] = argv[arg]; in dsf()
362 } else if (!strcmp(argv[arg], "lport")) { in dsf()
366 params[1] = argv[arg]; in dsf()
367 } else if (!strcmp(argv[arg], "rip")) { in dsf()
371 params[2] = argv[arg]; in dsf()
[all …]
/linux-6.1.9/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.1.9/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.1.9/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.1.9/tools/bpf/bpftool/
Dmap.c291 static char **parse_bytes(char **argv, const char *name, unsigned char *val, in parse_bytes() argument
297 if (is_prefix(*argv, "hex")) { in parse_bytes()
299 argv++; in parse_bytes()
302 while (i < n && argv[i]) { in parse_bytes()
303 val[i] = strtoul(argv[i], &endptr, base); in parse_bytes()
305 p_err("error parsing byte: %s", argv[i]); in parse_bytes()
316 return argv + i; in parse_bytes()
333 static int parse_elem(char **argv, struct bpf_map_info *info, in parse_elem() argument
337 if (!*argv) { in parse_elem()
344 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); \
131 int (*func)(int argc, char **argv);
134 int cmd_select(const struct cmd *cmds, int argc, char **argv,
135 int (*help)(int argc, char **argv));
147 int do_pin_any(int argc, char **argv, int (*get_fd_by_id)(int *, char ***));
151 int do_gen(int argc, char **argv);
[all …]
Dmain.c25 static int (*last_do_help)(int argc, char **argv);
53 static int do_help(int argc, char **argv) in do_help() argument
85 static int do_version(int argc, char **argv) in do_version() argument
146 int cmd_select(const struct cmd *cmds, int argc, char **argv, in cmd_select() argument
147 int (*help)(int argc, char **argv)) in cmd_select()
152 last_argv = argv; in cmd_select()
156 return cmds[0].func(argc, argv); in cmd_select()
159 if (is_prefix(*argv, cmds[i].cmd)) { in cmd_select()
165 return cmds[i].func(argc - 1, argv + 1); in cmd_select()
169 help(argc - 1, argv + 1); in cmd_select()
[all …]
Dcgroup.c285 static int do_show(int argc, char **argv) in do_show() argument
300 if (is_prefix(*argv, "effective")) { in do_show()
302 p_err("duplicated argument: %s", *argv); in do_show()
309 *argv); in do_show()
443 static int do_show_tree(int argc, char **argv) in do_show_tree() argument
461 if (is_prefix(*argv, "effective")) { in do_show_tree()
463 p_err("duplicated argument: %s", *argv); in do_show_tree()
470 *argv); in do_show_tree()
510 static int do_attach(int argc, char **argv) in do_attach() argument
523 cgroup_fd = open(argv[0], O_RDONLY); in do_attach()
[all …]
/linux-6.1.9/tools/tracing/rtla/src/
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()
57 } else if (strncmp(argv[1], "-", 1) == 0) { in timerlat_main()
59 timerlat_top_main(argc, argv); in timerlat_main()
61 } else if (strcmp(argv[1], "top") == 0) { in timerlat_main()
62 timerlat_top_main(argc-1, &argv[1]); in timerlat_main()
64 } else if (strcmp(argv[1], "hist") == 0) { in timerlat_main()
65 timerlat_hist_main(argc-1, &argv[1]); in timerlat_main()
Drtla.c45 int run_command(int argc, char **argv, int start_position) in run_command() argument
47 if (strcmp(argv[start_position], "osnoise") == 0) { in run_command()
48 osnoise_main(argc-start_position, &argv[start_position]); in run_command()
50 } else if (strcmp(argv[start_position], "timerlat") == 0) { in run_command()
51 timerlat_main(argc-start_position, &argv[start_position]); in run_command()
60 int main(int argc, char *argv[]) in main() argument
65 retval = run_command(argc, argv, 0); in main()
72 if (strcmp(argv[1], "-h") == 0) { in main()
75 } else if (strcmp(argv[1], "--help") == 0) { in main()
80 retval = run_command(argc, argv, 1); in main()
/linux-6.1.9/tools/power/cpupower/utils/
Dcpupower.c25 static int cmd_help(int argc, const char **argv);
105 static int cmd_help(int argc, const char **argv) in cmd_help() argument
108 print_man_page(argv[1]); /* exits within execlp() */ in cmd_help()
122 static void handle_options(int *argc, const char ***argv) in handle_options() argument
129 for (x = 0; x < *argc && ((*argv)[x])[0] == '-'; x++) { in handle_options()
130 const char *param = (*argv)[x]; in handle_options()
139 if (!strcmp((*argv)[x+1], "all")) in handle_options()
143 (*argv)[x+1], cpus_chosen); in handle_options()
171 *argv += new_argc; in handle_options()
174 int main(int argc, const char *argv[]) in main() argument
[all …]
/linux-6.1.9/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.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Duvmm.c46 nvkm_uvmm_mthd_pfnclr(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_pfnclr() argument
50 } *args = argv; in nvkm_uvmm_mthd_pfnclr()
55 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_uvmm_mthd_pfnclr()
71 nvkm_uvmm_mthd_pfnmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_pfnmap() argument
75 } *args = argv; in nvkm_uvmm_mthd_pfnmap()
81 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, true))) { in nvkm_uvmm_mthd_pfnmap()
101 nvkm_uvmm_mthd_unmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_unmap() argument
105 } *args = argv; in nvkm_uvmm_mthd_unmap()
111 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_uvmm_mthd_unmap()
142 nvkm_uvmm_mthd_map(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_map() argument
[all …]
/linux-6.1.9/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.1.9/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.1.9/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.1.9/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.1.9/kernel/
Dkmod.c65 kfree(info->argv[3]); /* check call_modprobe() */ in free_modprobe_argv()
66 kfree(info->argv); in free_modprobe_argv()
79 char **argv = kmalloc(sizeof(char *[5]), GFP_KERNEL); in call_modprobe() local
80 if (!argv) in call_modprobe()
87 argv[0] = modprobe_path; in call_modprobe()
88 argv[1] = "-q"; in call_modprobe()
89 argv[2] = "--"; in call_modprobe()
90 argv[3] = module_name; /* check free_modprobe_argv() */ in call_modprobe()
91 argv[4] = NULL; in call_modprobe()
93 info = call_usermodehelper_setup(modprobe_path, argv, envp, GFP_KERNEL, in call_modprobe()
[all …]

12345678910>>...39