Lines Matching refs:pmu_event_ctr_map
285 value = g_hash_table_lookup(cpu->pmu_event_ctr_map, in riscv_pmu_incr_ctr()
318 if (!cpu->pmu_event_ctr_map) { in riscv_pmu_ctr_monitor_instructions()
323 ctr_idx = GPOINTER_TO_UINT(g_hash_table_lookup(cpu->pmu_event_ctr_map, in riscv_pmu_ctr_monitor_instructions()
344 if (!cpu->pmu_event_ctr_map) { in riscv_pmu_ctr_monitor_cycles()
349 ctr_idx = GPOINTER_TO_UINT(g_hash_table_lookup(cpu->pmu_event_ctr_map, in riscv_pmu_ctr_monitor_cycles()
385 if (!riscv_pmu_counter_valid(cpu, ctr_idx) || !cpu->pmu_event_ctr_map) { in riscv_pmu_update_event_map()
394 g_hash_table_foreach_remove(cpu->pmu_event_ctr_map, in riscv_pmu_update_event_map()
401 if (g_hash_table_lookup(cpu->pmu_event_ctr_map, in riscv_pmu_update_event_map()
417 g_hash_table_insert(cpu->pmu_event_ctr_map, GUINT_TO_POINTER(event_idx), in riscv_pmu_update_event_map()
475 ctr_idx = GPOINTER_TO_UINT(g_hash_table_lookup(cpu->pmu_event_ctr_map, in pmu_timer_trigger_irq()
595 cpu->pmu_event_ctr_map = g_hash_table_new(g_direct_hash, g_direct_equal); in riscv_pmu_init()
596 if (!cpu->pmu_event_ctr_map) { in riscv_pmu_init()