| /f-stack/dpdk/app/test-eventdev/ |
| H A D | evt_options.c | 22 memset(opt, 0, sizeof(*opt)); in evt_options_default() 24 opt->dev_id = 0; in evt_options_default() 26 opt->nb_flows = 1024; in evt_options_default() 28 opt->pool_sz = 16 * 1024; in evt_options_default() 29 opt->wkr_deq_dep = 16; in evt_options_default() 31 opt->nb_timers = 1E8; in evt_options_default() 32 opt->nb_timer_adptrs = 1; in evt_options_default() 77 opt->fwd_latency = 1; in evt_parse_fwd_latency() 84 opt->q_priority = 1; in evt_parse_queue_priority() 334 opt->nb_stages = i; in evt_parse_sched_type_list() [all …]
|
| H A D | test_perf_common.c | 10 RTE_SET_USED(opt); in perf_test_result() 34 struct evt_options *opt = t->opt; in perf_producer() local 84 struct evt_options *opt = t->opt; in perf_event_timer_producer() local 95 uint64_t timeout_ticks = opt->expiry_nsec / opt->timer_tick_nsec; in perf_event_timer_producer() 148 struct evt_options *opt = t->opt; in perf_event_timer_producer_burst() local 159 uint64_t timeout_ticks = opt->expiry_nsec / opt->timer_tick_nsec; in perf_event_timer_producer_burst() 374 opt->dev_id); in perf_event_rx_adapter_setup() 559 if (evt_lcores_has_overlap_multi(opt->wlcores, opt->plcores)) { in perf_opt_check() 613 if (opt->fwd_latency && !opt->q_priority) { in perf_opt_check() 618 opt->nb_pkts = INT64_MAX/evt_nr_active_lcores(opt->plcores); in perf_opt_check() [all …]
|
| H A D | test_order_common.c | 10 RTE_SET_USED(opt); in order_test_result() 21 struct evt_options *opt = t->opt; in order_producer() local 32 if (opt->verbose_level > 1) in order_producer() 128 if (opt->nb_pkts == 0) in order_opt_check() 129 opt->nb_pkts = INT64_MAX; in order_opt_check() 192 t->nb_pkts = opt->nb_pkts; in order_test_setup() 195 t->opt = opt; in order_test_setup() 209 RTE_SET_USED(opt); in order_test_destroy() 225 opt->socket_id); in order_mempool_setup() 237 RTE_SET_USED(opt); in order_mempool_destroy() [all …]
|
| H A D | evt_options.h | 125 if (!opt->nb_stages) { in evt_has_invalid_stage() 129 if (opt->nb_stages > EVT_MAX_STAGES) { in evt_has_invalid_stage() 145 opt->sched_type_list[i], i); in evt_has_invalid_sched_type() 160 if (opt->wlcores[c]) in evt_dump_worker_lcores() 173 if (opt->plcores[c]) in evt_dump_producer_lcores() 229 for (i = 0; i < opt->nb_stages; i++) in evt_dump_sched_type_list() 257 switch (opt->prod_type) { in evt_dump_producer_type() 269 if (opt->timdev_use_burst) in evt_dump_producer_type() 278 if (opt->optm_timer_tick_nsec) in evt_dump_producer_type() 280 opt->optm_timer_tick_nsec); in evt_dump_producer_type() [all …]
|
| H A D | evt_main.c | 17 struct evt_options opt; variable 37 test->ops.ethdev_destroy(test, &opt); in signal_handler() 42 test->ops.test_result(test, &opt); in signal_handler() 56 test->ops.test_destroy(test, &opt); in signal_handler() 93 evt_options_default(&opt); in main() 103 test = evt_test_get(opt.test_name); in main() 120 if (test->ops.opt_check(&opt)) { in main() 122 evt_options_dump_all(test, &opt); in main() 131 evt_options_dump_all(test, &opt); in main() 138 if (opt.verbose_level) in main() [all …]
|
| H A D | test_pipeline_common.c | 11 RTE_SET_USED(opt); in pipeline_test_result() 33 evt_dump_nb_stages(opt); in pipeline_opt_dump() 327 opt->dev_id); in pipeline_event_rx_adapter_setup() 425 RTE_SET_USED(opt); in pipeline_ethdev_destroy() 449 if (!opt->mbuf_sz) in pipeline_mempool_setup() 482 opt->mbuf_sz, in pipeline_mempool_setup() 496 RTE_SET_USED(opt); in pipeline_mempool_destroy() 509 opt->socket_id); in pipeline_test_setup() 519 t->outstand_pkts = opt->nb_pkts * evt_nr_active_lcores(opt->wlcores); in pipeline_test_setup() 523 t->opt = opt; in pipeline_test_setup() [all …]
|
| H A D | test_perf_queue.c | 15 return nb_prod * opt->nb_stages; in perf_queue_nb_event_queues() 129 struct evt_options *opt = w->t->opt; in worker_wrapper() local 157 int nb_stages = opt->nb_stages; in perf_queue_eventdev_setup() 168 evt_nr_active_lcores(opt->plcores); in perf_queue_eventdev_setup() 187 .nb_atomic_flows = opt->nb_flows, in perf_queue_eventdev_setup() 195 if (opt->q_priority) { in perf_queue_eventdev_setup() 219 .dequeue_depth = opt->wkr_deq_dep, in perf_queue_eventdev_setup() 280 evt_dump_fwd_latency(opt); in perf_queue_opt_dump() 281 perf_opt_dump(opt, perf_queue_nb_event_queues(opt)); in perf_queue_opt_dump() 287 return perf_opt_check(opt, perf_queue_nb_event_queues(opt)); in perf_queue_opt_check() [all …]
|
| H A D | test_perf_atq.c | 10 atq_nb_event_queues(struct evt_options *opt) in atq_nb_event_queues() argument 129 struct evt_options *opt = w->t->opt; in worker_wrapper() local 132 const int fwd_latency = opt->fwd_latency; in worker_wrapper() 167 evt_nr_active_lcores(opt->plcores); in perf_atq_eventdev_setup() 169 nb_queues = atq_nb_event_queues(opt); in perf_atq_eventdev_setup() 187 .nb_atomic_flows = opt->nb_flows, in perf_atq_eventdev_setup() 204 .dequeue_depth = opt->wkr_deq_dep, in perf_atq_eventdev_setup() 224 ret = rte_event_dev_start(opt->dev_id); in perf_atq_eventdev_setup() 263 perf_atq_opt_dump(struct evt_options *opt) in perf_atq_opt_dump() argument 265 perf_opt_dump(opt, atq_nb_event_queues(opt)); in perf_atq_opt_dump() [all …]
|
| H A D | test_order_queue.c | 146 .nb_atomic_flows = opt->nb_flows, in order_queue_eventdev_setup() 147 .nb_atomic_order_sequences = opt->nb_flows, in order_queue_eventdev_setup() 159 .nb_atomic_flows = opt->nb_flows, in order_queue_eventdev_setup() 160 .nb_atomic_order_sequences = opt->nb_flows, in order_queue_eventdev_setup() 173 if (!evt_has_distributed_sched(opt->dev_id)) { in order_queue_eventdev_setup() 183 ret = rte_event_dev_start(opt->dev_id); in order_queue_eventdev_setup() 193 order_queue_opt_dump(struct evt_options *opt) in order_queue_opt_dump() argument 195 order_opt_dump(opt); in order_queue_opt_dump() 200 order_queue_capability_check(struct evt_options *opt) in order_queue_capability_check() argument 204 rte_event_dev_info_get(opt->dev_id, &dev_info); in order_queue_capability_check() [all …]
|
| H A D | test_pipeline_atq.c | 13 RTE_SET_USED(opt); in pipeline_atq_nb_event_queues() 252 struct evt_options *opt = w->t->opt; in worker_wrapper() local 256 RTE_SET_USED(opt); in worker_wrapper() 325 .nb_atomic_flows = opt->nb_flows, in pipeline_atq_eventdev_setup() 356 .dequeue_depth = opt->wkr_deq_dep, in pipeline_atq_eventdev_setup() 435 ret = rte_event_dev_start(opt->dev_id); in pipeline_atq_eventdev_setup() 474 pipeline_opt_dump(opt, pipeline_atq_nb_event_queues(opt)); in pipeline_atq_opt_dump() 480 return pipeline_opt_check(opt, pipeline_atq_nb_event_queues(opt)); in pipeline_atq_opt_check() 491 evt_nr_active_lcores(opt->wlcores)) { in pipeline_atq_capability_check() 493 pipeline_atq_nb_event_queues(opt), in pipeline_atq_capability_check() [all …]
|
| H A D | test_order_atq.c | 145 .nb_atomic_flows = opt->nb_flows, in order_atq_eventdev_setup() 146 .nb_atomic_order_sequences = opt->nb_flows, in order_atq_eventdev_setup() 159 if (!evt_has_distributed_sched(opt->dev_id)) { in order_atq_eventdev_setup() 169 ret = rte_event_dev_start(opt->dev_id); in order_atq_eventdev_setup() 171 evt_err("failed to start eventdev %d", opt->dev_id); in order_atq_eventdev_setup() 179 order_atq_opt_dump(struct evt_options *opt) in order_atq_opt_dump() argument 181 order_opt_dump(opt); in order_atq_opt_dump() 186 order_atq_capability_check(struct evt_options *opt) in order_atq_capability_check() argument 190 rte_event_dev_info_get(opt->dev_id, &dev_info); in order_atq_capability_check() 192 order_nb_event_ports(opt)) { in order_atq_capability_check() [all …]
|
| H A D | test_perf_common.h | 57 struct evt_options *opt; member 78 struct evt_options *opt = t->opt;\ 82 opt->prod_type == EVT_PROD_TYPE_EVENT_TIMER_ADPTR;\ 85 const uint8_t nb_stages = t->opt->nb_stages;\ 90 if (opt->verbose_level > 1)\ 136 perf_nb_event_ports(struct evt_options *opt) in perf_nb_event_ports() argument 138 return evt_nr_active_lcores(opt->wlcores) + in perf_nb_event_ports() 139 evt_nr_active_lcores(opt->plcores); in perf_nb_event_ports() 143 int perf_opt_check(struct evt_options *opt, uint64_t nb_queues); 144 int perf_test_setup(struct evt_test *test, struct evt_options *opt); [all …]
|
| H A D | test_pipeline_queue.c | 275 struct evt_options *opt = w->t->opt; in worker_wrapper() local 279 RTE_SET_USED(opt); in worker_wrapper() 317 int nb_stages = opt->nb_stages; in pipeline_queue_eventdev_setup() 345 .nb_atomic_flows = opt->nb_flows, in pipeline_queue_eventdev_setup() 379 .dequeue_depth = opt->wkr_deq_dep, in pipeline_queue_eventdev_setup() 449 ret = rte_event_dev_start(opt->dev_id); in pipeline_queue_eventdev_setup() 489 pipeline_opt_dump(opt, pipeline_queue_nb_event_queues(opt)); in pipeline_queue_opt_dump() 495 return pipeline_opt_check(opt, pipeline_queue_nb_event_queues(opt)); in pipeline_queue_opt_check() 506 evt_nr_active_lcores(opt->wlcores)) { in pipeline_queue_capability_check() 508 pipeline_queue_nb_event_queues(opt), in pipeline_queue_capability_check() [all …]
|
| H A D | test_pipeline_common.h | 52 struct evt_options *opt; member 79 const uint8_t last_queue = t->opt->nb_stages - 1; \ 81 const uint8_t nb_stages = t->opt->nb_stages + 1; \ 91 const uint8_t last_queue = t->opt->nb_stages - 1; \ 93 const uint8_t nb_stages = t->opt->nb_stages + 1; \ 148 pipeline_nb_event_ports(struct evt_options *opt) in pipeline_nb_event_ports() argument 150 return evt_nr_active_lcores(opt->wlcores); in pipeline_nb_event_ports() 154 int pipeline_opt_check(struct evt_options *opt, uint64_t nb_queues); 155 int pipeline_test_setup(struct evt_test *test, struct evt_options *opt); 159 int pipeline_event_tx_adapter_setup(struct evt_options *opt, [all …]
|
| H A D | evt_test.h | 24 typedef int (*evt_test_options_check_t)(struct evt_options *opt); 27 (struct evt_test *test, struct evt_options *opt); 29 (struct evt_test *test, struct evt_options *opt); 31 (struct evt_test *test, struct evt_options *opt); 33 (struct evt_test *test, struct evt_options *opt); 35 (struct evt_test *test, struct evt_options *opt); 37 (struct evt_test *test, struct evt_options *opt); 39 (struct evt_test *test, struct evt_options *opt); 41 (struct evt_test *test, struct evt_options *opt); 43 (struct evt_test *test, struct evt_options *opt); [all …]
|
| H A D | test_order_common.h | 62 struct evt_options *opt; member 89 order_nb_event_ports(struct evt_options *opt) in order_nb_event_ports() argument 91 return evt_nr_active_lcores(opt->wlcores) + 1 /* producer */; in order_nb_event_ports() 132 struct evt_options *opt = t->opt;\ 138 if (opt->verbose_level > 1)\ 142 int order_test_result(struct evt_test *test, struct evt_options *opt); 143 int order_opt_check(struct evt_options *opt); 144 int order_test_setup(struct evt_test *test, struct evt_options *opt); 145 int order_mempool_setup(struct evt_test *test, struct evt_options *opt); 146 int order_launch_lcores(struct evt_test *test, struct evt_options *opt, [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_events/ |
| H A D | zpool_events_cliargs.ksh | 52 for opt in ${goodopts[@]} 55 if [[ $opt =~ 'f' ]]; then 56 log_must_follow "zpool events $opt" 65 for opt in ${goodopts[@]} 67 log_mustnot zpool events $opt "/tmp/" 68 log_mustnot zpool events $opt "$TESTPOOL/fs" 77 for opt in ${goodopts[@]} 79 log_mustnot zpool events -c $opt 83 for opt in ${badopts[@]} 85 log_mustnot zpool events $opt [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_rollback/ |
| H A D | zfs_rollback_001_pos.ksh | 66 typeset opt=$1 89 case $opt in 118 if [[ $opt == *f* ]]; then 121 opt=${opt%f} 154 typeset opt 161 "using $opt." 162 test_n_check "$opt" 3 2 165 "using $opt." 166 test_n_check "$opt" 3 1 169 "using $opt." [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_diff/ |
| H A D | zfs_diff_cliargs.ksh | 56 for opt in ${goodopts[@]} 58 log_must zfs diff $opt "$TESTSNAP1" 59 log_must zfs diff $opt "$TESTSNAP1" "$DATASET" 60 log_must zfs diff $opt "$TESTSNAP1" "$TESTSNAP2" 64 for opt in ${goodopts[@]} 66 log_mustnot zfs diff $opt 67 log_mustnot zfs diff $opt "$DATASET" 68 log_mustnot zfs diff $opt "$DATASET@noexists" 69 log_mustnot zfs diff $opt "$DATASET" "$TESTSNAP1" 74 for opt in ${badopts[@]} [all …]
|
| /f-stack/freebsd/kern/ |
| H A D | vfs_mount.c | 205 if (strcmp(opt, "ro") == 0 || strcmp(opt, "rdonly") == 0 || in vfs_isopt_ro() 215 if (strcmp(opt, "rw") == 0 || strcmp(opt, "noro") == 0) in vfs_isopt_rw() 313 opt->len = 0; in vfs_buildopts() 376 bcopy(opt->value, new->value, opt->len); in vfs_mergeopts() 1993 strncpy((char *)opt->value, errmsg, opt->len); in vfs_filteropt() 2100 ((char *)opt->value)[opt->len - 1] != '\0') { in vfs_getopts() 2142 if (opt->len == 0 || opt->value == NULL) in vfs_scanopt() 2144 if (((char *)opt->value)[opt->len - 1] != '\0') in vfs_scanopt() 2208 else if (strlcpy(opt->value, value, opt->len) >= opt->len) in vfs_setopts() 2235 bcopy(opt->value, dest, opt->len); in vfs_copyopt() [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_destroy/ |
| H A D | zfs_destroy_001_pos.ksh | 60 typeset opt=$1 71 if [[ $opt == -f ]]; then 85 case $opt in 99 if [[ $opt == *f* ]]; then 111 if [[ $opt == *f* ]]; then 122 if [[ $opt == *f* ]]; then 134 if [[ $opt == *f* ]]; then 177 if [[ $opt == *R* ]]; then 184 if [[ $opt != -f ]]; then 226 typeset opt="" [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/ |
| H A D | mmp_exported_import.ksh | 56 for opt in "" "-f"; do 58 log_must import_no_activity_check $TESTPOOL $opt 62 for opt in "" "-f"; do 67 log_must import_no_activity_check $TESTPOOL $opt 73 for opt in "" "-f"; do 75 log_must import_no_activity_check $TESTPOOL $opt 82 for opt in "" "-f"; do 84 log_must import_no_activity_check $TESTPOOL $opt 88 for opt in "" "-f"; do 93 log_must import_no_activity_check $TESTPOOL $opt [all …]
|
| /f-stack/app/redis-5.0.5/deps/lua/src/ |
| H A D | lua_struct.c | 110 switch (opt) { in optsize() 148 switch (opt) { in controloptions() 216 int opt = *fmt++; in b_pack() local 221 switch (opt) { in b_pack() 249 if (opt == 's') { in b_pack() 303 int opt = *fmt++; in b_unpack() local 310 switch (opt) { in b_unpack() 313 int issigned = islower(opt); in b_unpack() 370 int opt = *fmt++; in b_size() local 373 if (opt == 's') in b_size() [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_unmount/ |
| H A D | zfs_unmount_008_neg.ksh | 100 for opt in "" "-f"; do 101 log_mustnot eval "zfs unmount $opt $ds >/dev/null 2>&1" 115 for opt in "" "-f"; do 116 log_mustnot eval "zfs unmount $opt $mpt >/dev/null 2>&1" 122 for opt in "" "-f"; do 123 log_mustnot eval "zfs unmount $opt >/dev/null 2>&1" 124 log_mustnot eval "zfs unmount $opt $fs $fs1 >/dev/null 2>&1" 129 for opt in "" "-f"; do 130 log_mustnot eval "zfs unmount $opt $fs1 >/dev/null 2>&1" 141 for opt in "" "-f"; do [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/os/freebsd/spl/ |
| H A D | spl_vfs.c | 53 struct vfsopt *opt; in vfs_setmntopt() local 76 opt = malloc(sizeof (*opt), M_MOUNT, M_WAITOK); in vfs_setmntopt() 79 strlcpy(opt->name, name, namesize); in vfs_setmntopt() 80 opt->pos = -1; in vfs_setmntopt() 81 opt->seen = 1; in vfs_setmntopt() 83 opt->value = NULL; in vfs_setmntopt() 84 opt->len = 0; in vfs_setmntopt() 86 opt->len = strlen(arg) + 1; in vfs_setmntopt() 87 opt->value = malloc(opt->len, M_MOUNT, M_WAITOK); in vfs_setmntopt() 88 bcopy(arg, opt->value, opt->len); in vfs_setmntopt() [all …]
|