Home
last modified time | relevance | path

Searched refs:rate (Results 1 – 25 of 46) sorted by relevance

12

/tools/testing/selftests/alsa/
Dpcm-test.conf5 rate 8000
14 rate 8000
23 rate 44100
32 rate 48000
41 rate 48000
50 rate 48000
59 rate 96000
Dtest-pcmtest-driver.c25 unsigned int rate; member
78 static size_t get_sec_buf_len(unsigned int rate, unsigned long channels, snd_pcm_format_t format) in get_sec_buf_len() argument
80 return rate * channels * snd_pcm_format_physical_width(format) / 8; in get_sec_buf_len()
99 snd_pcm_hw_params_set_rate_near(*handle, hwparams, &params->rate, 0); in setup_handle()
141 self->params.rate = 8000; in FIXTURE_SETUP()
147 self->params.sec_buf_len = get_sec_buf_len(self->params.rate, self->params.channels, in FIXTURE_SETUP()
184 params->rate * params->channels * params->time); in TEST_F()
192 write_res = snd_pcm_writei(handle, samples, params->rate * params->time); in TEST_F()
223 params->rate * params->channels * params->time); in TEST_F()
224 read_res = snd_pcm_readi(handle, samples, params->rate * params->time); in TEST_F()
[all …]
Dpcm-test.c272 long rate, channels, period_size, buffer_size; in test_pcm_time() local
313 rate = conf_get_long(pcm_cfg, "rate", NULL, 48000); in test_pcm_time()
318 samples = malloc((rate * channels * snd_pcm_format_physical_width(format)) / 8); in test_pcm_time()
321 snd_pcm_format_set_silence(format, samples, rate * channels); in test_pcm_time()
362 samples = realloc(samples, (rate * channels * in test_pcm_time()
366 snd_pcm_format_set_silence(format, samples, rate * channels); in test_pcm_time()
379 rrate = rate; in test_pcm_time()
382 snprintf(msg, sizeof(msg), "snd_pcm_hw_params_set_rate %ld: %s", rate, snd_strerror(err)); in test_pcm_time()
385 if (rrate != rate) { in test_pcm_time()
386 snprintf(msg, sizeof(msg), "rate mismatch %ld != %d", rate, rrate); in test_pcm_time()
[all …]
/tools/testing/selftests/drivers/net/mlxsw/
Ddevlink_trap_policer.sh144 devlink trap policer set $DEVLINK_DEV policer 1 rate 0 &> /dev/null
147 rate 2000000001 &> /dev/null
150 devlink trap policer set $DEVLINK_DEV policer 1 rate 1
152 devlink trap policer set $DEVLINK_DEV policer 1 rate 2000000000
205 local rate pct drop_rate
210 devlink trap policer set $DEVLINK_DEV policer $id rate 1000 burst 512
221 rate=$(trap_rate_get)
222 pct=$((100 * (rate - 1000) / 1000))
224 …check_err $? "Expected rate 1000 pps, got $rate pps, which is $pct% off. Required accuracy is +-10…
225 log_info "Expected rate 1000 pps, measured rate $rate pps"
[all …]
Dqos_lib.sh5 local rate=$1; shift
9 if ((rate > min)); then
41 local ir=$(rate $u0 $u1 $interval)
42 local er=$(rate $t0 $t1 $interval)
Dtc_sample.sh233 skip_sw action sample rate 32 group 1
264 skip_sw action sample rate $((35 * 10 ** 8)) group 1
270 skip_sw action sample rate $((35 * 10 ** 8 + 1)) \
285 skip_sw action sample rate 1024 group 1
289 skip_sw action sample rate 1024 group 1 &> /dev/null
298 skip_sw action sample rate 1024 group 1
314 skip_sw action sample rate 1024 group 1
318 skip_sw action sample rate 1024 group 2 &> /dev/null
333 skip_sw action sample rate 5 group 1
359 skip_sw action sample rate 5 group 1
[all …]
Dtc_restrictions.sh178 matchall skip_sw action sample rate 100 group 1
184 matchall skip_sw action sample rate 100 group 1
304 action sample group 1 rate 100
320 action police rate 0.5kbit burst 1m conform-exceed drop/ok
325 action police rate 2.5tbit burst 1g conform-exceed drop/ok
330 action police rate 1.5kbit burst 1m conform-exceed drop/ok
337 action police rate 1.9tbit burst 1g conform-exceed drop/ok
344 action police rate 1.5kbit burst 512b conform-exceed drop/ok
349 action police rate 1.5kbit burst 2k conform-exceed drop/ok
370 action police rate 100mbit burst 100k conform-exceed drop/ok
[all …]
Dqos_mc_aware.sh132 tc qdisc replace dev $swp3 root handle 3: tbf rate 1gbit \
272 local mc_ir=$(rate $u0 $u1 $interval)
273 local mc_er=$(rate $t0 $t1 $interval)
323 local uc_ir=$(rate $u0 $u1 $interval)
324 local uc_er=$(rate $t0 $t1 $interval)
Dtc_police_occ.sh72 action police rate 100mbit burst 100k conform-exceed drop/ok
82 action police rate 100mbit burst 100k conform-exceed drop/ok \
Dsch_ets.sh22 tc qdisc replace dev $swp2 root handle 3: tbf rate 1gbit \
Dtc_police_scale.sh47 action police rate 10mbit burst 100k \
/tools/testing/selftests/rcutorture/bin/
Dkvm-recheck-scf.sh31 rate=""
35 rate=" ($nscfss/s)"
37 echo "${configfile} ------- ${nscfs} SCF handler invocations$rate"
/tools/testing/selftests/alsa/conf.d/
DLenovo_ThinkPad_P1_Gen2.conf45 rate 48000 # can be omitted - default
53 rate 48000
61 rate 44100
/tools/testing/selftests/bpf/progs/
Dtest_spin_lock.c37 unsigned int rate; member
47 #define CREDIT_PER_NS(delta, rate) (((delta) * rate) >> 20) argument
85 q->credit += CREDIT_PER_NS(curtime - q->lasttime, q->rate); in bpf_spin_lock_test()
Dtcp_ca_write_sk_pacing.c45 unsigned long rate = in BPF_PROG() local
48 sk->sk_pacing_rate = min(rate, sk->sk_max_pacing_rate); in BPF_PROG()
Dbpf_cubic.c438 unsigned long rate; in hystart_ack_delay() local
440 rate = sk->sk_pacing_rate; in hystart_ack_delay()
441 if (!rate) in hystart_ack_delay()
444 div64_ul((__u64)GSO_MAX_SIZE * 4 * USEC_PER_SEC, rate)); in hystart_ack_delay()
/tools/testing/selftests/drivers/net/netdevsim/
Ddevlink.sh552 devlink port function rate set $handle $name $value$units
567 local rate=$3
570 rate_attr_set $handle $name $rate mbit
575 [ "$debug_value" == "$rate" ]
576 check_err $? "Unexpected $name debug value $debug_value != $rate"
580 [ "$api_value" == "$rate" ]
581 check_err $? "Unexpected $name attr value $api_value != $rate"
608 devlink port function rate add $handle
615 devlink port function rate del $handle
629 rate=10
[all …]
Ddevlink_trap.sh303 devlink trap policer set $DEVLINK_DEV policer 1 rate 2000 burst 16
312 devlink trap policer set $DEVLINK_DEV policer 1 rate 0 &> /dev/null
314 devlink trap policer set $DEVLINK_DEV policer 1 rate 9000 &> /dev/null
318 devlink trap policer set $DEVLINK_DEV policer 1 rate 65537 &> /dev/null
321 devlink trap policer set $DEVLINK_DEV policer 1 rate 3000 &> /dev/null
/tools/testing/selftests/net/forwarding/
Dsch_tbf_etsprio.sh18 rate 400Mbit burst $bs limit 1M
20 rate 800Mbit burst $bs limit 1M
44 tbf rate 400Mbit burst $bs limit 1M
Dtc_police.sh144 local nr=$(rate $t0 $t1 10)
160 action police rate 80mbit burst 16k conform-exceed drop/ok
172 action police rate 80mbit burst 16k conform-exceed drop/ok
194 local nr=$(rate $t0 $t1 10)
214 action police rate 80mbit burst 16k conform-exceed drop/ok \
253 action police rate 80mbit burst 16k conform-exceed drop/pipe \
264 local nr=$(rate $t0 $t1 10)
274 local nr=$(rate $t0 $t1 10)
Dsch_ets.sh26 rate 1Gbit burst 1Mbit latency 100ms
Dsch_tbf_root.sh16 rate 400Mbit burst $bs limit 1M
/tools/testing/selftests/bpf/
Dtest_sockmap.c144 int rate; member
746 int cnt = opt->rate; in sendmsg_test()
870 static int forever_ping_pong(int rate, struct sockmap_options *opt) in forever_ping_pong() argument
932 if (rate) in forever_ping_pong()
933 sleep(rate); in forever_ping_pong()
1262 err = forever_ping_pong(options->rate, options); in run_options()
1397 test_cnt, opt->rate, opt->iov_count, opt->iov_length, in __test_exec()
1432 opt->rate = 1; in test_send_one()
1437 opt->rate = 1; in test_send_one()
1442 opt->rate = 1; in test_send_one()
[all …]
/tools/testing/selftests/net/mptcp/
Dsimult_flows.sh247 tc -n $ns1 qdisc add dev ns1eth1 root netem rate ${rate1}mbit $delay1
248 tc -n $ns1 qdisc add dev ns1eth2 root netem rate ${rate2}mbit $delay2
249 tc -n $ns2 qdisc add dev ns2eth1 root netem rate ${rate1}mbit $delay1
250 tc -n $ns2 qdisc add dev ns2eth2 root netem rate ${rate2}mbit $delay2
/tools/perf/util/
Drecord.c145 static int get_max_rate(unsigned int *rate) in get_max_rate() argument
147 return sysctl__read_int("kernel/perf_event_max_sample_rate", (int *)rate); in get_max_rate()

12