Home
last modified time | relevance | path

Searched refs:t2 (Results 1 – 25 of 31) sorted by relevance

12

/tools/testing/selftests/kvm/x86/
A Dhyperv_clock.c53 u64 tsc_freq, r1, r2, t1, t2; in check_tsc_msr_rdtsc() local
65 t2 = rdmsr(HV_X64_MSR_TIME_REF_COUNT); in check_tsc_msr_rdtsc()
68 GUEST_ASSERT(r2 > r1 && t2 > t1); in check_tsc_msr_rdtsc()
76 GUEST_ASSERT(delta_ns * 100 < (t2 - t1) * 100); in check_tsc_msr_rdtsc()
86 u64 r1, r2, t1, t2; in check_tsc_msr_tsc_page() local
96 t2 = get_tscpage_ts(tsc_page); in check_tsc_msr_tsc_page()
98 GUEST_ASSERT(r2 >= t1 && r2 - t2 < 100000); in check_tsc_msr_tsc_page()
178 u64 tsc_freq, r1, r2, t1, t2; in host_check_tsc_msr_rdtsc() local
190 t2 = vcpu_get_msr(vcpu, HV_X64_MSR_TIME_REF_COUNT); in host_check_tsc_msr_rdtsc()
193 TEST_ASSERT(t2 > t1, "Time reference MSR is not monotonic (%ld <= %ld)", t1, t2); in host_check_tsc_msr_rdtsc()
[all …]
/tools/perf/tests/
A Dthread-maps-share.c14 struct thread *t1, *t2, *t3; in test__thread_maps_share() local
36 t2 = machine__findnew_thread(machine, 0, 2); in test__thread_maps_share()
43 leader && t1 && t2 && t3 && other); in test__thread_maps_share()
50 TEST_ASSERT_VAL("maps don't match", maps__equal(maps, thread__maps(t2))); in test__thread_maps_share()
68 machine__remove_thread(machine, t2); in test__thread_maps_share()
82 thread__put(t2); in test__thread_maps_share()
/tools/testing/selftests/bpf/progs/
A Dverifier_global_ptr_args.c34 struct task_struct *t2 = bpf_task_acquire(t1); in trusted_task_arg_nullable() local
45 res += subprog_trusted_task_nullable(t2); in trusted_task_arg_nullable()
46 res += subprog_trusted_task_nullable_extra_layer(t2); in trusted_task_arg_nullable()
48 if (t2) { in trusted_task_arg_nullable()
50 res += subprog_trusted_task_nullable(t2); in trusted_task_arg_nullable()
51 res += subprog_trusted_task_nullable_extra_layer(t2); in trusted_task_arg_nullable()
53 bpf_task_release(t2); in trusted_task_arg_nullable()
A Dtest_core_reloc_type_id.c67 union a_union t2 = {}; variable
/tools/testing/selftests/syscall_user_dispatch/
A Dsud_benchmark.c69 struct timespec t1, t2; in one_sysinfo_step() local
76 clock_gettime(CLOCK_MONOTONIC, &t2); in one_sysinfo_step()
77 return (t2.tv_sec - t1.tv_sec) + 1.0e-9 * (t2.tv_nsec - t1.tv_nsec); in one_sysinfo_step()
/tools/power/cpupower/lib/
A Dcpupower.c134 static int __compare(const void *t1, const void *t2) in __compare() argument
137 struct cpuid_core_info *top2 = (struct cpuid_core_info *)t2; in __compare()
154 static int __compare_core_cpu_list(const void *t1, const void *t2) in __compare_core_cpu_list() argument
157 struct cpuid_core_info *top2 = (struct cpuid_core_info *)t2; in __compare_core_cpu_list()
/tools/testing/selftests/net/
A Dsrv6_end_dt4_l3vpn_test.sh445 local t2=200
452 check_and_log_hs_isolation ${i} ${t1} ${j} ${t2}
458 tmp=${t1}; t1=${t2}; t2=${tmp}
A Dsrv6_end_dt6_l3vpn_test.sh455 local t2=200
462 check_and_log_hs_isolation ${i} ${t1} ${j} ${t2}
468 tmp=${t1}; t1=${t2}; t2=${tmp}
A Dsrv6_end_dt46_l3vpn_test.sh522 local t2=200
529 check_and_log_hs_isolation ${i} ${t1} ${j} ${t2}
535 tmp=${t1}; t1=${t2}; t2=${tmp}
/tools/perf/util/
A Dbpf_off_cpu.c116 const struct btf_type *t1, *t2, *t3; in check_sched_switch_args() local
133 t2 = btf__type_by_id(btf, t1->type); in check_sched_switch_args()
134 if (t2 == NULL || !btf_is_ptr(t2)) in check_sched_switch_args()
137 t3 = btf__type_by_id(btf, t2->type); in check_sched_switch_args()
/tools/lib/bpf/
A Dbtf.c3963 m2 = btf_enum(t2); in btf_equal_enum_members()
3981 m2 = btf_enum64(t2); in btf_equal_enum64_members()
4061 m2 = btf_members(t2); in btf_shallow_equal_struct()
4102 info2 = btf_array(t2); in btf_equal_array()
4159 m2 = btf_params(t2); in btf_equal_fnproto()
4181 if (t1->name_off != t2->name_off || t1->info != t2->info) in btf_compat_fnproto()
4186 m2 = btf_params(t2); in btf_compat_fnproto()
4421 k2 = btf_kind(t2); in btf_dedup_identical_types()
4443 if (t1->info != t2->info || t1->name_off != t2->name_off) in btf_dedup_identical_types()
4446 id2 = t2->type; in btf_dedup_identical_types()
[all …]
A Dlinker.c1487 const struct btf_type *t1, *t2; in glob_sym_btf_matches() local
1525 if (btf_kind(t1) != btf_kind(t2)) { in glob_sym_btf_matches()
1560 if (t1->size != t2->size) { in glob_sym_btf_matches()
1573 id2 = t2->type; in glob_sym_btf_matches()
1578 id2 = btf_array(t2)->type; in glob_sym_btf_matches()
1590 id2 = t2->type; in glob_sym_btf_matches()
1602 id2 = t2->type; in glob_sym_btf_matches()
1611 if (btf_vlen(t1) != btf_vlen(t2)) { in glob_sym_btf_matches()
1619 m2 = btf_members(t2); in glob_sym_btf_matches()
1650 m2 = btf_params(t2); in glob_sym_btf_matches()
[all …]
A Dbtf.h501 const struct btf_type *t2) in btf_kind_core_compat() argument
503 return btf_kind(t1) == btf_kind(t2) || in btf_kind_core_compat()
504 (btf_is_any_enum(t1) && btf_is_any_enum(t2)); in btf_kind_core_compat()
/tools/testing/scatterlist/linux/
A Dmm.h56 #define __min(t1, t2, min1, min2, x, y) ({ \ argument
58 t2 min2 = (y); \
/tools/testing/selftests/net/forwarding/
A Dsch_tbf_core.sh182 local t2=$(busywait_for_counter 1000 +1 tbf_get_counter $vlan)
190 local nr=$(rate $t2 $t3 10)
/tools/testing/selftests/ptp/
A Dtestptp.c199 int64_t t1, t2, tp; in main() local
576 t2 = pctns(pct+2*i+2); in main()
577 interval = t2 - t1; in main()
578 offset = (t2 + t1) / 2 - tp; in main()
/tools/testing/selftests/kvm/include/loongarch/
A Dprocessor.h25 #define t2 $r14 macro
/tools/accounting/
A Ddelaytop.c589 const struct task_info *t2 = (const struct task_info *)b; in compare_tasks() local
595 avg2 = average_ms(t2->cpu_delay_total, t2->cpu_count); in compare_tasks()
598 return t2->cpu_delay_total > t1->cpu_delay_total ? 1 : -1; in compare_tasks()
601 return t2->cpu_delay_total > t1->cpu_delay_total ? 1 : -1; in compare_tasks()
/tools/testing/selftests/bpf/map_tests/
A Dlpm_trie_map_basic_ops.c157 struct tlpm_node *list = NULL, *t1, *t2; in test_lpm_basic() local
171 t2 = list = tlpm_add(list, (uint8_t[]){ 0xff, 0xff }, 16); in test_lpm_basic()
173 assert(t2 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 16)); in test_lpm_basic()
189 struct tlpm_node *t1, *t2, *l1 = NULL, *l2 = NULL; in test_lpm_order() local
211 t2 = tlpm_match(l2, key, 16); in test_lpm_order()
213 assert(!t1 == !t2); in test_lpm_order()
215 assert(t1->n_bits == t2->n_bits); in test_lpm_order()
218 (t2->key[j / 8] & (1 << (7 - j % 8)))); in test_lpm_order()
/tools/testing/selftests/net/netfilter/
A Dnft_audit.sh86 for table in t1 t2; do
/tools/testing/selftests/kvm/include/riscv/
A Dprocessor.h84 unsigned long t2; member
/tools/testing/selftests/timers/
A Dposix_timers.c447 static inline int64_t calcdiff_ns(struct timespec t1, struct timespec t2) in calcdiff_ns() argument
451 diff = NSEC_PER_SEC * (int64_t)((int) t1.tv_sec - (int) t2.tv_sec); in calcdiff_ns()
452 diff += ((int) t1.tv_nsec - (int) t2.tv_nsec); in calcdiff_ns()
/tools/testing/selftests/kvm/lib/riscv/
A Dprocessor.c232 core.regs.t2 = vcpu_get_reg(vcpu, RISCV_CORE_REG(regs.t2)); in vcpu_arch_dump()
265 core.regs.tp, core.regs.t0, core.regs.t1, core.regs.t2); in vcpu_arch_dump()
/tools/testing/selftests/pidfd/
A Dpidfd_test.c545 pthread_t t1, t2; in child_poll_leader_exit_test() local
549 pthread_create(&t2, NULL, test_pidfd_poll_leader_exit_thread, NULL); in child_poll_leader_exit_test()
/tools/testing/selftests/hid/tests/
A Dtest_multitouch.py700 t2 = Touch(3, 250, 300)
701 r = uhdev.event([t0, t1, t2])
707 slot2 = self.get_slot(uhdev, t2, 2)
721 t2.tipswitch = False
725 t2.inrange = False
726 r = uhdev.event([t0, t1, t2])
914 t2 = Touch(2, 50, 100)
916 r = uhdev.event([t0, t1, t2], contact_count=2)

Completed in 58 milliseconds

12