/linux/tools/perf/ |
A D | builtin.h | 11 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 D | perf.c | 175 while (*argc > 0) { in handle_options() 229 if (*argc < 2) { in handle_options() 237 (*argc)--; in handle_options() 239 if (*argc < 2) { in handle_options() 247 (*argc)--; in handle_options() 272 if (*argc < 2) { in handle_options() 280 (*argc)--; in handle_options() 287 (*argc)--; in handle_options() 504 argc--; in main() 508 if (argc > 0) { in main() [all …]
|
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() 92 int cmd_data(int argc, const char **argv) in cmd_data() argument 97 argc = parse_options_subcommand(argc, argv, data_options, data_subcommands, data_usage, in cmd_data() 100 if (!argc) { in cmd_data() 111 return cmd->fn(argc, argv); in cmd_data()
|
A D | builtin-kallsyms.c | 19 static int __cmd_kallsyms(int argc, const char **argv) in __cmd_kallsyms() argument 29 for (i = 0; i < argc; ++i) { in __cmd_kallsyms() 48 int cmd_kallsyms(int argc, const char **argv) in cmd_kallsyms() argument 59 argc = parse_options(argc, argv, options, kallsyms_usage, 0); in cmd_kallsyms() 60 if (argc < 1) in cmd_kallsyms() 68 return __cmd_kallsyms(argc, argv); in cmd_kallsyms()
|
/linux/tools/perf/bench/ |
A D | bench.h | 33 int bench_numa(int argc, const char **argv); 35 int bench_sched_pipe(int argc, const char **argv); 36 int bench_syscall_basic(int argc, const char **argv); 37 int bench_mem_memcpy(int argc, const char **argv); 38 int bench_mem_memset(int argc, const char **argv); 39 int bench_mem_find_bit(int argc, const char **argv); 40 int bench_futex_hash(int argc, const char **argv); 41 int bench_futex_wake(int argc, const char **argv); 46 int bench_epoll_wait(int argc, const char **argv); 47 int bench_epoll_ctl(int argc, const char **argv); [all …]
|
/linux/tools/bpf/bpftool/ |
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); \ 136 int (*func)(int argc, char **argv); 152 int do_gen(int argc, char **argv); 153 int do_btf(int argc, char **argv); 156 int do_prog(int argc, char **arg) __weak; 157 int do_map(int argc, char **arg) __weak; [all …]
|
A D | main.c | 120 last_argc = argc; in cmd_select() 124 if (argc < 1 && cmds[0].func) in cmd_select() 125 return cmds[0].func(argc, argv); in cmd_select() 138 help(argc - 1, argv + 1); in cmd_select() 282 if (argc < 2) { in do_batch() 288 } else if (argc > 2) { in do_batch() 386 int main(int argc, char **argv) in main() argument 415 return do_version(argc, argv); in main() 417 return do_help(argc, argv); in main() 466 argc -= optind; in main() [all …]
|
A D | cgroup.c | 178 while (argc) { in do_show() 325 if (!argc) { in do_show_tree() 335 while (argc) { in do_show_tree() 388 if (argc < 4) { in do_attach() 405 argc -= 2; in do_attach() 407 prog_fd = prog_parse_fd(&argc, &argv); in do_attach() 411 for (i = 0; i < argc; i++) { in do_attach() 446 if (argc < 4) { in do_detach() 463 argc -= 2; in do_detach() 465 prog_fd = prog_parse_fd(&argc, &argv); in do_detach() [all …]
|
A D | map.c | 402 int argc = 2; in parse_elem() local 420 int argc = 2; in parse_elem() local 709 if (argc == 2) in do_show() 712 if (argc) in do_show() 1016 if (argc < 2) in do_update() 1098 if (argc < 2) in do_lookup() 1149 if (argc < 2) in do_getnext() 1164 if (argc) { in do_getnext() 1220 if (argc < 2) in do_delete() 1378 if (argc < 2) in do_pop_dequeue() [all …]
|
/linux/tools/lib/subcmd/ |
A D | exec-cmd.c | 162 int argc; in prepare_exec_cmd() local 165 for (argc = 0; argv[argc]; argc++) in prepare_exec_cmd() 167 nargv = malloc(sizeof(*nargv) * (argc + 2)); in prepare_exec_cmd() 170 for (argc = 0; argv[argc]; argc++) in prepare_exec_cmd() 171 nargv[argc + 1] = argv[argc]; in prepare_exec_cmd() 172 nargv[argc + 1] = NULL; in prepare_exec_cmd() 189 int argc; in execl_cmd() local 196 argc = 1; in execl_cmd() 197 while (argc < MAX_ARGS) { in execl_cmd() 203 if (MAX_ARGS <= argc) { in execl_cmd() [all …]
|
/linux/tools/usb/usbip/src/ |
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() 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 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/scripts/kconfig/ |
A D | preprocess.c | 109 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/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
A D | uvmm.c | 46 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 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() 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/kernel/debug/kdb/ |
A D | kdb_main.c | 417 argc--; in kdb_set() 420 if (argc != 2) in kdb_set() 726 if (argc != 3) in kdb_defcmd() 939 argc = 0; in kdb_parse() 995 if (!argc) in kdb_parse() 1564 if (argc == 2 || (argc == 0 && last_addr != 0)) in kdb_md() 1609 if (argc) { in kdb_md() 2091 if (argc) { in kdb_dmesg() 2379 if (argc) { in kdb_pid() 2499 if (argc) in kdb_summary() [all …]
|
A D | kdb_bt.c | 127 kdb_bt(int argc, const char **argv) in kdb_bt() argument 141 const char *mask = argc ? argv[1] : kdbgetenv("PS"); in kdb_bt() 143 if (argc == 0) in kdb_bt() 163 if (argc != 1) in kdb_bt() 174 if (argc != 1) in kdb_bt() 182 if (argc > 1) in kdb_bt() 184 if (argc == 1) { in kdb_bt() 206 if (argc) { in kdb_bt() 208 diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, in kdb_bt()
|
/linux/tools/power/cpupower/utils/ |
A D | cpupower.c | 25 static int cmd_help(int argc, const char **argv); 107 if (argc > 1) { in cmd_help() 126 if (*argc < 1) in handle_options() 135 if (*argc < 2) { in handle_options() 170 *argc -= new_argc; in handle_options() 174 int main(int argc, const char *argv[]) in main() argument 186 argc--; in main() 189 handle_options(&argc, &argv); in main() 193 if (argc < 1) { in main() 202 if (argc > 1 && !strcmp(argv[1], "--help")) { in main() [all …]
|
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_monitor(int argc, const char **argv);
|
/linux/samples/timers/ |
A D | hpet_example.c | 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() 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/scripts/dtc/ |
A D | fdtoverlay.c | 95 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/lib/ |
A D | parser.c | 28 int argc = 0; in match_one() local 54 if (argc >= MAX_OPT_ARGS) in match_one() 57 args[argc].from = s; in match_one() 66 args[argc].to = s + len; in match_one() 70 simple_strtol(s, &args[argc].to, 0); in match_one() 73 simple_strtoul(s, &args[argc].to, 0); in match_one() 76 simple_strtoul(s, &args[argc].to, 8); in match_one() 79 simple_strtoul(s, &args[argc].to, 16); in match_one() 81 if (args[argc].to == args[argc].from) in match_one() 87 s = args[argc].to; in match_one() [all …]
|
/linux/tools/objtool/ |
A D | builtin-check.c | 51 int cmd_parse_options(int argc, const char **argv, const char * const usage[]) in cmd_parse_options() argument 72 argc = parse_options(argc, argv, check_options, usage, 0); in cmd_parse_options() 73 if (argc != 1) in cmd_parse_options() 75 return argc; in cmd_parse_options() 78 int cmd_check(int argc, const char **argv) in cmd_check() argument 84 argc = cmd_parse_options(argc, argv, check_usage); in cmd_check()
|
/linux/tools/perf/tests/ |
A D | builtin-test.c | 165 if (argc == 0) in perf_test__matches() 168 for (i = 0; i < argc; ++i) { in perf_test__matches() 465 curr, argc, argv)) in __cmd_test() 510 curr, argc, argv)) in __cmd_test() 545 if (!perf_test__matches(t.desc, curr, argc, argv)) in perf_test__list_shell() 582 perf_test__list_shell(argc, argv, i); in perf_test__list() 587 int cmd_test(int argc, const char **argv) in cmd_test() argument 609 argc = parse_options_subcommand(argc, argv, test_options, test_subcommands, test_usage, 0); in cmd_test() 610 if (argc >= 1 && !strcmp(argv[0], "list")) in cmd_test() 611 return perf_test__list(argc - 1, argv + 1); in cmd_test() [all …]
|
/linux/drivers/gpu/drm/nouveau/ |
A D | nouveau_usif.c | 156 ret = nvif_client_ioctl(client, argv, argc); in usif_notify_new() 186 ret = nvif_client_ioctl(client, argv, argc); in usif_notify_del() 220 ret = nvif_client_ioctl(client, argv, argc); in usif_notify_get() 246 ret = nvif_client_ioctl(client, argv, argc); in usif_notify_put() 310 ret = nvif_client_ioctl(client, argv, argc); in usif_object_new() 326 void *data = kmalloc(argc, GFP_KERNEL); in usif_ioctl() 327 u32 size = argc; in usif_ioctl() 358 ret = nouveau_abi16_usif(filp, argv, argc); in usif_ioctl() 372 ret = usif_notify_new(filp, data, size, argv, argc); in usif_ioctl() 384 ret = nvif_client_ioctl(client, argv, argc); in usif_ioctl() [all …]
|