Lines Matching refs:perf_cfg
288 intel_perf_load_metric_id(struct intel_perf_config *perf_cfg, in intel_perf_load_metric_id() argument
295 perf_cfg->sysfs_dev_dir, guid); in intel_perf_load_metric_id()
487 load_pipeline_statistic_metrics(struct intel_perf_config *perf_cfg, in load_pipeline_statistic_metrics() argument
491 intel_perf_append_query_info(perf_cfg, MAX_STAT_COUNTERS); in load_pipeline_statistic_metrics()
781 intel_perf_load_configuration(struct intel_perf_config *perf_cfg, int fd, const char *guid) in intel_perf_load_configuration() argument
783 if (!perf_cfg->i915_query_supported) in intel_perf_load_configuration()
787 if (!i915_query_perf_config_data(perf_cfg, fd, guid, &i915_config)) in intel_perf_load_configuration()
805 if (!i915_query_perf_config_data(perf_cfg, fd, guid, &i915_config)) { in intel_perf_load_configuration()
814 intel_perf_store_configuration(struct intel_perf_config *perf_cfg, int fd, in intel_perf_store_configuration() argument
819 return i915_add_config(perf_cfg, fd, config, guid); in intel_perf_store_configuration()
855 if (intel_perf_load_metric_id(perf_cfg, generated_guid, &id)) in intel_perf_store_configuration()
858 return i915_add_config(perf_cfg, fd, config, generated_guid); in intel_perf_store_configuration()
1284 intel_perf_init_query_fields(struct intel_perf_config *perf_cfg, in intel_perf_init_query_fields() argument
1288 struct intel_perf_query_field_layout *layout = &perf_cfg->query_layout; in intel_perf_init_query_fields()
1295 layout->fields = rzalloc_array(perf_cfg, struct intel_perf_query_field, 5 + 16); in intel_perf_init_query_fields()
1356 intel_perf_init_metrics(struct intel_perf_config *perf_cfg, in intel_perf_init_metrics() argument
1362 intel_perf_init_query_fields(perf_cfg, devinfo, use_register_snapshots); in intel_perf_init_metrics()
1365 load_pipeline_statistic_metrics(perf_cfg, devinfo); in intel_perf_init_metrics()
1366 intel_perf_register_mdapi_statistic_query(perf_cfg, devinfo); in intel_perf_init_metrics()
1369 bool oa_metrics = oa_metrics_available(perf_cfg, drm_fd, devinfo, in intel_perf_init_metrics()
1372 load_oa_metrics(perf_cfg, drm_fd, devinfo); in intel_perf_init_metrics()
1375 qsort(perf_cfg->queries, perf_cfg->n_queries, in intel_perf_init_metrics()
1376 sizeof(perf_cfg->queries[0]), intel_perf_compare_query_names); in intel_perf_init_metrics()
1378 build_unique_counter_list(perf_cfg); in intel_perf_init_metrics()
1381 intel_perf_register_mdapi_oa_query(perf_cfg, devinfo); in intel_perf_init_metrics()