Searched refs:tc (Results 1 – 9 of 9) sorted by relevance
/tools/perf/util/ |
D | tsc.c | 6 u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc) in perf_time_to_tsc() argument 10 t = ns - tc->time_zero; in perf_time_to_tsc() 11 quot = t / tc->time_mult; in perf_time_to_tsc() 12 rem = t % tc->time_mult; in perf_time_to_tsc() 13 return (quot << tc->time_shift) + in perf_time_to_tsc() 14 (rem << tc->time_shift) / tc->time_mult; in perf_time_to_tsc() 17 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc) in tsc_to_perf_time() argument 21 quot = cyc >> tc->time_shift; in tsc_to_perf_time() 22 rem = cyc & ((1 << tc->time_shift) - 1); in tsc_to_perf_time() 23 return tc->time_zero + quot * tc->time_mult + in tsc_to_perf_time() [all …]
|
D | tsc.h | 8 u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc); 9 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc);
|
D | util.c | 296 struct termios tc; in set_term_quiet_input() local 299 tc = *old; in set_term_quiet_input() 300 tc.c_lflag &= ~(ICANON | ECHO); in set_term_quiet_input() 301 tc.c_cc[VMIN] = 0; in set_term_quiet_input() 302 tc.c_cc[VTIME] = 0; in set_term_quiet_input() 303 tcsetattr(0, TCSANOW, &tc); in set_term_quiet_input()
|
/tools/perf/arch/x86/util/ |
D | tsc.c | 13 struct perf_tsc_conversion *tc) in perf_read_tsc_conversion() argument 22 tc->time_mult = pc->time_mult; in perf_read_tsc_conversion() 23 tc->time_shift = pc->time_shift; in perf_read_tsc_conversion() 24 tc->time_zero = pc->time_zero; in perf_read_tsc_conversion()
|
D | tsc.h | 15 struct perf_tsc_conversion *tc);
|
/tools/perf/tests/ |
D | perf-time-to-tsc.c | 54 struct perf_tsc_conversion tc; in test__perf_time_to_tsc() local 86 ret = perf_read_tsc_conversion(pc, &tc); in test__perf_time_to_tsc() 134 test_time = tsc_to_perf_time(test_tsc, &tc); in test__perf_time_to_tsc() 135 comm1_tsc = perf_time_to_tsc(comm1_time, &tc); in test__perf_time_to_tsc() 136 comm2_tsc = perf_time_to_tsc(comm2_time, &tc); in test__perf_time_to_tsc()
|
/tools/testing/selftests/ftrace/ |
D | ftracetest | 40 echo `find $1 -name \*.tc` 60 *.tc)
|
D | README | 17 # ./ftracetest test.d/basic3.tc 26 Copy test.d/template to your testcase (whose filename must have *.tc
|
/tools/testing/ktest/ |
D | ktest.pl | 2960 my ($tc, $nc, $gc, $bc) = @_; 2962 my %tmp_config = %{$tc};
|