Lines Matching refs:newalias
263 struct perf_pmu_alias *newalias) in perf_pmu_update_alias() argument
265 perf_pmu_assign_str(old->name, "desc", &old->desc, &newalias->desc); in perf_pmu_update_alias()
267 &newalias->long_desc); in perf_pmu_update_alias()
268 perf_pmu_assign_str(old->name, "topic", &old->topic, &newalias->topic); in perf_pmu_update_alias()
270 &newalias->metric_expr); in perf_pmu_update_alias()
272 &newalias->metric_name); in perf_pmu_update_alias()
273 perf_pmu_assign_str(old->name, "value", &old->str, &newalias->str); in perf_pmu_update_alias()
274 old->scale = newalias->scale; in perf_pmu_update_alias()
275 old->per_pkg = newalias->per_pkg; in perf_pmu_update_alias()
276 old->snapshot = newalias->snapshot; in perf_pmu_update_alias()
277 memcpy(old->unit, newalias->unit, sizeof(old->unit)); in perf_pmu_update_alias()
281 void perf_pmu_free_alias(struct perf_pmu_alias *newalias) in perf_pmu_free_alias() argument
283 zfree(&newalias->name); in perf_pmu_free_alias()
284 zfree(&newalias->desc); in perf_pmu_free_alias()
285 zfree(&newalias->long_desc); in perf_pmu_free_alias()
286 zfree(&newalias->topic); in perf_pmu_free_alias()
287 zfree(&newalias->str); in perf_pmu_free_alias()
288 zfree(&newalias->metric_expr); in perf_pmu_free_alias()
289 zfree(&newalias->metric_name); in perf_pmu_free_alias()
290 zfree(&newalias->pmu_name); in perf_pmu_free_alias()
291 parse_events_terms__purge(&newalias->terms); in perf_pmu_free_alias()
292 free(newalias); in perf_pmu_free_alias()
298 static bool perf_pmu_merge_alias(struct perf_pmu_alias *newalias, in perf_pmu_merge_alias() argument
304 if (!strcasecmp(newalias->name, a->name)) { in perf_pmu_merge_alias()
305 if (newalias->pmu_name && a->pmu_name && in perf_pmu_merge_alias()
306 !strcasecmp(newalias->pmu_name, a->pmu_name)) { in perf_pmu_merge_alias()
309 perf_pmu_update_alias(a, newalias); in perf_pmu_merge_alias()
310 perf_pmu_free_alias(newalias); in perf_pmu_merge_alias()