/samples/timers/ |
D | hpet_example.c | 30 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/ |
D | test_cgrp2_sock2.c | 33 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()
|
D | xdp_fwd_user.c | 72 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()
|
D | tracex7_user.c | 9 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()
|
D | ibumad_user.c | 74 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()
|
D | test_cgrp2_attach.c | 129 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()
|
D | xdp_redirect_user.c | 98 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()
|
D | xdp_redirect_map_user.c | 97 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()
|
D | xdp_sample_pkts_user.c | 111 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()
|
D | xdp1_user.c | 80 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()
|
D | tracex3_user.c | 109 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()
|
D | tracex1_user.c | 8 int main(int ac, char **argv) in main() argument 13 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
|
D | syscall_tp_user.c | 86 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()
|
D | test_overhead_user.c | 126 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()
|
D | xdp_adjust_tail_user.c | 81 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()
|
D | tracex5_user.c | 28 int main(int ac, char **argv) in main() argument 34 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
|
D | tc_l2_redirect_user.c | 23 int main(int argc, char **argv) in main() argument 32 while ((opt = getopt(argc, argv, "F:U:i:")) != -1) { in main()
|
D | spintest_user.c | 12 int main(int ac, char **argv) in main() argument 20 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
|
D | sockex1_user.c | 11 int main(int ac, char **argv) in main() argument 19 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
|
D | sockex2_user.c | 17 int main(int ac, char **argv) in main() argument 26 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
|
D | test_current_task_under_cgroup_user.c | 15 int main(int argc, char **argv) in main() argument 21 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
|
D | tracex4_user.c | 50 int main(int ac, char **argv) in main() argument 56 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
|
/samples/seccomp/ |
D | dropper.c | 56 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/ |
D | test-statx.c | 216 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/ |
D | kdb_hello.c | 18 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()
|