Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3346075imd; Mon, 29 Oct 2018 05:51:40 -0700 (PDT) X-Google-Smtp-Source: AJdET5cMP/zoTzDANH2pZwT3fCBPyWDAaDP4TXMEzl1XaA7zpQ8yDj/GVzZ+uivrcIDqsTppqeKO X-Received: by 2002:a63:4107:: with SMTP id o7-v6mr13943718pga.256.1540817500796; Mon, 29 Oct 2018 05:51:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540817500; cv=none; d=google.com; s=arc-20160816; b=IRSG1ulATMLklQR4p2BZD3j6d0XP2DE0X+RWSOYFznTR2/y2f0JLvRV7HVtq33AmFj VXQQWSm7ausR8O0pADPwjY42VLjarwqKQ9TA0wDVgopWxNMfeumfgp0V1pP35qJDFkxS lKRaUoS7Ccw2k7N79CRxjYd57z9mUMgyq644xMJzvwglyYFRalAAHCkSjs9gAaC0gctI 3l+mIXZZywlwRXv/Oa4FUhW+mkxs5cECN3ytjsVQzMfK7rQj3DR9MJQjm9uUkIq4yMuS q/Fd5WJjH9eY2VneyCBafGTz3zWAHUHbQPbO2oKt0bYkUb9l1Iw7g4lHCJZx/vB60Fly ZIgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=uX39/23rqGcYWItAYq+C+mfXmpcABFZeTspx8XvuNck=; b=MCeMg1lYV0Su5QCvb4V8uavkUJYFztMKLD2JmHDHWq79UESt4TJTCE4VA+b9YfXhc6 duRI6Aib3brZIzIW9uYvLgj/j+2bcOvWJiiXyta6ap3jT9nJIA+7nmep0UOGXfUcXZn7 467WW3cUmDsdSFoSk/P+DQW71iRiAPVsa9f9APKRwX8XsahyEd+UWr3MWDbmxFcSTd79 cJKKc3A6MUBqmqb9po7po8h7NQJo9SofoNjCfD1saggwsPMX3PVuD1AM0asYck3ED1SJ zHZXj3AzpxuwefNwxOPZ/gffrzHI6iq6zLHbEyXZyxf3ARQiPmCKCSpXlOK3Mze033CJ XoIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i62-v6si14084887pfe.224.2018.10.29.05.51.24; Mon, 29 Oct 2018 05:51:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729297AbeJ2Vjf (ORCPT + 99 others); Mon, 29 Oct 2018 17:39:35 -0400 Received: from mail.gydle.com ([64.18.173.180]:36775 "EHLO mail.gydle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729240AbeJ2Vjf (ORCPT ); Mon, 29 Oct 2018 17:39:35 -0400 X-Received: from [192.168.1.136] (unknown [69.70.179.254]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: sboisvert@gydle.com) by mail.gydle.com (Postfix) with ESMTPSA id C23E243FF0; Mon, 29 Oct 2018 08:50:59 -0400 (EDT) Subject: Re: [PATCH] perf/stat: Handle different PMU names with common prefix To: Thomas-Mich Richter , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org Cc: brueckner@linux.vnet.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, kan.liang@linux.intel.com, stable@vger.kernel.org References: <20181023151616.78193-1-tmricht@linux.ibm.com> <7b3b23b7-1c73-66bf-611b-8dd9fb274694@gydle.com> <80512536-d668-489d-5f73-d7e4a4d54e2d@linux.ibm.com> From: Sebastien Boisvert Openpgp: preference=signencrypt Autocrypt: addr=sboisvert@gydle.com; keydata= xsFNBFi0QgMBEADLVQ63iQaeZj99I4+5AZe9ilJQ/fE7J49iS+NV3ChKgTfxMlxhagmq4a8E czme5AGkYeb9JAufWzcaGe4DGHJ0l26QdU/YQcpxGVGTobql+LUQ4VgEe9MxB6sMuO7QV5fZ aO27nCqk488ZS7e5g7Y10lMrY+4ZqzjOBIWVOXPpsDrqFY4zKuryLMtRDdINDCl+uahpIi4F P/c00/uGR04s+UmdZRgB1RroyZJjeSHgyR90THl8sDssR8zddaDEae2aO1/1dMI9KGamStYe 5wo9zS4ewPAgfNxRdhsdBvCNIrU2qnKFIE9Juc59NjGPmeRUjB/iHHS6zY4BSNruWrUG5KHs ykHpZhP/Gg5y2RL3Pmu9vIBo5C8sUb2/sRNeWXSD7Rh/0zHtYu5T3cx3/gz71WNRhiOncZuY pgZltzFRxCYc9kDuthITXbI8GoR3XGq8uo2hTDBW8b+VYqLZ7n4fggkvo8f1bgt0ACVKR0nq JViiVO9mYDr7UUWUfS8CABAJCjsbqjxRHMEDw+UNbCS54KJ5vxxkt4LNd0nkwaVwMfrOF3mA foEjSmeM2NLx5SOJuMPOSRyOKjfsOgYEbFsA9hZJ34r/zAPEIdwHf57dY+nSiV/avcE6WN5P ks0CfGMOTBNsxyqYXPov7kkwvCb09KYU9/J6F1nM9Wm83knzewARAQABzShTZWJhc3RpZW4g Qm9pc3ZlcnQgPHNib2lzdmVydEBneWRsZS5jb20+wsF9BBMBCAAnBQJYtEIDAhsjBQkJZgGA BQsJCAcCBhUICQoLAgQWAgMBAh4BAheAAAoJEGsrrSebZ4/xsY4QAJHIgXH9+KBNt0rgccCt DN4ueDoRIEmYS7NK/gUKQ8yHUreRHNpJqRSxNKzUPmvVAnnLdaopf/abhS+Ado5QGAZhiNzp +szWcwT4Za8P1mat+/HJznz06T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v5clzQGhQ9MpQX7Ch2QL+3QQVx91GPhv/Q4oAafQaX7oN1XgTPNWgbcdU+OYVjHqVWvI ae7HXSITVgByZAK6Di7/byqqjl1hwkiZeIcajZqK8hws6h6bLLZBn7EcZAEj8VLSdfUjJqCt VOZyQGdo8sNYjJPeV69vNbBUbX7BcxhxRZEYXw1rCz/xaCbNyRqRsxT03haPLg+WVQARAQAB wsFlBBgBCAAPBQJYtEIDAhsMBQkJZgGAAAoJEGsrrSebZ4/x13oP/2gWO3D6zo2Ok13khz4u +blJz8rzV1PQ5TVJmrsU05pVDlKgoZdtfEUtHlfAkzvNUpoKhNRWVN5/3QLwF4z0jfXyFYuS 8CVMRA75h59jSABdCWvZrQLHKJV03t++IFBi3y2DUilHXrCHUxg0iJeUhbMorgxc43d6DJw2 o53r+hBTfexVvcCodOREHR253eaw55lnL1J4sn0KVfprd0tLUTtR6QtF6oMXTcRedrE5bbQB oH/mmorTeQcEO6uDqc9SgqzEaLpNUxsXOBEMp0HYsQBoTdGzsh6aZGrVHX47A3ZLFv9WbRB+ iluFb5KY2n673MOZgSuCFurTuNm+Ik4qfHz3KCVkEghN/swYZW/ONxqZC+2kIPO30WJOnvSL OptwSrxigmRMwJMCYI59NwaF9lyk/F8iL798mNXuhb9mWoiw2Qfjm5xAI+8u3ECDlF6RImKJ QW26frU/JgIUOPrTP+XkxBzCK+vKVekqjhASMH0vLMUBjY02EvqjYfR1egevXc63hMJDR513 uqyECDvmUMJulfMUR2BeaX/+6/alsvQLlvDF8sZ1wrP4PFdqTELwMPHvKsZgX4KhMnNUhPSD XxdTif6ZoOAt/ZdtmdSV6InuwAz/1C9VnBRGP459T4N2OYSql4P4rcGBokrQCFC4kP/ZdqDf vnOzfc5OOiR/D+lE Message-ID: <4cba8c1c-e1ec-1972-5d12-97804cf6aa14@gydle.com> Date: Mon, 29 Oct 2018 08:50:59 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <80512536-d668-489d-5f73-d7e4a4d54e2d@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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