Lines Matching refs:ctx
36 int ctx = 0; in evsel_context() local
39 ctx |= CTX_BIT_KERNEL; in evsel_context()
41 ctx |= CTX_BIT_USER; in evsel_context()
43 ctx |= CTX_BIT_HV; in evsel_context()
45 ctx |= CTX_BIT_HOST; in evsel_context()
47 ctx |= CTX_BIT_IDLE; in evsel_context()
49 return ctx; in evsel_context()
81 int ctx = evsel_context(counter); in perf_stat__update_shadow_stats() local
86 update_stats(&runtime_cycles_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats()
88 update_stats(&runtime_cycles_in_tx_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats()
90 update_stats(&runtime_transaction_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats()
92 update_stats(&runtime_elision_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats()
94 update_stats(&runtime_stalled_cycles_front_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats()
96 update_stats(&runtime_stalled_cycles_back_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats()
98 update_stats(&runtime_branches_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats()
100 update_stats(&runtime_cacherefs_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats()
102 update_stats(&runtime_l1_dcache_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats()
104 update_stats(&runtime_ll_cache_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats()
106 update_stats(&runtime_ll_cache_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats()
108 update_stats(&runtime_dtlb_cache_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats()
110 update_stats(&runtime_itlb_cache_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats()
146 int ctx = evsel_context(evsel); in print_stalled_cycles_frontend() local
148 total = avg_stats(&runtime_cycles_stats[ctx][cpu]); in print_stalled_cycles_frontend()
166 int ctx = evsel_context(evsel); in print_stalled_cycles_backend() local
168 total = avg_stats(&runtime_cycles_stats[ctx][cpu]); in print_stalled_cycles_backend()
186 int ctx = evsel_context(evsel); in print_branch_misses() local
188 total = avg_stats(&runtime_branches_stats[ctx][cpu]); in print_branch_misses()
206 int ctx = evsel_context(evsel); in print_l1_dcache_misses() local
208 total = avg_stats(&runtime_l1_dcache_stats[ctx][cpu]); in print_l1_dcache_misses()
226 int ctx = evsel_context(evsel); in print_l1_icache_misses() local
228 total = avg_stats(&runtime_l1_icache_stats[ctx][cpu]); in print_l1_icache_misses()
246 int ctx = evsel_context(evsel); in print_dtlb_cache_misses() local
248 total = avg_stats(&runtime_dtlb_cache_stats[ctx][cpu]); in print_dtlb_cache_misses()
266 int ctx = evsel_context(evsel); in print_itlb_cache_misses() local
268 total = avg_stats(&runtime_itlb_cache_stats[ctx][cpu]); in print_itlb_cache_misses()
286 int ctx = evsel_context(evsel); in print_ll_cache_misses() local
288 total = avg_stats(&runtime_ll_cache_stats[ctx][cpu]); in print_ll_cache_misses()
304 int ctx = evsel_context(evsel); in perf_stat__print_shadow_stats() local
307 total = avg_stats(&runtime_cycles_stats[ctx][cpu]); in perf_stat__print_shadow_stats()
314 total = avg_stats(&runtime_stalled_cycles_front_stats[ctx][cpu]); in perf_stat__print_shadow_stats()
315 total = max(total, avg_stats(&runtime_stalled_cycles_back_stats[ctx][cpu])); in perf_stat__print_shadow_stats()
326 runtime_branches_stats[ctx][cpu].n != 0) { in perf_stat__print_shadow_stats()
333 runtime_l1_dcache_stats[ctx][cpu].n != 0) { in perf_stat__print_shadow_stats()
340 runtime_l1_icache_stats[ctx][cpu].n != 0) { in perf_stat__print_shadow_stats()
347 runtime_dtlb_cache_stats[ctx][cpu].n != 0) { in perf_stat__print_shadow_stats()
354 runtime_itlb_cache_stats[ctx][cpu].n != 0) { in perf_stat__print_shadow_stats()
361 runtime_ll_cache_stats[ctx][cpu].n != 0) { in perf_stat__print_shadow_stats()
364 runtime_cacherefs_stats[ctx][cpu].n != 0) { in perf_stat__print_shadow_stats()
365 total = avg_stats(&runtime_cacherefs_stats[ctx][cpu]); in perf_stat__print_shadow_stats()
386 total = avg_stats(&runtime_cycles_stats[ctx][cpu]); in perf_stat__print_shadow_stats()
392 total = avg_stats(&runtime_cycles_stats[ctx][cpu]); in perf_stat__print_shadow_stats()
393 total2 = avg_stats(&runtime_cycles_in_tx_stats[ctx][cpu]); in perf_stat__print_shadow_stats()
401 runtime_cycles_in_tx_stats[ctx][cpu].n != 0) { in perf_stat__print_shadow_stats()
402 total = avg_stats(&runtime_cycles_in_tx_stats[ctx][cpu]); in perf_stat__print_shadow_stats()
409 runtime_cycles_in_tx_stats[ctx][cpu].n != 0) { in perf_stat__print_shadow_stats()
410 total = avg_stats(&runtime_cycles_in_tx_stats[ctx][cpu]); in perf_stat__print_shadow_stats()