Re: [PATCH] perf/stat: Handle different PMU names with common prefix

From: Sebastien Boisvert
Date: Mon Oct 29 2018 - 08:51:04 EST




On 2018-10-29 8:18 a.m., Thomas-Mich Richter wrote:
> Yes, mistake on my side...
> but it is the same type of error , regardless if 6 or 7 characters are
> compared:
>
> strncmp("cpmu_cf", "cpum_cf_diag", 7)
>
> returns 0 when it should not. The device names of both PMUs are different.
>

OK, that works then.

You want to do a full-length comparison of PMU names, instead of comparing prefixes.

Reviewed-by: Sebastien Boisvert <sboisvert@xxxxxxxxx>