lkml.org 
[lkml]   [2018]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] perf/stat: Handle different PMU names with common prefix
From
Date


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@gydle.com>

\
 
 \ /
  Last update: 2018-10-29 13:51    [W:0.038 / U:29.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site