| /tools/testing/selftests/bpf/progs/ |
| A D | test_lirc_mode2_kern.c | 14 unsigned int duration = LIRC_VALUE(*sample); in bpf_decoder() local 16 if (duration & 0x10000) in bpf_decoder() 17 bpf_rc_keydown(sample, 0x40, duration & 0xffff, 0); in bpf_decoder() 18 if (duration & 0x20000) in bpf_decoder() 19 bpf_rc_pointer_rel(sample, (duration >> 8) & 0xff, in bpf_decoder() 20 duration & 0xff); in bpf_decoder()
|
| /tools/testing/selftests/net/netfilter/ |
| A D | nft_zones_many.sh | 85 local duration=$((stop-start)) 86 echo "PASS: added 1000 entries in $duration ms (now $i total, loop $j)" 90 local count duration 92 duration=$((stop-outerstart)) 95 echo "PASS: inserted $count entries from packet path in $duration ms total" 133 local duration=$((stop-start)) 134 echo "PASS: added 1000 entries in $duration ms (now $i total)" 140 local duration 142 duration=$((stop-outerstart)) 145 echo "PASS: inserted $count entries via ctnetlink in $duration ms" [all …]
|
| A D | conntrack_resize.sh | 90 local duration="$1" 92 local end=$((now + duration)) 116 local duration="$2" 118 local end=$((now + duration)) 120 do_rsleep "$duration" 124 do_rsleep "$duration" 132 local duration="$2" 161 local duration="$2" 183 local duration="$2" 216 local duration="$2" [all …]
|
| /tools/power/cpupower/utils/ |
| A D | cpufreq-info.c | 92 if (duration > 1000000) in print_duration() 95 else if (duration > 100000) in print_duration() 97 else if (duration > 1000) in print_duration() 101 printf("%lu ns", duration); in print_duration() 103 if (duration > 1000000) { in print_duration() 104 tmp = duration%10000; in print_duration() 106 duration += 10000; in print_duration() 110 tmp = duration%1000; in print_duration() 112 duration += 1000; in print_duration() 115 tmp = duration%100; in print_duration() [all …]
|
| /tools/perf/util/bpf_skel/ |
| A D | syscall_summary.bpf.c | 66 static void update_stats(int cpu_or_tid, u64 cgroup_id, int nr, s64 duration, in update_stats() argument 90 if (duration > 0) { in update_stats() 91 __sync_fetch_and_add(&stats->total_time, duration); in update_stats() 92 __sync_fetch_and_add(&stats->squared_sum, duration * duration); in update_stats() 93 if (stats->max_time < duration) in update_stats() 94 stats->max_time = duration; in update_stats() 95 if (stats->min_time > duration || stats->min_time == 0) in update_stats() 96 stats->min_time = duration; in update_stats()
|
| A D | lock_contention.bpf.c | 495 if (data->max_time < duration) in update_contention_data() 496 data->max_time = duration; in update_contention_data() 498 data->min_time = duration; in update_contention_data() 512 .total_time = duration, in update_owner_stat() 513 .max_time = duration, in update_owner_stat() 514 .min_time = duration, in update_owner_stat() 644 __u64 duration; in contention_end() local 673 if ((__s64)duration < 0) { in contention_end() 789 .total_time = duration, in contention_end() 790 .max_time = duration, in contention_end() [all …]
|
| /tools/testing/selftests/bpf/ |
| A D | test_progs.h | 229 static int duration = 0; \ 235 static int duration = 0; \ 242 static int duration = 0; \ 249 static int duration = 0; \ 260 static int duration = 0; \ 271 static int duration = 0; \ 282 static int duration = 0; \ 293 static int duration = 0; \ 304 static int duration = 0; \ 315 static int duration = 0; \ [all …]
|
| /tools/rcu/ |
| A D | rcu-updaters.sh | 14 duration=${1} 15 if test -n "${duration}" 17 exitclause='interval:s:'"${duration}"' { exit(); }'
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | global_data.c | 5 static void test_global_data_number(struct bpf_object *obj, __u32 duration) in test_global_data_number() argument 40 static void test_global_data_string(struct bpf_object *obj, __u32 duration) in test_global_data_string() argument 75 static void test_global_data_struct(struct bpf_object *obj, __u32 duration) in test_global_data_struct() argument 103 static void test_global_data_rdonly(struct bpf_object *obj, __u32 duration) in test_global_data_rdonly() argument 151 test_global_data_number(obj, topts.duration); in test_global_data() 152 test_global_data_string(obj, topts.duration); in test_global_data() 153 test_global_data_struct(obj, topts.duration); in test_global_data() 154 test_global_data_rdonly(obj, topts.duration); in test_global_data()
|
| A D | perf_branches.c | 16 int duration = 0; in check_good_sample() local 46 int duration = 0; in check_bad_sample() local 64 int err, i, duration = 0; in test_perf_branches_common() local 105 int duration = 0; in test_perf_branches_hw() local 146 int duration = 0; in test_perf_branches_no_hw() local
|
| A D | probe_read_user_str.c | 12 int err, duration = 0; in test_one_str() local 47 int err, duration = 0; in test_probe_read_user_str() local
|
| A D | cgroup_skb_sk_lookup.c | 14 __u32 duration = 0; in run_lookup_test() local 51 __u32 duration = 0; in run_cgroup_bpf_test() local
|
| A D | for_each.c | 11 static unsigned int duration; variable 56 duration = topts.duration; in test_hash_map() 126 duration = topts.duration; in test_array_map()
|
| /tools/testing/selftests/cgroup/ |
| A D | with_stress.sh | 47 duration=5 58 duration=$OPTARG 62 echo -e "\t default duration $duration seconds" 89 while [ $time -lt $duration ] ; do
|
| /tools/tracing/rtla/src/ |
| A D | timerlat_aa.c | 267 unsigned long long duration; in timerlat_aa_nmi_handler() local 281 ns_to_usf(duration)); in timerlat_aa_nmi_handler() 285 taa_data->thread_nmi_sum += duration; in timerlat_aa_nmi_handler() 288 24, spaces, ns_to_usf(duration)); in timerlat_aa_nmi_handler() 311 unsigned long long duration; in timerlat_aa_irq_handler() local 333 ns_to_usf(duration)); in timerlat_aa_irq_handler() 384 ns_to_usf(duration)); in timerlat_aa_irq_handler() 406 unsigned long long duration; in timerlat_aa_softirq_handler() local 422 ns_to_usf(duration)); in timerlat_aa_softirq_handler() 439 unsigned long long duration; in timerlat_aa_thread_handler() local [all …]
|
| A D | osnoise_hist.c | 106 duration = duration / params->output_divisor; in osnoise_hist_update_multiple() 108 bucket = duration / data->bucket_size; in osnoise_hist_update_multiple() 110 total_duration = duration * count; in osnoise_hist_update_multiple() 178 long long cpu, counter, duration; in osnoise_read_trace_hist() local 195 duration = get_llong_from_str(position); in osnoise_read_trace_hist() 196 if (duration == -1) in osnoise_read_trace_hist() 228 char duration[26]; in osnoise_hist_header() local 234 get_duration(tool->start_time, duration, sizeof(duration)); in osnoise_hist_header() 575 if (!params->duration) in osnoise_hist_parse_args() 758 if (params->duration) { in osnoise_hist_set_signals() [all …]
|
| /tools/cgroup/ |
| A D | iocost_coef_gen.py | 89 def run_fio(testfile, duration, iotype, iodepth, blocksize, jobs): argument 155 rbps = run_fio(testfile, args.duration, 'read', 158 rseqiops = round(run_fio(testfile, args.duration, 'read', 161 rrandiops = round(run_fio(testfile, args.duration, 'randread', 164 wbps = run_fio(testfile, args.duration, 'write', 167 wseqiops = round(run_fio(testfile, args.duration, 'write', 170 wrandiops = round(run_fio(testfile, args.duration, 'randwrite',
|
| /tools/testing/selftests/drivers/net/hw/ |
| A D | rss_api.py | 80 ntf = next(ethnl.poll_ntf(duration=0.2), None) 166 ntf = next(ethnl.poll_ntf(duration=0.2), None) 173 ntf = next(ethnl.poll_ntf(duration=0.2), None) 196 ntf = next(ethnl.poll_ntf(duration=0.2), None) 378 ntf = next(ethnl.poll_ntf(duration=0.2), None) 383 ksft_eq(next(ethnl.poll_ntf(duration=0.01), None), None) 386 ntf = next(ethnl.poll_ntf(duration=0.2), None) 441 ntf = next(ethnl.poll_ntf(duration=0.2), None) 447 ntf = next(ethnl.poll_ntf(duration=0.2), None) 455 ntf = next(ethnl.poll_ntf(duration=0.2), None) [all …]
|
| /tools/testing/selftests/mm/ |
| A D | transhuge-stress.c | 36 int duration = 0; in main() local 54 duration = atoi(argv[++i]); in main() 133 if (duration > 0 && b.tv_sec - start.tv_sec >= duration) { in main()
|
| /tools/testing/selftests/rcutorture/bin/ |
| A D | jitter.sh | 22 duration=$3 46 if test "$t" -gt "$duration"
|
| A D | torture.sh | 214 --duration) 215 checkarg --duration "(minutes)" $# "$2" '^[0-9][0-9]*\(m\|h\|d\|\)$' '^error' 496 …torture_set "rcutorture" tools/testing/selftests/rcutorture/bin/kvm.sh --allcpus --duration "$dura… 502 …ools/testing/selftests/rcutorture/bin/kvm.sh --torture lock --allcpus --duration "$duration_lockto… 649 …/testing/selftests/rcutorture/bin/kvm.sh --torture rcuscale --allcpus --duration 5 --kconfig "CONF… 677 …fix" tools/testing/selftests/rcutorture/bin/kvm-again.sh "`cat "$i"`" --duration 5 --bootargs "rcu… 693 …torture_set "clocksourcewd-1" tools/testing/selftests/rcutorture/bin/kvm.sh --allcpus --duration 4… 696 …torture_set "clocksourcewd-2" tools/testing/selftests/rcutorture/bin/kvm.sh --allcpus --duration 4… 702 …torture_set "clocksourcewd-3" tools/testing/selftests/rcutorture/bin/kvm.sh --allcpus --duration 4… 741 echo Started at $startdate, ended at `date`, duration `get_starttime_duration $starttime`. | tee -a… [all …]
|
| /tools/testing/selftests/mm/page_frag/ |
| A D | page_frag_test.c | 126 u64 duration; in page_frag_test_init() local 178 duration = (u64)ktime_us_delta(ktime_get(), start); in page_frag_test_init() 180 test_align ? "aligned" : "non-aligned", duration); in page_frag_test_init()
|
| /tools/gpio/ |
| A D | gpio-sloppy-logic-analyzer.sh | 18 duration= 34 -d|--duration-us <SI-n>: number of microseconds to sample. Overrides -n, no default value. 176 rep=$(getopt -a -l cpu:,duration-us:,help,instance:,list-instances,kernel-debug-dir:,num_samples:,o… 181 -d|--duration-us) parse_si $2; duration=$si_val; shift;; 233 [ -n "$duration" ] && numsamples=$((samplefreq * duration / 1000000))
|
| /tools/testing/radix-tree/ |
| A D | test.h | 36 void iteration_test(unsigned order, unsigned duration); 37 void iteration_test2(unsigned duration);
|
| /tools/testing/selftests/rcutorture/ |
| A D | Makefile | 3 ( cd ../../../..; tools/testing/selftests/rcutorture/bin/kvm.sh --duration 10 --configs TREE01 )
|