/linux/tools/perf/ |
H A D | builtin.h | 26 int cmd_annotate(int argc, const char **argv); 27 int cmd_bench(int argc, const char **argv); 28 int cmd_buildid_cache(int argc, const char **argv); 29 int cmd_buildid_list(int argc, const char **argv); 30 int cmd_check(int argc, const char **argv); 31 int cmd_config(int argc, const char **argv); 32 int cmd_c2c(int argc, const char **argv); 33 int cmd_diff(int argc, const char **argv); 34 int cmd_evlist(int argc, const char **argv); 35 int cmd_help(int argc, const char **argv); [all …]
|
H A D | perf.c | 197 static int handle_options(const char ***argv, int *argc, int *envchanged) in handle_options() argument 201 while (*argc > 0) { in handle_options() 255 if (*argc < 2) { in handle_options() 263 (*argc)--; in handle_options() 265 if (*argc < 2) { in handle_options() 273 (*argc)--; in handle_options() 298 if (*argc < 2) { in handle_options() 306 (*argc)--; in handle_options() 308 if (*argc < 2) { in handle_options() 317 (*argc) in handle_options() 334 run_builtin(struct cmd_struct * p,int argc,const char ** argv) run_builtin() argument 387 handle_internal_command(int argc,const char ** argv) handle_internal_command() argument 461 main(int argc,const char ** argv) main() argument [all...] |
H A D | builtin-data.c | 11 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()
|
H A D | builtin-check.c | 124 static int subcommand_feature(int argc, const char **argv) in subcommand_feature() argument 130 argc = parse_options(argc, argv, check_feature_options, in subcommand_feature() 133 if (!argc) in subcommand_feature() 136 if (argc > 1) { in subcommand_feature() 161 int cmd_check(int argc, const char **argv) in cmd_check() argument 163 argc = parse_options_subcommand(argc, argv, check_options, in cmd_check() 166 if (!argc) in cmd_check() 170 return subcommand_feature(argc, arg in cmd_check() [all...] |
/linux/tools/perf/bench/ |
H A D | bench.h | 21 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, cons [all...] |
H A D | syscall.c | 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() 181 int bench_syscall_execve(int argc, const char **argv) in bench_syscall_execve() argument 183 return bench_syscall_common(argc, argv, __NR_execve); in bench_syscall_execve()
|
/linux/fs/tests/ |
H A D | exec_kunit.c | 13 .argc = INT_MIN, .envc = INT_MIN }, .expected_rc = -E2BIG }, 15 .argc = 5, .envc = -1 }, .expected_rc = -E2BIG }, 17 .argc = -1, .envc = 10 }, .expected_rc = -E2BIG }, 20 .argc = INT_MAX, .envc = INT_MAX }, .expected_rc = -E2BIG }, 22 .argc = MAX_ARG_STRINGS, .envc = MAX_ARG_STRINGS }, .expected_rc = -E2BIG }, 24 .argc = 0, .envc = MAX_ARG_STRINGS }, .expected_rc = -E2BIG }, 26 .argc = MAX_ARG_STRINGS, .envc = 0 }, .expected_rc = -E2BIG }, 33 .argc = 0x20000001, .envc = 0x20000001 }, .expected_rc = -E2BIG }, 37 .argc = 10, .envc = 10 }, .expected_rc = -E2BIG }, 44 .argc = 1, .envc = 0 }, .expected_argmin = ULONG_MAX - ARG_MAX + sizeof(void *)}, [all …]
|
/linux/tools/bpf/bpftool/ |
H A D | main.h | 34 #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); 133 int cmd_select(const struct cmd *cmds, int argc, char **argv, 134 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 …]
|
H A D | main.c | 25 static int (*last_do_help)(int argc, char **argv); 52 static int do_help(int argc, char **argv) in do_help() argument 73 static int do_batch(int argc, char **argv); 74 static int do_version(int argc, char **argv); 114 static int do_version(int argc, char **argv) in do_version() argument 187 int cmd_select(const struct cmd *cmds, int argc, char **argv, in cmd_select() argument 188 int (*help)(int argc, char **argv)) in cmd_select() argument 192 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() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | uoutp.c | 33 nvkm_uoutp_mthd_dp_mst_vcpi(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_dp_mst_vcpi() argument 38 if (argc != sizeof(args->v0) || args->v0.version != 0) in nvkm_uoutp_mthd_dp_mst_vcpi() 49 nvkm_uoutp_mthd_dp_mst_id_put(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_dp_mst_id_put() argument 53 if (argc != sizeof(args->v0) || args->v0.version != 0) in nvkm_uoutp_mthd_dp_mst_id_put() 62 nvkm_uoutp_mthd_dp_mst_id_get(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_dp_mst_id_get() argument 66 if (argc != sizeof(args->v0) || args->v0.version != 0) in nvkm_uoutp_mthd_dp_mst_id_get() 75 nvkm_uoutp_mthd_dp_sst(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_dp_sst() argument 81 if (argc != sizeof(args->v0) || args->v0.version != 0) in nvkm_uoutp_mthd_dp_sst() 95 nvkm_uoutp_mthd_dp_drive(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_dp_drive() argument 99 if (argc != sizeof(args->v0) || args->v0.version != 0) in nvkm_uoutp_mthd_dp_drive() [all …]
|
/linux/tools/lib/subcmd/ |
H A D | exec-cmd.c | 170 int argc; in prepare_exec_cmd() local 173 for (argc = 0; argv[argc]; argc++) in prepare_exec_cmd() 175 nargv = malloc(sizeof(*nargv) * (argc + 2)); in prepare_exec_cmd() 178 for (argc = 0; argv[argc]; argc++) in prepare_exec_cmd() 179 nargv[argc + 1] = argv[argc]; in prepare_exec_cmd() 180 nargv[argc + 1] = NULL; in prepare_exec_cmd() 197 int argc; in execl_cmd() local 204 argc = 1; in execl_cmd() 205 while (argc < MAX_ARGS) { in execl_cmd() 206 arg = argv[argc++] = va_arg(param, char *); in execl_cmd() [all …]
|
/linux/tools/power/cpupower/utils/ |
H A D | builtin.h | 5 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);
|
H A D | cpupower.c | 25 static int cmd_help(int argc, const char **argv); 106 static int cmd_help(int argc, const char **argv) in cmd_help() argument 108 if (argc > 1) { in cmd_help() 123 static void handle_options(int *argc, const char ***argv) in handle_options() argument 127 if (*argc < 1) in handle_options() 130 for (x = 0; x < *argc && ((*argv)[x])[0] == '-'; x++) { 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() [all …]
|
/linux/scripts/kconfig/ |
H A D | preprocess.c | 19 static char *expand_string_with_args(const char *in, int argc, char *argv[]); 114 char *(*func)(int argc, char *argv[]); 117 static char *do_error_if(int argc, char *argv[]) in do_error_if() argument 125 static char *do_filename(int argc, char *argv[]) in do_filename() argument 130 static char *do_info(int argc, char *argv[]) in do_info() argument 137 static char *do_lineno(int argc, char *argv[]) in do_lineno() argument 146 static char *do_shell(int argc, char *argv[]) in do_shell() argument 186 static char *do_warning_if(int argc, char *argv[]) in do_warning_if() argument 206 static char *function_expand(const char *name, int argc, char *argv[]) in function_expand() argument 216 if (argc < f->min_args) in function_expand() [all …]
|
/linux/tools/usb/usbip/src/ |
H A D | usbip.c | 20 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() 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() 133 int main(int argc, char *argv[]) in main() argument [all …]
|
H A D | usbip.h | 15 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/tools/testing/selftests/net/mptcp/ |
H A D | pm_nl_ctl.c | 333 int dsf(int fd, int pm_family, int argc, char *argv[]) in dsf() argument 355 if (argc < 12) in dsf() 361 for (arg = 2; arg < argc; arg++) { in dsf() 363 if (++arg >= argc) in dsf() 368 if (++arg >= argc) in dsf() 373 if (++arg >= argc) in dsf() 378 if (++arg >= argc) in dsf() 383 if (++arg >= argc) in dsf() 445 int csf(int fd, int pm_family, int argc, char *argv[]) in csf() argument 470 if (argc < 12) in csf() [all …]
|
/linux/samples/timers/ |
H A D | hpet_example.c | 30 void (*func)(int argc, const char ** argv); 51 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() 80 hpet_open_close(int argc, const char **argv) in hpet_open_close() argument 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() [all …]
|
/linux/tools/tracing/rtla/src/ |
H A D | rtla.c | 46 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()
|
H A D | timerlat.c | 40 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/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | uvmm.c | 46 nvkm_uvmm_mthd_pfnclr(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_pfnclr() argument 55 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_uvmm_mthd_pfnclr() 74 nvkm_uvmm_mthd_pfnmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_pfnmap() argument 84 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, true))) { in nvkm_uvmm_mthd_pfnmap() 89 if (argc != (size >> page) * sizeof(args->v0.phys[0])) in nvkm_uvmm_mthd_pfnmap() 107 nvkm_uvmm_mthd_unmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_unmap() argument 117 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_uvmm_mthd_unmap() 151 nvkm_uvmm_mthd_map(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_map() argument 163 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, true))) { in nvkm_uvmm_mthd_map() 215 ret = nvkm_memory_map(memory, offset, vmm, vma, argv, argc); in nvkm_uvmm_mthd_map() [all …]
|
H A D | ummu.c | 57 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() 133 nvkm_ummu_mthd(struct nvkm_object *object, u32 mthd, void *argv, u32 argc) in nvkm_ummu_mthd() argument 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() [all …]
|
/linux/scripts/dtc/ |
H A D | fdtoverlay.c | 93 int argc, char *argv[]) in do_fdtoverlay() argument 113 ovblob = xmalloc(sizeof(*ovblob) * argc); in do_fdtoverlay() 114 memset(ovblob, 0, sizeof(*ovblob) * argc); in do_fdtoverlay() 117 for (i = 0; i < argc; i++) { in do_fdtoverlay() 136 for (i = 0; i < argc; i++) { in do_fdtoverlay() 150 for (i = 0; i < argc; i++) { in do_fdtoverlay() 161 int main(int argc, char *argv[]) in main() argument 190 argc -= optind; in main() 192 if (argc <= 0) in main() 198 for (i = 0; i < argc; i++) in main() [all …]
|
/linux/tools/verification/rv/src/ |
H A D | rv.c | 40 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/lib/ |
H A D | parser.c | 37 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 …]
|