Lines Matching refs:opt

243 			     struct sockmap_options *opt)  in msg_loop_sendpage()  argument
245 bool drop = opt->drop_expected; in msg_loop_sendpage()
282 struct sockmap_options *opt) in msg_loop() argument
288 bool data_test = opt->data_test; in msg_loop()
289 bool drop = opt->drop_expected; in msg_loop()
344 if (opt->sendpage) in msg_loop()
373 if (opt->verbose) in msg_loop()
442 static int sendmsg_test(struct sockmap_options *opt) in sendmsg_test() argument
447 int iov_count = opt->iov_count; in sendmsg_test()
448 int iov_buf = opt->iov_length; in sendmsg_test()
450 int cnt = opt->rate; in sendmsg_test()
454 if (opt->base) in sendmsg_test()
461 if (opt->drop_expected) in sendmsg_test()
464 if (opt->sendpage) in sendmsg_test()
467 cnt, &s, false, opt); in sendmsg_test()
468 if (err && opt->verbose) in sendmsg_test()
478 if (opt->verbose) in sendmsg_test()
493 if (opt->sendpage) in sendmsg_test()
494 err = msg_loop_sendpage(c1, iov_buf, cnt, &s, opt); in sendmsg_test()
497 cnt, &s, true, opt); in sendmsg_test()
508 if (opt->verbose) in sendmsg_test()
537 static int forever_ping_pong(int rate, struct sockmap_options *opt) in forever_ping_pong() argument
602 if (opt->verbose) { in forever_ping_pong()
915 static int __test_exec(int cgrp, int test, struct sockmap_options *opt) in __test_exec() argument
921 opt->sendpage = true; in __test_exec()
923 opt->sendpage = false; in __test_exec()
926 opt->drop_expected = true; in __test_exec()
928 opt->drop_expected = false; in __test_exec()
934 test_cnt, opt->rate, opt->iov_count, opt->iov_length, in __test_exec()
937 err = run_options(opt, cgrp, test); in __test_exec()
945 static int test_exec(int cgrp, struct sockmap_options *opt) in test_exec() argument
947 int err = __test_exec(cgrp, SENDMSG, opt); in test_exec()
952 err = __test_exec(cgrp, SENDPAGE, opt); in test_exec()
959 struct sockmap_options opt; in test_loop() local
963 opt.verbose = 0; in test_loop()
964 opt.base = false; in test_loop()
965 opt.sendpage = false; in test_loop()
966 opt.data_test = false; in test_loop()
967 opt.drop_expected = false; in test_loop()
968 opt.iov_count = 0; in test_loop()
969 opt.iov_length = 0; in test_loop()
970 opt.rate = 0; in test_loop()
975 opt.rate = r; in test_loop()
976 opt.iov_count = i; in test_loop()
977 opt.iov_length = l; in test_loop()
978 err = test_exec(cgrp, &opt); in test_loop()
1028 static int test_send(struct sockmap_options *opt, int cgrp) in test_send() argument
1032 opt->iov_length = 1; in test_send()
1033 opt->iov_count = 1; in test_send()
1034 opt->rate = 1; in test_send()
1035 err = test_exec(cgrp, opt); in test_send()
1039 opt->iov_length = 1; in test_send()
1040 opt->iov_count = 1024; in test_send()
1041 opt->rate = 1; in test_send()
1042 err = test_exec(cgrp, opt); in test_send()
1046 opt->iov_length = 1024; in test_send()
1047 opt->iov_count = 1; in test_send()
1048 opt->rate = 1; in test_send()
1049 err = test_exec(cgrp, opt); in test_send()
1053 opt->iov_length = 1; in test_send()
1054 opt->iov_count = 1; in test_send()
1055 opt->rate = 512; in test_send()
1056 err = test_exec(cgrp, opt); in test_send()
1060 opt->iov_length = 256; in test_send()
1061 opt->iov_count = 1024; in test_send()
1062 opt->rate = 2; in test_send()
1063 err = test_exec(cgrp, opt); in test_send()
1067 opt->rate = 100; in test_send()
1068 opt->iov_count = 1; in test_send()
1069 opt->iov_length = 5; in test_send()
1070 err = test_exec(cgrp, opt); in test_send()
1080 struct sockmap_options opt = {0}; in test_mixed() local
1091 err = test_send(&opt, cgrp); in test_mixed()
1099 err = test_send(&opt, cgrp); in test_mixed()
1107 err = test_send(&opt, cgrp); in test_mixed()
1115 err = test_send(&opt, cgrp); in test_mixed()
1123 err = test_send(&opt, cgrp); in test_mixed()
1131 err = test_send(&opt, cgrp); in test_mixed()
1139 err = test_send(&opt, cgrp); in test_mixed()
1147 err = test_send(&opt, cgrp); in test_mixed()
1155 err = test_send(&opt, cgrp); in test_mixed()
1163 err = test_send(&opt, cgrp); in test_mixed()
1171 err = test_send(&opt, cgrp); in test_mixed()
1179 err = test_send(&opt, cgrp); in test_mixed()
1187 err = test_send(&opt, cgrp); in test_mixed()
1196 struct sockmap_options opt = {0}; in test_start_end() local
1207 opt.rate = 16; in test_start_end()
1208 opt.iov_count = 1; in test_start_end()
1209 opt.iov_length = 100; in test_start_end()
1215 err = test_exec(cgrp, &opt); in test_start_end()
1224 err = test_exec(cgrp, &opt); in test_start_end()
1232 err = test_exec(cgrp, &opt); in test_start_end()
1239 err = test_exec(cgrp, &opt); in test_start_end()
1246 err = test_exec(cgrp, &opt); in test_start_end()
1253 err = test_exec(cgrp, &opt); in test_start_end()
1260 err = test_exec(cgrp, &opt); in test_start_end()
1418 int opt, longindex, err, cg_fd = 0; in main() local
1425 while ((opt = getopt_long(argc, argv, ":dhvc:r:i:l:t:", in main()
1427 switch (opt) { in main()