/linux-6.6.21/tools/perf/ |
D | builtin.h | 8 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 …]
|
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()
|
D | perf.c | 180 static int handle_options(const char ***argv, int *argc, int *envchanged) in handle_options() argument 184 while (*argc > 0) { in handle_options() 238 if (*argc < 2) { in handle_options() 246 (*argc)--; in handle_options() 248 if (*argc < 2) { in handle_options() 256 (*argc)--; in handle_options() 281 if (*argc < 2) { in handle_options() 289 (*argc)--; in handle_options() 296 (*argc)--; in handle_options() 305 static int run_builtin(struct cmd_struct *p, int argc, const char **argv) in run_builtin() argument [all …]
|
/linux-6.6.21/tools/perf/bench/ |
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, const char **argv); [all …]
|
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-6.6.21/tools/bpf/bpftool/ |
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)); 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 …]
|
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-6.6.21/tools/power/cpupower/utils/ |
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);
|
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-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | uoutp.c | 31 nvkm_uoutp_mthd_dp_mst_vcpi(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_dp_mst_vcpi() argument 36 if (argc != sizeof(args->v0) || args->v0.version != 0) 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 51 if (argc != sizeof(args->vn)) 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 65 if (argc != sizeof(args->v0) || args->v0.version != 0) 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 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() [all …]
|
/linux-6.6.21/tools/lib/subcmd/ |
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-6.6.21/tools/usb/usbip/src/ |
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 …]
|
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-6.6.21/scripts/kconfig/ |
D | preprocess.c | 17 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 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 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 181 static char *do_warning_if(int argc, char *argv[]) in do_warning_if() argument 202 static char *function_expand(const char *name, int argc, char *argv[]) in function_expand() argument 212 if (argc < f->min_args) in function_expand() [all …]
|
/linux-6.6.21/tools/perf/tests/ |
D | builtin-test.c | 186 static bool perf_test__matches(const char *desc, int curr, int argc, const char *argv[]) in perf_test__matches() argument 190 if (argc == 0) in perf_test__matches() 193 for (i = 0; i < argc; ++i) { in perf_test__matches() 324 static int run_shell_tests(int argc, const char *argv[], int i, int width, in run_shell_tests() argument 350 !perf_test__matches(test_suite.desc, curr, argc, argv)) in run_shell_tests() 366 static int __cmd_test(int argc, const char *argv[], struct intlist *skiplist) in __cmd_test() argument 384 if (!perf_test__matches(test_description(t, -1), curr, argc, argv)) { in __cmd_test() 392 curr, argc, argv)) in __cmd_test() 437 curr, argc, argv)) in __cmd_test() 447 return run_shell_tests(argc, argv, i, width, skiplist); in __cmd_test() [all …]
|
/linux-6.6.21/tools/tracing/rtla/src/ |
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()
|
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-6.6.21/kernel/debug/kdb/ |
D | kdb_main.c | 459 int kdb_set(int argc, const char **argv) in kdb_set() argument 467 if (argc == 3) { in kdb_set() 469 argc--; in kdb_set() 472 if (argc != 2) in kdb_set() 543 int kdbgetaddrarg(int argc, const char **argv, int *nextarg, in kdbgetaddrarg() argument 574 if (*nextarg > argc) in kdbgetaddrarg() 626 if ((*nextarg > argc) in kdbgetaddrarg() 651 if ((*nextarg > argc) in kdbgetaddrarg() 722 static int kdb_exec_defcmd(int argc, const char **argv); 751 static int kdb_defcmd(int argc, const char **argv) in kdb_defcmd() argument [all …]
|
/linux-6.6.21/samples/timers/ |
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-6.6.21/tools/verification/rv/src/ |
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-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
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 …]
|
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-6.6.21/scripts/dtc/ |
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-6.6.21/lib/ |
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 …]
|
/linux-6.6.21/tools/testing/selftests/net/mptcp/ |
D | pm_nl_ctl.c | 339 int dsf(int fd, int pm_family, int argc, char *argv[]) in dsf() argument 361 if (argc < 12) in dsf() 367 for (arg = 2; arg < argc; arg++) { in dsf() 369 if (++arg >= argc) in dsf() 374 if (++arg >= argc) in dsf() 379 if (++arg >= argc) in dsf() 384 if (++arg >= argc) in dsf() 389 if (++arg >= argc) in dsf() 451 int csf(int fd, int pm_family, int argc, char *argv[]) in csf() argument 475 if (argc < 12) in csf() [all …]
|