Lines Matching full:perf
31 #include "perf/intel_perf.h"
32 #include "perf/intel_perf_mdapi.h"
47 struct intel_perf_config *perf = intel_perf_new(NULL); in anv_physical_device_init_perf() local
49 intel_perf_init_metrics(perf, &device->info, fd, in anv_physical_device_init_perf()
53 if (!perf->n_queries) in anv_physical_device_init_perf()
57 * perf revision 2. in anv_physical_device_init_perf()
60 if (!intel_perf_has_hold_preemption(perf)) in anv_physical_device_init_perf()
64 device->perf = perf; in anv_physical_device_init_perf()
69 const struct intel_perf_query_field_layout *layout = &perf->query_layout; in anv_physical_device_init_perf()
95 intel_perf_free(perf); in anv_physical_device_init_perf()
109 return intel_perf_stream_open(device->physical->perf, device->fd, in anv_device_perf_open()
121 if (!device->physical->perf) in anv_InitializePerformanceApiINTEL()
135 if (!device->physical->perf) in anv_GetPerformanceParameterINTEL()
184 intel_perf_load_configuration(device->physical->perf, device->fd, in anv_AcquirePerformanceConfigurationINTEL()
192 intel_perf_store_configuration(device->physical->perf, device->fd, in anv_AcquirePerformanceConfigurationINTEL()
216 intel_perf_remove_configuration(device->physical->perf, device->fd, config->config_id); in anv_ReleasePerformanceConfigurationINTEL()
239 int ret = intel_perf_stream_set_metrics_id(device->physical->perf, in anv_QueueSetPerformanceConfigurationINTEL()
246 return vk_device_set_lost(&device->vk, "i915-perf config failed: %m"); in anv_QueueSetPerformanceConfigurationINTEL()
303 struct intel_perf_config *perf = pdevice->perf; in anv_EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR() local
320 for (int c = 0; c < (perf ? perf->n_counters : 0); c++) { in anv_EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR()
321 const struct intel_perf_query_counter *intel_counter = perf->counter_infos[c].counter; in anv_EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR()
352 struct intel_perf_config *perf = pdevice->perf; in anv_GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR() local
354 if (!perf) { in anv_GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR()
359 *pNumPasses = intel_perf_get_n_passes(perf, in anv_GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR()
370 struct intel_perf_config *perf = device->physical->perf; in anv_AcquireProfilingLockKHR() local
371 struct intel_perf_query_info *first_metric_set = &perf->queries[0]; in anv_AcquireProfilingLockKHR()
399 anv_perf_write_pass_results(struct intel_perf_config *perf, in anv_perf_write_pass_results() argument
425 counter_pass->counter->oa_counter_read_uint64(perf, in anv_perf_write_pass_results()
431 counter_pass->counter->oa_counter_read_float(perf, in anv_perf_write_pass_results()