Home
last modified time | relevance | path

Searched refs:duration (Results 1 – 25 of 152) sorted by relevance

1234567

/tools/testing/selftests/bpf/progs/
Dtest_lirc_mode2_kern.c14 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/
Dpkt_access.c9 __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()
Dglobal_data.c5 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 …]
Dsignal_pending.c16 __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()
Dpkt_md_access.c9 __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()
Dtailcalls.c15 __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 …]
Dfentry_test.c10 __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()
Dfexit_test.c10 __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()
Dflow_dissector_load_bytes.c8 __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()
Dspinlock.c7 __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()
Dxdp_adjust_tail.c8 __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()
Dfentry_fexit.c12 __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()
Dperf_branches.c16 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
Dfexit_bpf2bpf.c14 __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
Dtest_profiler.c13 __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
Dxdp.c16 __u32 duration, retval, size; in test_xdp() local
30 buf, &size, &retval, &duration); in test_xdp()
38 buf, &size, &retval, &duration); in test_xdp()
Dxdp_perf.c7 __u32 duration, retval, size; in test_xdp_perf() local
17 out, &size, &retval, &duration); in test_xdp_perf()
Dkfree_skb.c22 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()
Dxdp_noinline.c28 __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()
Dmap_lock.c7 __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()
Dl4lb_all.c26 __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/
Dcpufreq-info.c124 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/
Dtest_progs.h102 #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/
Dwith_stress.sh47 duration=5
58 duration=$OPTARG
62 echo -e "\t default duration $duration seconds"
89 while [ $time -lt $duration ] ; do
/tools/cgroup/
Diocost_coef_gen.py89 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',

1234567