Lines Matching full:counts

40 		struct perf_counts_values counts = { .val = 0 };  in test_stat_cpu()  local
42 perf_evsel__read(evsel, idx, 0, &counts); in test_stat_cpu()
43 __T("failed to read value for evsel", counts.val != 0); in test_stat_cpu()
55 struct perf_counts_values counts = { .val = 0 }; in test_stat_thread() local
75 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread()
76 __T("failed to read value for evsel", counts.val != 0); in test_stat_thread()
87 struct perf_counts_values counts = { .val = 0 }; in test_stat_thread_enable() local
108 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread_enable()
109 __T("failed to read value for evsel", counts.val == 0); in test_stat_thread_enable()
114 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread_enable()
115 __T("failed to read value for evsel", counts.val != 0); in test_stat_thread_enable()
129 struct perf_counts_values counts = { .val = 0 }; in test_stat_user_read() local
165 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_user_read()
166 __T("failed to read value for evsel", counts.val != 0); in test_stat_user_read()
174 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_user_read()
175 start = counts.val; in test_stat_user_read()
179 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_user_read()
180 end = counts.val; in test_stat_user_read()
198 struct perf_counts_values counts; in test_stat_read_format_single() local
212 memset(&counts, -1, sizeof(counts)); in test_stat_read_format_single()
213 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_read_format_single()
215 __T("failed to read value", counts.val); in test_stat_read_format_single()
217 __T("failed to read TOTAL_TIME_ENABLED", counts.ena); in test_stat_read_format_single()
219 __T("failed to read TOTAL_TIME_RUNNING", counts.run); in test_stat_read_format_single()
221 __T("failed to read ID", counts.id); in test_stat_read_format_single()
223 __T("failed to read LOST", counts.lost == 0); in test_stat_read_format_single()
233 struct perf_counts_values counts; in test_stat_read_format_group() local
258 memset(&counts, -1, sizeof(counts)); in test_stat_read_format_group()
259 perf_evsel__read(leader, 0, 0, &counts); in test_stat_read_format_group()
261 __T("failed to read leader value", counts.val); in test_stat_read_format_group()
263 __T("failed to read leader TOTAL_TIME_ENABLED", counts.ena); in test_stat_read_format_group()
265 __T("failed to read leader TOTAL_TIME_RUNNING", counts.run); in test_stat_read_format_group()
267 __T("failed to read leader ID", counts.id); in test_stat_read_format_group()
269 __T("failed to read leader LOST", counts.lost == 0); in test_stat_read_format_group()
271 memset(&counts, -1, sizeof(counts)); in test_stat_read_format_group()
272 perf_evsel__read(member, 0, 0, &counts); in test_stat_read_format_group()
274 __T("failed to read member value", counts.val); in test_stat_read_format_group()
276 __T("failed to read member TOTAL_TIME_ENABLED", counts.ena); in test_stat_read_format_group()
278 __T("failed to read member TOTAL_TIME_RUNNING", counts.run); in test_stat_read_format_group()
280 __T("failed to read member ID", counts.id); in test_stat_read_format_group()
282 __T("failed to read member LOST", counts.lost == 0); in test_stat_read_format_group()