Home
last modified time | relevance | path

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

12345678910>>...35

/kernel/linux/linux-5.10/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 …]
Dbuiltin-data.c12 typedef int (*data_cmd_fn_t)(int argc, const char **argv);
56 static int cmd_data_convert(int argc, const char **argv) in cmd_data_convert() argument
80 argc = parse_options(argc, argv, options, in cmd_data_convert()
82 if (argc) { in cmd_data_convert()
104 int cmd_data(int argc, const char **argv) in cmd_data() argument
110 if (argc < 2) in cmd_data()
113 argc = parse_options_subcommand(argc, argv, data_options, data_subcommands, data_usage, in cmd_data()
115 if (argc < 1) in cmd_data()
124 return cmd->fn(argc, argv); in cmd_data()
Dperf.c170 static int handle_options(const char ***argv, int *argc, int *envchanged) in handle_options() argument
174 while (*argc > 0) { in handle_options()
228 if (*argc < 2) { in handle_options()
236 (*argc)--; in handle_options()
238 if (*argc < 2) { in handle_options()
246 (*argc)--; in handle_options()
271 if (*argc < 2) { in handle_options()
279 (*argc)--; in handle_options()
286 (*argc)--; in handle_options()
295 static int run_builtin(struct cmd_struct *p, int argc, const char **argv) in run_builtin() argument
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/tools/bpf/bpftool/
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); \
154 int (*func)(int argc, char **argv);
157 int cmd_select(const struct cmd *cmds, int argc, char **argv,
158 int (*help)(int argc, char **argv));
166 int do_pin_any(int argc, char **argv, int (*get_fd_by_id)(int *, char ***));
170 int do_gen(int argc, char **argv);
[all …]
Dmain.c23 static int (*last_do_help)(int argc, char **argv);
51 static int do_help(int argc, char **argv) in do_help() argument
71 static int do_version(int argc, char **argv) in do_version() argument
113 int cmd_select(const struct cmd *cmds, int argc, char **argv, in cmd_select() argument
114 int (*help)(int argc, char **argv)) in cmd_select() argument
118 last_argc = argc; in cmd_select()
122 if (argc < 1 && cmds[0].func) in cmd_select()
123 return cmds[0].func(argc, argv); in cmd_select()
132 return cmds[i].func(argc - 1, argv + 1); in cmd_select()
136 help(argc - 1, argv + 1); in cmd_select()
[all …]
/kernel/liteos_m/components/shell/src/cmds/
Dmempt_shellcmd.c43 LITE_OS_SEC_TEXT_MINOR STATIC UINT32 OsShellCmdFreeInfo(INT32 argc, const CHAR *argv[]) in OsShellCmdFreeInfo() argument
49 if ((argc == 0) || in OsShellCmdFreeInfo()
50 ((argc == 1) && (strcmp(argv[0], "-k") == 0)) || in OsShellCmdFreeInfo()
51 ((argc == 1) && (strcmp(argv[0], "-m") == 0))) { in OsShellCmdFreeInfo()
55 if ((argc == 1) && (strcmp(argv[0], "-k") == 0)) { in OsShellCmdFreeInfo()
58 } else if ((argc == 1) && (strcmp(argv[0], "-m") == 0)) { in OsShellCmdFreeInfo()
61 } else if (argc == 0) { in OsShellCmdFreeInfo()
70 LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdFree(INT32 argc, const CHAR *argv[]) in OsShellCmdFree() argument
72 if (argc > 1) { in OsShellCmdFree()
76 if (OsShellCmdFreeInfo(argc, argv) != 0) { in OsShellCmdFree()
[all …]
/kernel/liteos_a/kernel/base/misc/
Dmempt_shellcmd.c95 LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdMemCheck(INT32 argc, const CHAR *argv[]) in OsShellCmdMemCheck() argument
97 if (argc > 0) { in OsShellCmdMemCheck()
113 LITE_OS_SEC_TEXT_MINOR STATIC VOID OsShellCmdSectionInfo(INT32 argc, const CHAR *argv[]) in OsShellCmdSectionInfo() argument
121 if ((argc == 1) && (strcmp(argv[0], "-k") == 0)) { in OsShellCmdSectionInfo()
124 } else if ((argc == 1) && (strcmp(argv[0], "-m") == 0)) { in OsShellCmdSectionInfo()
132 LITE_OS_SEC_TEXT_MINOR STATIC UINT32 OsShellCmdFreeInfo(INT32 argc, const CHAR *argv[]) in OsShellCmdFreeInfo() argument
153 if ((argc == 0) || in OsShellCmdFreeInfo()
154 ((argc == 1) && (strcmp(argv[0], "-k") == 0)) || in OsShellCmdFreeInfo()
155 ((argc == 1) && (strcmp(argv[0], "-m") == 0))) { in OsShellCmdFreeInfo()
159 if ((argc == 1) && (strcmp(argv[0], "-k") == 0)) { in OsShellCmdFreeInfo()
[all …]
/kernel/liteos_m/components/shell/include/
Dshcmd.h94 extern INT32 OsShellCmdDate(INT32 argc, const CHAR **argv);
95 extern INT32 OsShellCmdDumpTask(INT32 argc, const CHAR **argv);
96 extern UINT32 OsShellCmdFree(INT32 argc, const CHAR **argv);
97 extern UINT32 OsShellCmdWaterLine(INT32 argc, const CHAR **argv);
98 extern UINT32 lwip_ifconfig(INT32 argc, const CHAR **argv);
99 extern UINT32 OsShellPing(INT32 argc, const CHAR **argv);
100 extern INT32 OsShellCmdTouch(INT32 argc, const CHAR **argv);
101 extern INT32 OsShellCmdLs(INT32 argc, const CHAR **argv);
102 extern INT32 OsShellCmdPwd(INT32 argc, const CHAR **argv);
103 extern INT32 OsShellCmdCd(INT32 argc, const CHAR **argv);
[all …]
/kernel/liteos_a/apps/perf/src/
Dmain.c44 int main(int argc, char **argv) in main() argument
54 if (argc == 1) { in main()
56 } else if ((argc == TWO_ARGS) && strcmp(argv[1], "start") == 0) { in main()
58 } else if ((argc == THREE_ARGS) && strcmp(argv[1], "start") == 0) { in main()
61 } else if ((argc == TWO_ARGS) && strcmp(argv[1], "stop") == 0) { in main()
63 } else if ((argc == THREE_ARGS) && strcmp(argv[1], "read") == 0) { in main()
76 } else if ((argc == TWO_ARGS) && strcmp(argv[1], "list") == 0) { in main()
78 } else if ((argc >= THREE_ARGS) && strcmp(argv[1], "stat") == 0) { in main()
79 PerfStat(fd, argc, argv); in main()
80 } else if ((argc >= THREE_ARGS) && strcmp(argv[1], "record") == 0) { in main()
[all …]
/kernel/linux/linux-5.10/tools/lib/subcmd/
Dexec-cmd.c162 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()
198 arg = argv[argc++] = va_arg(param, char *); in execl_cmd()
[all …]
/kernel/liteos_a/net/lwip-2.1/enhancement/include/lwip/
Dapi_shell.h42 u32_t lwip_ifconfig(int argc, const char **argv);
43 u32_t lwip_arp(int argc, const char **argv);
44 u32_t osShellNetIfUp(int argc, const char **argv);
45 u32_t osShellNetIfDown(int argc, const char **argv);
46 u32_t osShellPing(int argc, const char **argv);
47 u32_t osShellTftp(int argc, const char **argv);
49 u32_t osShellNtpdate(int argc, const char **argv);
52 u32_t osShellDns(int argc, const char **argv);
54 u32_t osShellNetstat(int argc, const char **argv);
/kernel/liteos_a/apps/trace/src/
Dtrace.c91 static void TraceWrite(int fd, int argc, char **argv) in TraceWrite() argument
98 int paramNum = (argc - 4) > TRACE_USR_MAX_PARAMS ? TRACE_USR_MAX_PARAMS : (argc - 4); in TraceWrite()
107 int main(int argc, char **argv) in main() argument
115 if (argc == 1) { in main()
117 } else if (argc == 2 && strcmp(argv[1], "start") == 0) { /* 2, argv num, no special meaning */ in main()
119 } else if (argc == 2 && strcmp(argv[1], "stop") == 0) { /* 2, argv num, no special meaning */ in main()
121 } else if (argc == 2 && strcmp(argv[1], "reset") == 0) { /* 2, argv num, no special meaning */ in main()
123 } else if (argc == 3 && strcmp(argv[1], "mask") == 0) { /* 3, argv num, no special meaning */ in main()
126 } else if (argc == 3 && strcmp(argv[1], "dump") == 0) { /* 3, argv num, no special meaning */ in main()
129 } else if (argc == 3 && strcmp(argv[1], "read") == 0) { /* 3, argv num, no special meaning */ in main()
[all …]
/kernel/linux/linux-5.10/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()
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 …]
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[]);
/kernel/linux/linux-5.10/tools/power/cpupower/utils/
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_monitor(int argc, const char **argv);
Dcpupower.c25 static int cmd_help(int argc, const char **argv);
103 static int cmd_help(int argc, const char **argv) in cmd_help() argument
105 if (argc > 1) { in cmd_help()
120 static void handle_options(int *argc, const char ***argv) in handle_options() argument
124 if (*argc < 1) in handle_options()
127 for (x = 0; x < *argc && ((*argv)[x])[0] == '-'; x++) { in handle_options()
133 if (*argc < 2) { in handle_options()
168 *argc -= new_argc; in handle_options()
172 int main(int argc, const char *argv[]) in main() argument
182 argc--; in main()
[all …]
/kernel/linux/linux-5.10/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
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 …]
/kernel/linux/linux-5.10/tools/objtool/
Dobjtool.c98 static void handle_options(int *argc, const char ***argv) in handle_options() argument
100 while (*argc > 0) { in handle_options()
115 (*argc)--; in handle_options()
119 static void handle_internal_command(int argc, const char **argv) in handle_internal_command() argument
130 ret = p->fn(argc, argv); in handle_internal_command()
138 int main(int argc, const char **argv) in main() argument
147 argc--; in main()
148 handle_options(&argc, &argv); in main()
150 if (!argc || help) in main()
153 handle_internal_command(argc, argv); in main()
Dbuiltin-orc.c25 int cmd_orc(int argc, const char **argv) in cmd_orc() argument
29 argc--; argv++; in cmd_orc()
30 if (argc <= 0) in cmd_orc()
37 argc = parse_options(argc, argv, check_options, orc_usage, 0); in cmd_orc()
38 if (argc != 1) in cmd_orc()
65 if (argc != 2) in cmd_orc()
/kernel/liteos_a/fs/vfs/vfs_cmd/
Dvfs_shellcmd.c126 int osShellCmdLs(int argc, const char **argv) in osShellCmdLs() argument
136 ERROR_OUT_IF(argc > 1, PRINTK("ls or ls [DIRECTORY]\n"), return -1); in osShellCmdLs()
138 if (argc == 0) { in osShellCmdLs()
153 int osShellCmdCd(int argc, const char **argv) in osShellCmdCd() argument
155 if (argc == 0) { in osShellCmdCd()
221 int osShellCmdCat(int argc, const char **argv) in osShellCmdCat() argument
233 ERROR_OUT_IF(argc != 1, PRINTK("cat [FILE]\n"), return -1); in osShellCmdCat()
299 int osShellCmdMount(int argc, const char **argv) in osShellCmdMount() argument
313 ERROR_OUT_IF(argc < 3, print_mount_usage(), return OS_FAIL); in osShellCmdMount()
317 if (argc < 4) { // 4: required number of parameters in osShellCmdMount()
[all …]
/kernel/linux/linux-5.10/samples/timers/
Dhpet_example.c30 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 …]
/kernel/linux/linux-5.10/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
56 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_uvmm_mthd_pfnclr()
75 nvkm_uvmm_mthd_pfnmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_pfnmap() argument
86 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, true))) { in nvkm_uvmm_mthd_pfnmap()
91 if (argc != (size >> page) * sizeof(args->v0.phys[0])) in nvkm_uvmm_mthd_pfnmap()
109 nvkm_uvmm_mthd_unmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_unmap() argument
120 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_uvmm_mthd_unmap()
152 nvkm_uvmm_mthd_map(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_map() argument
164 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, true))) { in nvkm_uvmm_mthd_map()
214 ret = nvkm_memory_map(memory, offset, vmm, vma, argv, argc); in nvkm_uvmm_mthd_map()
[all …]
/kernel/linux/linux-5.10/kernel/debug/kdb/
Dkdb_main.c434 int kdb_set(int argc, const char **argv) in kdb_set() argument
446 if (argc == 3) { in kdb_set()
448 argc--; in kdb_set()
451 if (argc != 2) in kdb_set()
552 int kdbgetaddrarg(int argc, const char **argv, int *nextarg, in kdbgetaddrarg() argument
583 if (*nextarg > argc) in kdbgetaddrarg()
635 if ((*nextarg > argc) in kdbgetaddrarg()
660 if ((*nextarg > argc) in kdbgetaddrarg()
730 static int kdb_exec_defcmd(int argc, const char **argv);
765 static int kdb_defcmd(int argc, const char **argv) in kdb_defcmd() argument
[all …]
/kernel/linux/linux-5.10/lib/
Dparser.c27 int argc = 0; in match_one() local
53 if (argc >= MAX_OPT_ARGS) in match_one()
56 args[argc].from = s; in match_one()
65 args[argc].to = s + len; in match_one()
69 simple_strtol(s, &args[argc].to, 0); in match_one()
72 simple_strtoul(s, &args[argc].to, 0); in match_one()
75 simple_strtoul(s, &args[argc].to, 8); in match_one()
78 simple_strtoul(s, &args[argc].to, 16); in match_one()
80 if (args[argc].to == args[argc].from) in match_one()
86 s = args[argc].to; in match_one()
[all …]

12345678910>>...35