/tools/testing/selftests/bpf/progs/ |
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/bpf/prog_tests/ |
D | pkt_access.c | 9 __u32 duration, retval; in test_pkt_access() local 17 NULL, NULL, &retval, &duration); in test_pkt_access() 20 err, errno, retval, duration); in test_pkt_access() 23 NULL, NULL, &retval, &duration); in test_pkt_access() 26 err, errno, retval, duration); in test_pkt_access()
|
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 128 __u32 duration = 0, retval; in test_global_data() local 137 NULL, NULL, &retval, &duration); in test_global_data() 140 err, errno, retval, duration); in test_global_data() 142 test_global_data_number(obj, duration); in test_global_data() 143 test_global_data_string(obj, duration); in test_global_data() 144 test_global_data_struct(obj, duration); in test_global_data() [all …]
|
D | signal_pending.c | 16 __u32 duration = 0, retval; in test_signal_pending_by_type() local 36 NULL, NULL, &retval, &duration); in test_signal_pending_by_type() 37 CHECK(duration > 500000000, /* 500ms */ in test_signal_pending_by_type() 40 duration); in test_signal_pending_by_type()
|
D | pkt_md_access.c | 9 __u32 duration, retval; in test_pkt_md_access() local 17 NULL, NULL, &retval, &duration); in test_pkt_md_access() 20 err, errno, retval, duration); in test_pkt_md_access()
|
D | tailcalls.c | 15 __u32 retval, duration; in test_tailcall_1() local 58 &duration, &retval, NULL); in test_tailcall_1() 68 &duration, &retval, NULL); in test_tailcall_1() 89 &duration, &retval, NULL); in test_tailcall_1() 114 &duration, &retval, NULL); in test_tailcall_1() 124 &duration, &retval, NULL); in test_tailcall_1() 134 &duration, &retval, NULL); in test_tailcall_1() 153 __u32 retval, duration; in test_tailcall_2() local 195 &duration, &retval, NULL); in test_tailcall_2() 205 &duration, &retval, NULL); in test_tailcall_2() [all …]
|
D | fentry_test.c | 10 __u32 duration = 0, retval; in test_fentry_test() local 23 NULL, NULL, &retval, &duration); in test_fentry_test() 26 err, errno, retval, duration); in test_fentry_test()
|
D | fexit_test.c | 10 __u32 duration = 0, retval; in test_fexit_test() local 23 NULL, NULL, &retval, &duration); in test_fexit_test() 26 err, errno, retval, duration); in test_fexit_test()
|
D | flow_dissector_load_bytes.c | 8 __u32 duration = 0, retval, size; in test_flow_dissector_load_bytes() local 41 &flow_keys, &size, &retval, &duration); in test_flow_dissector_load_bytes() 45 err, errno, retval, duration, size, sizeof(flow_keys)); in test_flow_dissector_load_bytes()
|
D | spinlock.c | 7 __u32 duration, retval; in spin_lock_thread() local 11 NULL, NULL, &retval, &duration); in spin_lock_thread() 14 err, errno, retval, duration); in spin_lock_thread()
|
D | xdp_adjust_tail.c | 8 __u32 duration, retval, size, expect_sz; in test_xdp_adjust_tail_shrink() local 18 buf, &size, &retval, &duration); in test_xdp_adjust_tail_shrink() 26 buf, &size, &retval, &duration); in test_xdp_adjust_tail_shrink() 38 __u32 duration, retval, size, expect_sz; in test_xdp_adjust_tail_grow() local 46 buf, &size, &retval, &duration); in test_xdp_adjust_tail_grow() 53 buf, &size, &retval, &duration); in test_xdp_adjust_tail_grow()
|
D | fentry_fexit.c | 12 __u32 duration = 0, retval; in test_fentry_fexit() local 31 NULL, NULL, &retval, &duration); in test_fentry_fexit() 34 err, errno, retval, duration); in test_fentry_fexit()
|
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
|
D | fexit_bpf2bpf.c | 14 __u32 duration = 0; in check_data_map() local 63 __u32 duration = 0, retval; in test_fexit_bpf2bpf_common() local 109 NULL, NULL, &retval, &duration); in test_fexit_bpf2bpf_common() 112 err, errno, retval, duration); in test_fexit_bpf2bpf_common() 189 __u32 duration = 0, retval; in test_second_attach() local 208 NULL, NULL, &retval, &duration); in test_second_attach() 211 err, errno, retval, duration)) in test_second_attach() 244 __u32 duration = 0; in test_fmod_ret_freplace() local 310 __u32 duration = 0; in test_obj_load_failure_common() local
|
D | test_profiler.c | 13 __u32 duration = 0; in sanity_run() local 23 err, errno, test_attr.retval, duration)) in sanity_run() 33 __u32 duration = 0; in test_test_profiler() local
|
D | xdp.c | 16 __u32 duration, retval, size; in test_xdp() local 30 buf, &size, &retval, &duration); in test_xdp() 38 buf, &size, &retval, &duration); in test_xdp()
|
D | xdp_perf.c | 7 __u32 duration, retval, size; in test_xdp_perf() local 17 out, &size, &retval, &duration); in test_xdp_perf()
|
D | kfree_skb.c | 22 int duration = 0; in on_sample() local 72 __u32 duration = 0; in test_kfree_skb() local 124 duration = tattr.duration; in test_kfree_skb() 127 err, errno, tattr.retval, duration); in test_kfree_skb()
|
D | xdp_noinline.c | 28 __u32 duration = 0, retval, size; in test_xdp_noinline() local 44 buf, &size, &retval, &duration); in test_xdp_noinline() 52 buf, &size, &retval, &duration); in test_xdp_noinline()
|
D | map_lock.c | 7 __u32 duration, retval; in spin_lock_thread() local 11 NULL, NULL, &retval, &duration); in spin_lock_thread() 14 err, errno, retval, duration); in spin_lock_thread()
|
D | l4lb_all.c | 26 __u32 duration, retval, size; in test_l4lb() local 53 buf, &size, &retval, &duration); in test_l4lb() 60 buf, &size, &retval, &duration); in test_l4lb()
|
/tools/power/cpupower/utils/ |
D | cpufreq-info.c | 124 static void print_duration(unsigned long duration) in print_duration() argument 129 if (duration > 1000000) in print_duration() 130 printf("%u.%06u ms", ((unsigned int) duration/1000000), in print_duration() 131 ((unsigned int) duration%1000000)); in print_duration() 132 else if (duration > 100000) in print_duration() 133 printf("%u us", ((unsigned int) duration/1000)); in print_duration() 134 else if (duration > 1000) in print_duration() 135 printf("%u.%03u us", ((unsigned int) duration/1000), in print_duration() 136 ((unsigned int) duration%1000)); in print_duration() 138 printf("%lu ns", duration); in print_duration() [all …]
|
/tools/testing/selftests/bpf/ |
D | test_progs.h | 102 #define _CHECK(condition, tag, duration, format...) ({ \ argument 111 __func__, tag, duration); \ 129 _CHECK(condition, tag, duration, format) 131 _CHECK(condition, tag, tattr.duration, format) 134 static int duration = 0; \ 145 static int duration = 0; \ 156 static int duration = 0; \ 164 static int duration = 0; \ 172 static int duration = 0; \ 180 static int duration = 0; \ [all …]
|
/tools/testing/selftests/cgroup/ |
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/cgroup/ |
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',
|