Home
last modified time | relevance | path

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

123

/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 …]
/samples/bpf/
Dtest_cgrp2_sock2.c33 int main(int argc, char **argv) in main() argument
38 return usage(argv[0]); in main()
40 cg_fd = open(argv[1], O_DIRECTORY | O_RDONLY); in main()
46 if (load_bpf_file(argv[2])) in main()
52 filter_id = atoi(argv[3]); in main()
Dxdp_fwd_user.c72 int main(int argc, char **argv) in main() argument
86 while ((opt = getopt(argc, argv, ":dD")) != -1) { in main()
95 usage(basename(argv[0])); in main()
101 usage(basename(argv[0])); in main()
106 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
139 idx = if_nametoindex(argv[i]); in main()
141 idx = strtoul(argv[i], NULL, 0); in main()
148 err = do_detach(idx, argv[i]); in main()
152 err = do_attach(idx, prog_fd, map_fd, argv[i]); in main()
Dtracex7_user.c9 int main(int argc, char **argv) in main() argument
16 if (!argv[1]) { in main()
21 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
28 snprintf(command, 256, "mount %s tmpmnt/", argv[1]); in main()
Dibumad_user.c74 int main(int argc, char **argv) in main() argument
84 snprintf(bpf_file, sizeof(bpf_file), "%s_kern.o", argv[0]); in main()
90 while ((opt = getopt_long(argc, argv, "hd:rSw", in main()
99 usage(argv[0]); in main()
105 usage(argv[0]); in main()
Dtest_cgrp2_attach.c129 int main(int argc, char **argv) in main() argument
135 while ((opt = getopt(argc, argv, "Dd")) != -1) { in main()
144 return usage(argv[0]); in main()
149 return usage(argv[0]); in main()
151 if (strcmp(argv[optind + 1], "ingress") == 0) in main()
153 else if (strcmp(argv[optind + 1], "egress") == 0) in main()
156 return usage(argv[0]); in main()
158 cg_fd = open(argv[optind], O_DIRECTORY | O_RDONLY); in main()
Dxdp_redirect_user.c98 int main(int argc, char **argv) in main() argument
114 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
126 usage(basename(argv[0])); in main()
132 printf("usage: %s <IFNAME|IFINDEX>_IN <IFNAME|IFINDEX>_OUT\n", argv[0]); in main()
141 ifindex_in = if_nametoindex(argv[optind]); in main()
143 ifindex_in = strtoul(argv[optind], NULL, 0); in main()
145 ifindex_out = if_nametoindex(argv[optind + 1]); in main()
147 ifindex_out = strtoul(argv[optind + 1], NULL, 0); in main()
151 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
Dxdp_redirect_map_user.c97 int main(int argc, char **argv) in main() argument
113 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
125 usage(basename(argv[0])); in main()
131 printf("usage: %s <IFNAME|IFINDEX>_IN <IFNAME|IFINDEX>_OUT\n", argv[0]); in main()
140 ifindex_in = if_nametoindex(argv[optind]); in main()
142 ifindex_in = strtoul(argv[optind], NULL, 0); in main()
144 ifindex_out = if_nametoindex(argv[optind + 1]); in main()
146 ifindex_out = strtoul(argv[optind + 1], NULL, 0); in main()
150 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
Dxdp_sample_pkts_user.c111 int main(int argc, char **argv) in main() argument
125 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
131 usage(basename(argv[0])); in main()
137 usage(basename(argv[0])); in main()
146 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
164 if_idx = if_nametoindex(argv[optind]); in main()
166 if_idx = strtoul(argv[optind], NULL, 0); in main()
172 if_name = argv[optind]; in main()
Dxdp1_user.c80 int main(int argc, char **argv) in main() argument
95 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
107 usage(basename(argv[0])); in main()
113 usage(basename(argv[0])); in main()
122 ifindex = if_nametoindex(argv[optind]); in main()
128 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
Dtracex3_user.c109 int main(int ac, char **argv) in main() argument
115 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
128 if (strcmp(argv[i], "-a") == 0) { in main()
130 } else if (strcmp(argv[i], "-t") == 0) { in main()
132 } else if (strcmp(argv[i], "-h") == 0) { in main()
Dtracex1_user.c8 int main(int ac, char **argv) in main() argument
13 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
Dsyscall_tp_user.c86 int main(int argc, char **argv) in main() argument
92 while ((opt = getopt(argc, argv, "i:h")) != -1) { in main()
99 usage(argv[0]); in main()
105 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
Dtest_overhead_user.c126 int main(int argc, char **argv) in main() argument
136 test_flags = atoi(argv[1]) ? : test_flags; in main()
138 num_cpu = atoi(argv[2]) ? : num_cpu; in main()
147 "%s_kprobe_kern.o", argv[0]); in main()
159 "%s_tp_kern.o", argv[0]); in main()
171 "%s_raw_tp_kern.o", argv[0]); in main()
Dxdp_adjust_tail_user.c81 int main(int argc, char **argv) in main() argument
102 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
123 usage(argv[0]); in main()
132 usage(argv[0]); in main()
147 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
Dtracex5_user.c28 int main(int ac, char **argv) in main() argument
34 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
Dtc_l2_redirect_user.c23 int main(int argc, char **argv) in main() argument
32 while ((opt = getopt(argc, argv, "F:U:i:")) != -1) { in main()
Dspintest_user.c12 int main(int ac, char **argv) in main() argument
20 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
Dsockex1_user.c11 int main(int ac, char **argv) in main() argument
19 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
Dsockex2_user.c17 int main(int ac, char **argv) in main() argument
26 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
Dtest_current_task_under_cgroup_user.c15 int main(int argc, char **argv) in main() argument
21 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
Dtracex4_user.c50 int main(int ac, char **argv) in main() argument
56 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
/samples/seccomp/
Ddropper.c56 int main(int argc, char **argv) in main() argument
66 if (install_filter(strtol(argv[1], NULL, 0), strtol(argv[2], NULL, 0), in main()
67 strtol(argv[3], NULL, 0))) in main()
69 execv(argv[4], &argv[4]); in main()
/samples/vfs/
Dtest-statx.c216 int main(int argc, char **argv) in main() argument
223 for (argv++; *argv; argv++) { in main()
224 if (strcmp(*argv, "-F") == 0) { in main()
229 if (strcmp(*argv, "-D") == 0) { in main()
234 if (strcmp(*argv, "-L") == 0) { in main()
238 if (strcmp(*argv, "-O") == 0) { in main()
242 if (strcmp(*argv, "-A") == 0) { in main()
246 if (strcmp(*argv, "-R") == 0) { in main()
252 ret = statx(AT_FDCWD, *argv, atflag, mask, &stx); in main()
253 printf("statx(%s) = %d\n", *argv, ret); in main()
[all …]
/samples/kdb/
Dkdb_hello.c18 static int kdb_hello_cmd(int argc, const char **argv) in kdb_hello_cmd() argument
24 kdb_printf("Hello %s.\n", argv[1]); in kdb_hello_cmd()

123