Home
last modified time | relevance | path

Searched refs:argc (Results 1 – 25 of 911) sorted by relevance

12345678910>>...37

/linux-6.3-rc2/tools/perf/
A Dbuiltin.h11 int cmd_annotate(int argc, const char **argv);
12 int cmd_bench(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);
19 int cmd_help(int argc, const char **argv);
20 int cmd_sched(int argc, const char **argv);
22 int cmd_list(int argc, const char **argv);
25 int cmd_stat(int argc, const char **argv);
27 int cmd_top(int argc, const char **argv);
[all …]
A Dbuiltin-data.c11 typedef int (*data_cmd_fn_t)(int argc, const char **argv);
51 static int cmd_data_convert(int argc, const char **argv) in cmd_data_convert() argument
54 argc = parse_options(argc, argv, data_options, in cmd_data_convert()
56 if (argc) { in cmd_data_convert()
100 int cmd_data(int argc, const char **argv) in cmd_data() argument
105 argc = parse_options_subcommand(argc, argv, data_options, data_subcommands, data_usage, in cmd_data()
108 if (!argc) { in cmd_data()
119 return cmd->fn(argc, argv); in cmd_data()
A Dperf.c192 while (*argc > 0) { in handle_options()
246 if (*argc < 2) { in handle_options()
254 (*argc)--; in handle_options()
256 if (*argc < 2) { in handle_options()
264 (*argc)--; in handle_options()
289 if (*argc < 2) { in handle_options()
297 (*argc)--; in handle_options()
304 (*argc)--; in handle_options()
527 argc--; in main()
531 if (argc > 0) { in main()
[all …]
/linux-6.3-rc2/tools/perf/bench/
A Dbench.h21 int bench_numa(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);
27 int bench_mem_memcpy(int argc, const char **argv);
28 int bench_mem_memset(int argc, const char **argv);
29 int bench_mem_find_bit(int argc, const char **argv);
30 int bench_futex_hash(int argc, const char **argv);
31 int bench_futex_wake(int argc, const char **argv);
36 int bench_epoll_wait(int argc, const char **argv);
37 int bench_epoll_ctl(int argc, const char **argv);
[all …]
A Dsyscall.c55 static int bench_syscall_common(int argc, const char **argv, int syscall) in bench_syscall_common() argument
62 argc = parse_options(argc, argv, options, bench_syscall_usage, 0); in bench_syscall_common()
136 int bench_syscall_basic(int argc, const char **argv) in bench_syscall_basic() argument
138 return bench_syscall_common(argc, argv, __NR_getppid); in bench_syscall_basic()
141 int bench_syscall_getpgid(int argc, const char **argv) in bench_syscall_getpgid() argument
143 return bench_syscall_common(argc, argv, __NR_getpgid); in bench_syscall_getpgid()
146 int bench_syscall_execve(int argc, const char **argv) in bench_syscall_execve() argument
148 return bench_syscall_common(argc, argv, __NR_execve); in bench_syscall_execve()
/linux-6.3-rc2/tools/bpf/bpftool/
A Dmain.h34 #define NEXT_ARG() ({ argc--; argv++; if (argc < 0) usage(); })
35 #define NEXT_ARGP() ({ (*argc)--; (*argv)++; if (*argc < 0) usage(); })
37 #define GET_ARG() ({ argc--; *argv++; })
43 if (argc < _cnt) { \
45 argv[-1], _cnt, argc); \
130 int (*func)(int argc, char **argv);
150 int do_gen(int argc, char **argv);
151 int do_btf(int argc, char **argv);
154 int do_prog(int argc, char **arg) __weak;
155 int do_map(int argc, char **arg) __weak;
[all …]
A Dmain.c192 last_argc = argc; in cmd_select()
196 if (argc < 1 && cmds[0].func) in cmd_select()
197 return cmds[0].func(argc, argv); in cmd_select()
210 help(argc - 1, argv + 1); in cmd_select()
334 if (argc < 2) { in do_batch()
337 } else if (argc > 2) { in do_batch()
438 int main(int argc, char **argv) in main() argument
483 return do_help(argc, argv); in main()
531 argc -= optind; in main()
533 if (argc < 0) in main()
[all …]
/linux-6.3-rc2/tools/power/cpupower/utils/
A 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);
A Dcpupower.c25 static int cmd_help(int argc, const char **argv);
108 if (argc > 1) { in cmd_help()
127 if (*argc < 1) in handle_options()
136 if (*argc < 2) { in handle_options()
171 *argc -= new_argc; in handle_options()
175 int main(int argc, const char *argv[]) in main() argument
187 argc--; in main()
190 handle_options(&argc, &argv); in main()
194 if (argc < 1) { in main()
203 if (argc > 1 && !strcmp(argv[1], "--help")) { in main()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/engine/disp/
A Duoutp.c36 if (argc != sizeof(args->v0) || args->v0.version != 0) in nvkm_uoutp_mthd_dp_mst_vcpi()
51 if (argc != sizeof(args->vn)) in nvkm_uoutp_mthd_dp_retrain()
65 if (argc != sizeof(args->v0) || args->v0.version != 0) in nvkm_uoutp_mthd_dp_aux_pwr()
79 if (argc < sizeof(args->v0) || args->v0.version != 0) in nvkm_uoutp_mthd_hda_eld()
81 argc -= sizeof(args->v0); in nvkm_uoutp_mthd_hda_eld()
85 if (argc > 0x60) in nvkm_uoutp_mthd_hda_eld()
88 if (argc && args->v0.data[0]) { in nvkm_uoutp_mthd_hda_eld()
107 ssize_t size = argc - sizeof(*args); in nvkm_uoutp_mthd_infoframe()
109 if (argc < sizeof(args->v0) || args->v0.version != 0) in nvkm_uoutp_mthd_infoframe()
135 if (argc != sizeof(args->vn)) in nvkm_uoutp_mthd_release()
[all …]
/linux-6.3-rc2/tools/lib/subcmd/
A Dexec-cmd.c165 int argc; in prepare_exec_cmd() local
168 for (argc = 0; argv[argc]; argc++) in prepare_exec_cmd()
170 nargv = malloc(sizeof(*nargv) * (argc + 2)); in prepare_exec_cmd()
173 for (argc = 0; argv[argc]; argc++) in prepare_exec_cmd()
174 nargv[argc + 1] = argv[argc]; in prepare_exec_cmd()
175 nargv[argc + 1] = NULL; in prepare_exec_cmd()
192 int argc; in execl_cmd() local
199 argc = 1; in execl_cmd()
200 while (argc < MAX_ARGS) { in execl_cmd()
206 if (MAX_ARGS <= argc) { in execl_cmd()
[all …]
/linux-6.3-rc2/tools/usb/usbip/src/
A 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()
118 static int usbip_version(int argc, char *argv[]) in usbip_version() argument
120 (void) argc; in usbip_version()
130 return cmd->fn(argc, argv); in run_command()
133 int main(int argc, char *argv[]) in main() argument
179 argc -= optind; in main()
[all …]
A Dusbip.h15 int usbip_attach(int argc, char *argv[]);
16 int usbip_detach(int argc, char *argv[]);
17 int usbip_list(int argc, char *argv[]);
18 int usbip_bind(int argc, char *argv[]);
19 int usbip_unbind(int argc, char *argv[]);
20 int usbip_port_show(int argc, char *argv[]);
/linux-6.3-rc2/scripts/kconfig/
A Dpreprocess.c109 char *(*func)(int argc, char *argv[]);
125 static char *do_info(int argc, char *argv[]) in do_info() argument
141 static char *do_shell(int argc, char *argv[]) in do_shell() argument
212 if (argc < f->min_args) in function_expand()
216 if (argc > f->max_args) in function_expand()
220 return f->func(argc, argv); in function_expand()
260 if (argc == 0 && v->exp_count) in variable_expand()
363 if (!*endptr && n > 0 && n <= argc) { in eval_clause()
411 argc, argv); in eval_clause()
487 return eval_clause(p, q - p, argc, argv); in expand_dollar_with_args()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
A Duvmm.c46 nvkm_uvmm_mthd_pfnclr(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_pfnclr() argument
71 nvkm_uvmm_mthd_pfnmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_pfnmap() argument
86 if (argc != (size >> page) * sizeof(args->v0.phys[0])) in nvkm_uvmm_mthd_pfnmap()
101 nvkm_uvmm_mthd_unmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_unmap() argument
142 nvkm_uvmm_mthd_map(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_map() argument
203 ret = nvkm_memory_map(memory, offset, vmm, vma, argv, argc); in nvkm_uvmm_mthd_map()
220 nvkm_uvmm_mthd_put(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_put() argument
256 nvkm_uvmm_mthd_get(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_get() argument
290 nvkm_uvmm_mthd_page(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_page() argument
302 if (!(nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_uvmm_mthd_page()
[all …]
A Dummu.c57 nvkm_ummu_heap(struct nvkm_ummu *ummu, void *argv, u32 argc) in nvkm_ummu_heap() argument
66 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_ummu_heap()
77 nvkm_ummu_type(struct nvkm_ummu *ummu, void *argv, u32 argc) in nvkm_ummu_type() argument
86 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_ummu_type()
106 nvkm_ummu_kind(struct nvkm_ummu *ummu, void *argv, u32 argc) in nvkm_ummu_kind() argument
119 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, true))) { in nvkm_ummu_kind()
120 if (argc != args->v0.count * sizeof(*args->v0.data)) in nvkm_ummu_kind()
137 case NVIF_MMU_V0_HEAP: return nvkm_ummu_heap(ummu, argv, argc); in nvkm_ummu_mthd()
138 case NVIF_MMU_V0_TYPE: return nvkm_ummu_type(ummu, argv, argc); in nvkm_ummu_mthd()
139 case NVIF_MMU_V0_KIND: return nvkm_ummu_kind(ummu, argv, argc); in nvkm_ummu_mthd()
[all …]
/linux-6.3-rc2/tools/perf/tests/
A Dbuiltin-test.c186 if (argc == 0) in perf_test__matches()
189 for (i = 0; i < argc; ++i) { in perf_test__matches()
388 curr, argc, argv)) in __cmd_test()
433 curr, argc, argv)) in __cmd_test()
491 perf_test__list_shell(argc, argv, i); in perf_test__list()
504 return twl->func(argc, argv); in run_workload()
511 int cmd_test(int argc, const char **argv) in cmd_test() argument
539 argc = parse_options_subcommand(argc, argv, test_options, test_subcommands, test_usage, 0); in cmd_test()
540 if (argc >= 1 && !strcmp(argv[0], "list")) in cmd_test()
544 return run_workload(workload, argc, argv); in cmd_test()
[all …]
/linux-6.3-rc2/tools/tracing/rtla/src/
A Drtla.c46 int run_command(int argc, char **argv, int start_position) in run_command() argument
49 osnoise_main(argc-start_position, &argv[start_position]); in run_command()
52 hwnoise_main(argc-start_position, &argv[start_position]); 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()
73 if (argc < 2) in main()
82 retval = run_command(argc, argv, 1); in main()
A Dtimerlat.c40 int timerlat_main(int argc, char *argv[]) in timerlat_main() argument
42 if (argc == 0) in timerlat_main()
49 if (argc == 1) { in timerlat_main()
50 timerlat_top_main(argc, argv); in timerlat_main()
58 timerlat_top_main(argc, argv); in timerlat_main()
61 timerlat_top_main(argc-1, &argv[1]); in timerlat_main()
64 timerlat_hist_main(argc-1, &argv[1]); in timerlat_main()
/linux-6.3-rc2/kernel/debug/kdb/
A Dkdb_main.c469 argc--; in kdb_set()
472 if (argc != 2) in kdb_set()
778 if (argc != 3) in kdb_defcmd()
991 argc = 0; in kdb_parse()
1047 if (!argc) in kdb_parse()
1619 if (argc == 2 || (argc == 0 && last_addr != 0)) in kdb_md()
1664 if (argc) { in kdb_md()
2098 if (argc) { in kdb_dmesg()
2386 if (argc) { in kdb_pid()
2506 if (argc) in kdb_summary()
[all …]
/linux-6.3-rc2/samples/timers/
A Dhpet_example.c51 main(int argc, const char ** argv) in main() argument
55 argc--; in main()
58 if (!argc) { in main()
66 argc--; in main()
70 hpet_command[i].func(argc, argv); in main()
84 if (argc != 1) { in hpet_open_close()
99 hpet_info(int argc, const char **argv) in hpet_info() argument
104 if (argc != 1) { in hpet_info()
131 hpet_poll(int argc, const char **argv) in hpet_poll() argument
141 if (argc != 3) { in hpet_poll()
[all …]
/linux-6.3-rc2/tools/verification/rv/src/
A Drv.c40 static void rv_list(int argc, char **argv) in rv_list() argument
53 if (argc > 1) { in rv_list()
74 static void rv_mon(int argc, char **argv) in rv_mon() argument
93 if (argc == 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
167 if (argc <= 1) in main()
174 rv_list(--argc, &argv[1]); in main()
183 rv_mon(argc - 1, &argv[1]); in main()
/linux-6.3-rc2/scripts/dtc/
A Dfdtoverlay.c95 int argc, char *argv[]) in do_fdtoverlay() argument
115 ovblob = xmalloc(sizeof(*ovblob) * argc); in do_fdtoverlay()
116 memset(ovblob, 0, sizeof(*ovblob) * argc); in do_fdtoverlay()
119 for (i = 0; i < argc; i++) { in do_fdtoverlay()
138 for (i = 0; i < argc; i++) { in do_fdtoverlay()
152 for (i = 0; i < argc; i++) { in do_fdtoverlay()
163 int main(int argc, char *argv[]) in main() argument
192 argc -= optind; in main()
194 if (argc <= 0) in main()
200 for (i = 0; i < argc; i++) in main()
[all …]
/linux-6.3-rc2/lib/
A Dparser.c37 int argc = 0; in match_one() local
63 if (argc >= MAX_OPT_ARGS) in match_one()
66 args[argc].from = s; in match_one()
75 args[argc].to = s + len; in match_one()
79 simple_strtol(s, &args[argc].to, 0); in match_one()
82 simple_strtoul(s, &args[argc].to, 0); in match_one()
85 simple_strtoul(s, &args[argc].to, 8); in match_one()
88 simple_strtoul(s, &args[argc].to, 16); in match_one()
90 if (args[argc].to == args[argc].from) in match_one()
96 s = args[argc].to; in match_one()
[all …]
/linux-6.3-rc2/tools/testing/selftests/net/mptcp/
A Dpm_nl_ctl.c350 if (argc < 12) in dsf()
464 if (argc < 12) in csf()
583 if (argc < 6) in remove_addr()
635 if (argc < 7) in announce_addr()
761 if (argc < 3) in add_addr()
891 if (argc != 3 && argc != 4) in del_addr()
1081 if (argc != 3) in get_addr()
1189 if (argc == 4) { in get_set_limits()
1236 if (argc < 4) in add_listener()
1297 if (argc < 3) in set_flags()
[all …]

Completed in 59 milliseconds

12345678910>>...37