From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18358C43387 for ; Wed, 19 Dec 2018 08:29:30 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D44AE218A4 for ; Wed, 19 Dec 2018 08:29:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Pmpk0DLh"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="YmbMcXQp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D44AE218A4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=itVzPaVG23LVqrz2Z4VJWv7yuHkmvOTdD2pOr7I3wdY=; b=Pmpk0DLhocA72Z moneArBl8EzWcmBrlAazSV9ZAMY1K5A565bFLsoPc+pMvEVgD8S2iuPNy77FXIIKVkn5wmAne5TUu RA2OQa3u56/j9Lhxr3mgNVccIcy/txmq612kUPQck1GlPqq5wytzAsdW/Cm2btre0bAVhaF3eQXE2 b2MITrMQN/efcstWUxfnZlhpI5QCM9veu8c4mYjE27uYkPmfsznO+9vjsrMx60RjoTjdEoa1IfyzR LMyCL3d1lrFJJ7MqJLI0IovBZzceKB/jx4dECscKP0Oe6YT0acL5c7PDHGQeCSiq2+QTNfB2DCx5P +WOR2bu/ysFQO1FjuwxA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZXEI-0007v4-ND; Wed, 19 Dec 2018 08:29:22 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZXEF-0007u3-Vi for linux-arm-kernel@lists.infradead.org; Wed, 19 Dec 2018 08:29:21 +0000 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8A03220675; Wed, 19 Dec 2018 08:29:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545208149; bh=R2MOlTK0gBdmXndrDqI7Vvb9vGIlBzZbV4QrVgx0F34=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YmbMcXQpe3M8HhUXiMsUQ1uV+U8XDvptKTWoJ/Qv9YZ7Muh3aDTLYjFbxpzBwlxEK pF/SCczacxzYLyTE32Hfl9BgiA+Jej19D+Cj+F5BuKIG8LPSXEjCx0o0swmwbUtXSq 7f+Q5lj+NTL93eMtyySfMj/PwcIIInu4UdP2RBOA= Date: Wed, 19 Dec 2018 09:29:06 +0100 From: Greg KH To: Mathieu Poirier Subject: Re: [RESEND PATCH v5 1/6] perf: Introduce ioctl to communicate driver configuration to kernel Message-ID: <20181219082906.GA31670@kroah.com> References: <1545067306-31687-1-git-send-email-mathieu.poirier@linaro.org> <1545067306-31687-2-git-send-email-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1545067306-31687-2-git-send-email-mathieu.poirier@linaro.org> User-Agent: Mutt/1.11.1 (2018-12-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181219_002920_037858_30842ADE X-CRM114-Status: GOOD ( 14.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, linux-s390@vger.kernel.org, peterz@infradead.org, will.deacon@arm.com, heiko.carstens@de.ibm.com, adrian.hunter@intel.com, acme@kernel.org, ast@kernel.org, alexander.shishkin@linux.intel.com, mingo@redhat.com, linux-arm-kernel@lists.infradead.org, hpa@zytor.com, schwidefsky@de.ibm.com, namhyung@kernel.org, tglx@linutronix.de, suzuki.poulosi@arm.com, jolsa@redhat.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Dec 17, 2018 at 10:21:41AM -0700, Mathieu Poirier wrote: > Adding a new IOCTL command to communicate PMU specific configuration to > PMU kernel drivers. This can be anything a PMU might need for > configuration that doesn't fit in the perf_event_attr structure, such > as the CoreSight sink to use for a session. > > Signed-off-by: Mathieu Poirier > --- > include/uapi/linux/perf_event.h | 1 + > tools/include/uapi/linux/perf_event.h | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h > index 9de8780ac8d9..a39d8dc2e7a9 100644 > --- a/include/uapi/linux/perf_event.h > +++ b/include/uapi/linux/perf_event.h > @@ -462,6 +462,7 @@ struct perf_event_query_bpf { > #define PERF_EVENT_IOC_PAUSE_OUTPUT _IOW('$', 9, __u32) > #define PERF_EVENT_IOC_QUERY_BPF _IOWR('$', 10, struct perf_event_query_bpf *) > #define PERF_EVENT_IOC_MODIFY_ATTRIBUTES _IOW('$', 11, struct perf_event_attr *) > +#define PERF_EVENT_IOC_SET_DRV_CONFIG _IOW('$', 12, __u64 *) > > enum perf_event_ioc_flags { > PERF_IOC_FLAG_GROUP = 1U << 0, > diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h > index 9de8780ac8d9..a39d8dc2e7a9 100644 > --- a/tools/include/uapi/linux/perf_event.h > +++ b/tools/include/uapi/linux/perf_event.h > @@ -462,6 +462,7 @@ struct perf_event_query_bpf { > #define PERF_EVENT_IOC_PAUSE_OUTPUT _IOW('$', 9, __u32) > #define PERF_EVENT_IOC_QUERY_BPF _IOWR('$', 10, struct perf_event_query_bpf *) > #define PERF_EVENT_IOC_MODIFY_ATTRIBUTES _IOW('$', 11, struct perf_event_attr *) > +#define PERF_EVENT_IOC_SET_DRV_CONFIG _IOW('$', 12, __u64 *) A pointer to an unknown structure? That's just asking for abuse :( _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel