Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2617147imm; Thu, 16 Aug 2018 12:30:40 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwBdwkEu6tpbU56dTX5l9cn3DqFCIsbLv3fqFRcbYAcTbFRiI17DadAcS7c2B2WrRHvbOM4 X-Received: by 2002:a62:41d6:: with SMTP id g83-v6mr33353103pfd.219.1534447840475; Thu, 16 Aug 2018 12:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534447840; cv=none; d=google.com; s=arc-20160816; b=dAETyRa193lydrcYFvnl/KeoLqopuCGBPg+uJmkedJPCiUxWBUBxgEmt0RFfZZmk0T 1CnJClQhG0H4hdr6K6pOJmOuESOghgHyKrJblWUE0IWJ+qxnMCCKwJYOGZglh3jQFxME Hct/QN1vQ9tAF6j0NzZfquEtpTKj3zhKDgW8eNynb3SrCHSdK6cXrAVUJYMgw7mtA+DN fuYZeXyL+f0ybUmejv2AroXdppaAjjYKv44l0NPGTHIgPa7SlS7Yq9yq1xWH6tg4nxeo 6+Ioy6e5nR+opF6G70A+M5DcsyF+AlV9/tVJioCErzzZmpn8vnEXcpGbEFXsILx++WZS ++xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=NZw5OvJEl/OX00lGTUCtJvtdlkyYzSrrr3qXGoEaEQ8=; b=drXSMSGOyYIPUqA5F6/dajxfCiH/i2eD8AMdIVhjSSVk4fBvyBX+DpviiWNCKPuwz4 SkGMr7woKoVVCaLmGb+qsJSF3Y5fwtNi3mIl/ExwYqZMtea5iVR+IvJacXVIw+AlC3cB GDeYG4RSY9cJ0NU+zArtu+PbGg2Pi7mjzEwcvSCt1+HZES9QnWVhQDF5Iq+iFMOQDu2i XWNZ5AYBOk7OXPEwaldQ9iyZiP/4777jq/395BESiAb9iRX7DpvT52k5TD4qHyHiw1qv codkku2ePHYxM5H7Uk9NjuH6fA84PsIuFVq2Ystq/BSPK47fjtXeagAiGUlYhb3DsiT9 /wmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HuOZbDp0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3-v6si113858pgc.122.2018.08.16.12.30.24; Thu, 16 Aug 2018 12:30: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; dkim=pass header.i=@linaro.org header.s=google header.b=HuOZbDp0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726249AbeHPW3B (ORCPT + 99 others); Thu, 16 Aug 2018 18:29:01 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:47010 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbeHPW3B (ORCPT ); Thu, 16 Aug 2018 18:29:01 -0400 Received: by mail-lj1-f194.google.com with SMTP id 203-v6so4533611ljj.13 for ; Thu, 16 Aug 2018 12:28:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NZw5OvJEl/OX00lGTUCtJvtdlkyYzSrrr3qXGoEaEQ8=; b=HuOZbDp0BOD4KVtJ9Ng/Ct9JXscJs2oqXQfEiNtDYaEBY4SsFV1xgEJh4mdWaBZKnb nsxj9icoMV4nVNivVHYMPUJZHFxk3yPPpYPtmWXf1KWTZMt/tO/H7vnrcF/JBh28M1Gm I/HnFRs2rTv2H5eZ8hDTydFzfuJZmkynOWBx0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NZw5OvJEl/OX00lGTUCtJvtdlkyYzSrrr3qXGoEaEQ8=; b=QE8n+knOZ1GXBAnuntFoKq68kKHuWCPxiLrr/duDMxecO+D35bzjM5wnykBjuGDmpN u8vq59O85597SDUYOancS38RNSLk9MGSS+TNgIvPVlotMYOKyu5iyAxoWdjSeZCPFHzW QXt8dRTl7BXwkZ1ua5ag1jJ22TmQTHodfewKHHJbRkeYhYJ/3PQ5FeNzhVJTjQCHZlL3 4sB3LvRYyRJz6A6V9po/Tli8/KeYMfVwWa90qWn5CqQPk63ENy5gy0XCVg0XDgTFTv4I AkGF+nbisyzTDntJ2sMfMEZwujNrmLmWbkLRic7hCXY1Ow3RlbwheDIKnx5RtF1id5Sr IfAw== X-Gm-Message-State: AOUpUlF7vQjKhUsOjMteOWjiHdWt2gSbQW1hvkOsqCuG1SYuRPbHek9y FydyEP+iuVHIyD7MRXi3kWb5BpAB2c1PfEiRXqZUjQ== X-Received: by 2002:a2e:5687:: with SMTP id k7-v6mr23212403lje.105.1534447720057; Thu, 16 Aug 2018 12:28:40 -0700 (PDT) MIME-Version: 1.0 References: <1531950487-24554-1-git-send-email-mathieu.poirier@linaro.org> <20180813124642.3d49c082a95fc294d926016e@arm.com> <20180814120910.ed225bbc462c58b09e5d68de@arm.com> <20180815093912.GE2427@arm.com> <20180815102820.3520d0c3875d2fd82300cdef@arm.com> In-Reply-To: <20180815102820.3520d0c3875d2fd82300cdef@arm.com> From: Mathieu Poirier Date: Thu, 16 Aug 2018 13:28:28 -0600 Message-ID: Subject: Re: [PATCH v3 0/7] perf: Add ioctl for PMU driver configuration To: Kim Phillips Cc: Will Deacon , Peter Zijlstra , Arnaldo Carvalho de Melo , Ingo Molnar , Thomas Gleixner , Alexander Shishkin , schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, Mark Rutland , Jiri Olsa , Namhyung Kim , Adrian Hunter , ast@kernel.org, Greg KH , "H. Peter Anvin" , suzuki.poulosi@arm.com, linux-s390@vger.kernel.org, Linux Kernel Mailing List , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Aug 2018 at 09:28, Kim Phillips wrote: > > On Wed, 15 Aug 2018 10:39:13 +0100 > Will Deacon wrote: > > > On Tue, Aug 14, 2018 at 01:42:27PM -0600, Mathieu Poirier wrote: > > > On Tue, 14 Aug 2018 at 11:09, Kim Phillips wrote: > > > > The other thing that's going on here is that I'm becoming numb to the > > > > loathsome "failed to mmap with 12 (Cannot allocate memory)" being > > > > returned no matter what the error is/was. E.g., an error that would > > > > indicate a sense of non-implementation would be much better > > > > appreciated than presumably what the above is doing, i.e., returning > > > > -ENOMEM. That, backed up with specific details in the form of human > > > > readable text in dmesg would be *most* welcome. > > > > > > As part of the refactoring of the code to support CPU-wide scenarios I > > > intend to emit better diagnostic messages from the driver. Modifying > > > rb_alloc_aux() to propagate the error message generated by the > > > architecture specific PMUs doesn't look hard either and I _may_ get to > > > it as part of this work. > > > > For the record, I will continue to oppose PMU drivers that dump diagnostics > > about user-controlled input into dmesg, but the coresight drivers are yours > > so it's up to you and I won't get in the way! > > That sounds technically self-contradicting to me. Why shouldn't > coresight share the same policies as those used for PMU drivers? Or > why not allow the individual vendor PMU driver authors control the > level of user-friendliness of their own drivers? > > That being said, Matheiu, would you accept patches that make coresight > more verbose in dmesg? It depends on the issue you're hoping to address. I'd rather see the root cause of the problem fixed than adding temporary code. Suzuki added the ETR perf API and I'm currently working on CPU-wide scenarios. From there and with regards to what can happen in setup_aux(), we should have things covered. > > Kim