Lines Matching refs:resource

116 static int get_resource_cache_level(const char *resource)  in get_resource_cache_level()  argument
119 if (!strcmp(resource, "MB")) in get_resource_cache_level()
121 return get_cache_level(resource); in get_resource_cache_level()
132 int get_domain_id(const char *resource, int cpu_no, int *domain_id) in get_domain_id() argument
138 cache_num = get_resource_cache_level(resource); in get_domain_id()
368 int resource_info_unsigned_get(const char *resource, const char *filename, in resource_info_unsigned_get() argument
374 snprintf(file_path, sizeof(file_path), "%s/%s/%s", INFO_PATH, resource, in resource_info_unsigned_get()
695 const char *resource) in write_schemata() argument
706 if (get_domain_id(resource, cpu_no, &domain_id) < 0) { in write_schemata()
719 resource, domain_id, schemata); in write_schemata()
816 bool resctrl_resource_exists(const char *resource) in resctrl_resource_exists() argument
822 if (!resource) in resctrl_resource_exists()
829 snprintf(res_path, sizeof(res_path), "%s/%s", INFO_PATH, resource); in resctrl_resource_exists()
845 bool resctrl_mon_feature_exists(const char *resource, const char *feature) in resctrl_mon_feature_exists() argument
851 if (!feature || !resource) in resctrl_mon_feature_exists()
854 snprintf(res_path, sizeof(res_path), "%s/%s/mon_features", INFO_PATH, resource); in resctrl_mon_feature_exists()
874 bool resource_info_file_exists(const char *resource, const char *file) in resource_info_file_exists() argument
879 if (!file || !resource) in resource_info_file_exists()
882 snprintf(res_path, sizeof(res_path), "%s/%s/%s", INFO_PATH, resource, in resource_info_file_exists()
893 return resctrl_resource_exists(test->resource); in test_resource_feature_check()