Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 947) sorted by relevance

12345678910>>...38

/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 …]
Dperf.c170 static int handle_options(const char ***argv, int *argc, int *envchanged) in handle_options() argument
175 const char *cmd = (*argv)[0]; in handle_options()
192 (*argv)[0] = "--help"; in handle_options()
197 (*argv)[0] = "--version"; in handle_options()
202 (*argv)[0] = "version"; in handle_options()
232 tracing_path_set((*argv)[1]); in handle_options()
235 (*argv)++; in handle_options()
242 set_buildid_dir((*argv)[1]); in handle_options()
245 (*argv)++; in handle_options()
275 if (perf_debug_option((*argv)[1])) in handle_options()
[all …]
Dbuiltin-list.c24 int cmd_list(int argc, const char **argv) in cmd_list() argument
51 argc = parse_options(argc, argv, list_options, list_usage, in cmd_list()
68 if (strcmp(argv[i], "tracepoint") == 0) in cmd_list()
70 else if (strcmp(argv[i], "hw") == 0 || in cmd_list()
71 strcmp(argv[i], "hardware") == 0) in cmd_list()
74 else if (strcmp(argv[i], "sw") == 0 || in cmd_list()
75 strcmp(argv[i], "software") == 0) { in cmd_list()
79 } else if (strcmp(argv[i], "cache") == 0 || in cmd_list()
80 strcmp(argv[i], "hwcache") == 0) in cmd_list()
82 else if (strcmp(argv[i], "pmu") == 0) in cmd_list()
[all …]
Dbuiltin-bench.c30 typedef int (*bench_fn_t)(int argc, const char **argv);
188 int argc, const char **argv) in run_bench() argument
202 argv[0] = name; in run_bench()
204 ret = fn(argc, argv); in run_bench()
214 const char *argv[2]; in run_collection() local
216 argv[1] = NULL; in run_collection()
230 argv[1] = bench->name; in run_collection()
231 run_bench(coll->name, bench->name, bench->fn, 1, argv); in run_collection()
244 int cmd_bench(int argc, const char **argv) in cmd_bench() argument
255 argc = parse_options(argc, argv, bench_options, bench_usage, in cmd_bench()
[all …]
/kernel/liteos_a/kernel/base/misc/
Dvm_shellcmd.c108 LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdDumpVm(INT32 argc, const CHAR *argv[]) in OsShellCmdDumpVm() argument
113 pid_t pid = OsPid(argv[0]); in OsShellCmdDumpVm()
114 if (strcmp(argv[0], "-a") == 0) { in OsShellCmdDumpVm()
116 } else if (strcmp(argv[0], "-k") == 0) { in OsShellCmdDumpVm()
120 } else if (strcmp(argv[0], "-h") == 0 || strcmp(argv[0], "--help") == 0) { in OsShellCmdDumpVm()
123 PRINTK("%s: invalid option: %s\n", VMM_CMD, argv[0]); in OsShellCmdDumpVm()
139 LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdV2P(INT32 argc, const CHAR *argv[]) in OsShellCmdV2P() argument
148 if (strcmp(argv[0], "-h") == 0 || strcmp(argv[0], "--help") == 0) { in OsShellCmdV2P()
152 pid_t pid = OsPid(argv[0]); in OsShellCmdV2P()
153 vaddr = strtoul((CHAR *)argv[1], &endPtr, 0); in OsShellCmdV2P()
[all …]
Dmempt_shellcmd.c95 LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdMemCheck(INT32 argc, const CHAR *argv[]) in OsShellCmdMemCheck() argument
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
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()
162 } else if ((argc == 1) && (strcmp(argv[0], "-m") == 0)) { in OsShellCmdFreeInfo()
174 LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdFree(INT32 argc, const CHAR *argv[]) in OsShellCmdFree() argument
[all …]
/kernel/linux/linux-5.10/tools/power/acpi/common/
Dgetopt.c53 int acpi_getopt_argument(int argc, char **argv) in acpi_getopt_argument() argument
59 if (argv[acpi_gbl_optind][(int)(current_char_ptr + 1)] != '\0') { in acpi_getopt_argument()
61 &argv[acpi_gbl_optind++][(int)(current_char_ptr + 1)]; in acpi_getopt_argument()
68 acpi_gbl_optarg = argv[acpi_gbl_optind++]; in acpi_getopt_argument()
88 int acpi_getopt(int argc, char **argv, char *opts) in acpi_getopt() argument
95 argv[acpi_gbl_optind][0] != '-' || in acpi_getopt()
96 argv[acpi_gbl_optind][1] == '\0') { in acpi_getopt()
98 } else if (strcmp(argv[acpi_gbl_optind], "--") == 0) { in acpi_getopt()
106 current_char = argv[acpi_gbl_optind][current_char_ptr]; in acpi_getopt()
114 if (argv[acpi_gbl_optind][++current_char_ptr] == '\0') { in acpi_getopt()
[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/lib/
Dargv_split.c35 void argv_free(char **argv) in argv_free() argument
37 argv--; in argv_free()
38 kfree(argv[0]); in argv_free()
39 kfree(argv); in argv_free()
64 char **argv, **argv_ret; in argv_split() local
72 argv = kmalloc_array(argc + 2, sizeof(*argv), gfp); in argv_split()
73 if (!argv) { in argv_split()
78 *argv = argv_str; in argv_split()
79 argv_ret = ++argv; in argv_split()
86 *argv++ = argv_str; in argv_split()
[all …]
/kernel/liteos_a/apps/trace/src/
Dtrace.c91 static void TraceWrite(int fd, int argc, char **argv) in TraceWrite() argument
95 info.eventType = strtoul(argv[2], NULL, 0); /* 2, argv number */ in TraceWrite()
96 info.identity = strtoul(argv[3], NULL, 0); /* 3, argv number */ in TraceWrite()
102 info.params[i] = strtoul(argv[4 + i], NULL, 0); in TraceWrite()
107 int main(int argc, char **argv) in main() argument
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()
124 size_t mask = strtoul(argv[2], NULL, 0); in main()
[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
56 argv++; in main()
65 if (!strcmp(argv[0], hpet_command[i].command)) { in main()
67 argv++; in main()
70 hpet_command[i].func(argc, argv); in main()
74 fprintf(stderr, "do_hpet: command %s not implemented\n", argv[0]); in main()
80 hpet_open_close(int argc, const char **argv) in hpet_open_close() argument
89 fd = open(argv[0], O_RDONLY); in hpet_open_close()
99 hpet_info(int argc, const char **argv) in hpet_info() argument
[all …]
/kernel/linux/linux-5.10/fs/nilfs2/
Dioctl.c47 struct nilfs_argv *argv, int dir, in nilfs_ioctl_wrap_copy() argument
53 void __user *base = (void __user *)(unsigned long)argv->v_base; in nilfs_ioctl_wrap_copy()
59 if (argv->v_nmembs == 0) in nilfs_ioctl_wrap_copy()
62 if (argv->v_size > PAGE_SIZE) in nilfs_ioctl_wrap_copy()
70 if (argv->v_index > ~(__u64)0 - argv->v_nmembs) in nilfs_ioctl_wrap_copy()
76 maxmembs = PAGE_SIZE / argv->v_size; in nilfs_ioctl_wrap_copy()
80 pos = argv->v_index; in nilfs_ioctl_wrap_copy()
81 for (i = 0; i < argv->v_nmembs; i += n) { in nilfs_ioctl_wrap_copy()
82 n = (argv->v_nmembs - i < maxmembs) ? in nilfs_ioctl_wrap_copy()
83 argv->v_nmembs - i : maxmembs; in nilfs_ioctl_wrap_copy()
[all …]
/kernel/liteos_a/apps/perf/src/
Dmain.c44 int main(int argc, char **argv) in main() argument
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()
59 size_t id = strtoul(argv[THREE_ARGS - 1], NULL, 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()
64 size_t size = strtoul(argv[THREE_ARGS - 1], NULL, 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()
[all …]
Doption.c37 static int ParseOption(char **argv, int *index, PerfOption *opts) in ParseOption() argument
43 if (strcmp(argv[*index], opts->name) == 0) { in ParseOption()
46 *opts->value = strtoul(argv[++(*index)], NULL, 0); in ParseOption()
49 *opts->str = argv[++(*index)]; in ParseOption()
52 str = argv[++(*index)]; in ParseOption()
71 int ParseOptions(int argc, char **argv, PerfOption *opts, SubCmd *cmd) in ParseOptions() argument
76 while ((index < argc) && (argv[index] != NULL) && (*argv[index] == '-')) { in ParseOptions()
77 if (ParseOption(argv, &index, opts) != 0) { in ParseOptions()
83 if ((index < argc) && (argv[index] != NULL)) { in ParseOptions()
84 cmd->path = argv[index]; in ParseOptions()
[all …]
/kernel/linux/common_modules/newip/examples/
Dnip_route.c73 int parse_name(char **argv, int *ifindex, char *dev) in parse_name() argument
75 int len = strlen(*argv); in parse_name()
80 memcpy(dev, *argv, len); in parse_name()
91 int parse_cmd(char **argv, int *opt) in parse_cmd() argument
93 int len = strlen(*argv); in parse_cmd()
99 memcpy(cmd, *argv, len); in parse_cmd()
114 int parse_args(char **argv, int *opt, __u8 *gateway_flag, int *ifindex, in parse_args() argument
120 argv++; in parse_args()
121 ret = parse_cmd(argv, opt); in parse_args()
126 argv++; in parse_args()
[all …]
Dnip_addr.c58 int parse_name(char **argv, int *ifindex, char *dev) in parse_name() argument
60 int len = strlen(*argv); in parse_name()
65 memcpy(dev, *argv, len); in parse_name()
76 int parse_cmd(char **argv, int *opt) in parse_cmd() argument
79 int len = strlen(*argv); in parse_cmd()
84 memcpy(cmd, *argv, len); in parse_cmd()
105 char **argv = argv_input; in main() local
115 argv++; in main()
116 ret = parse_name(argv, &ifindex, dev); in main()
121 argv++; in main()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
Dnouveau_usif.c122 usif_notify_new(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) in usif_notify_new() argument
153 ret = nvif_client_ioctl(client, argv, argc); in usif_notify_new()
167 usif_notify_del(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) in usif_notify_del() argument
183 ret = nvif_client_ioctl(client, argv, argc); in usif_notify_del()
190 usif_notify_get(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) in usif_notify_get() argument
217 ret = nvif_client_ioctl(client, argv, argc); in usif_notify_get()
227 usif_notify_put(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) in usif_notify_put() argument
243 ret = nvif_client_ioctl(client, argv, argc); in usif_notify_put()
264 usif_object_new(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) in usif_object_new() argument
283 ret = nvif_client_ioctl(client, argv, argc); in usif_object_new()
[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/linux/linux-5.10/tools/bpf/bpftool/
Dcgroup.c164 static int do_show(int argc, char **argv) in do_show() argument
179 if (is_prefix(*argv, "effective")) { in do_show()
181 p_err("duplicated argument: %s", *argv); in do_show()
188 *argv); in do_show()
318 static int do_show_tree(int argc, char **argv) in do_show_tree() argument
336 if (is_prefix(*argv, "effective")) { in do_show_tree()
338 p_err("duplicated argument: %s", *argv); in do_show_tree()
345 *argv); in do_show_tree()
380 static int do_attach(int argc, char **argv) in do_attach() argument
393 cgroup_fd = open(argv[0], O_RDONLY); in do_attach()
[all …]
Dmap.c316 static char **parse_bytes(char **argv, const char *name, unsigned char *val, in parse_bytes() argument
322 if (is_prefix(*argv, "hex")) { in parse_bytes()
324 argv++; in parse_bytes()
327 while (i < n && argv[i]) { in parse_bytes()
328 val[i] = strtoul(argv[i], &endptr, base); in parse_bytes()
330 p_err("error parsing byte: %s", argv[i]); in parse_bytes()
341 return argv + i; in parse_bytes()
358 static int parse_elem(char **argv, struct bpf_map_info *info, in parse_elem() argument
362 if (!*argv) { in parse_elem()
369 if (is_prefix(*argv, "key")) { in parse_elem()
[all …]
/kernel/liteos_a/fs/fat/os_adapt/
Dfat_shellcmd.c42 int osShellCmdFormat(int argc, char **argv) in osShellCmdFormat() argument
63 …if (strncmp(argv[3], "NULL", strlen(argv[3])) == 0 || strncmp(argv[3], "null", strlen(argv[3])) ==… in osShellCmdFormat()
66 set_label(argv[3]); in osShellCmdFormat()
70 if (format(argv[0], atoi(argv[1]), atoi(argv[2])) == 0) { in osShellCmdFormat()
71 PRINTK("format %s Success \n", argv[0]); in osShellCmdFormat()
/kernel/liteos_a/fs/vfs/vfs_cmd/
Dvfs_shellcmd.c126 int osShellCmdLs(int argc, const char **argv) in osShellCmdLs() argument
143 filename = argv[0]; in osShellCmdLs()
153 int osShellCmdCd(int argc, const char **argv) in osShellCmdCd() argument
160 (void)osShellCmdDoChdir(argv[0]); in osShellCmdCd()
221 int osShellCmdCat(int argc, const char **argv) in osShellCmdCat() argument
235 ret = vfs_normalize_path(shell_working_directory, argv[0], &fullpath); in osShellCmdCat()
299 int osShellCmdMount(int argc, const char **argv) in osShellCmdMount() argument
315 if (strncmp(argv[0], "-t", 2) == 0 || strncmp(argv[0], "-o", 2) == 0) // 2: length of "-t" in osShellCmdMount()
322 filename = argv[2]; // 2: index of file path in osShellCmdMount()
326 if (strncmp(argv[3], "nfs", 3) == 0) { // 3: index of fs type in osShellCmdMount()
[all …]
/kernel/linux/linux-5.10/tools/power/cpupower/utils/
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
106 print_man_page(argv[1]); /* exits within execlp() */ in cmd_help()
120 static void handle_options(int *argc, const char ***argv) in handle_options() argument
127 for (x = 0; x < *argc && ((*argv)[x])[0] == '-'; x++) { in handle_options()
128 const char *param = (*argv)[x]; in handle_options()
137 if (!strcmp((*argv)[x+1], "all")) in handle_options()
141 (*argv)[x+1], cpus_chosen); in handle_options()
169 *argv += new_argc; in handle_options()
172 int main(int argc, const char *argv[]) in main() argument
[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()
101 if (!strcmp(cmds[i].name, argv[0]) && cmds[i].usage) { in usbip_help()
118 static int usbip_version(int argc, char *argv[]) in usbip_version() argument
121 (void) argv; 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()
[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);

12345678910>>...38