Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp929805imm; Tue, 3 Jul 2018 02:30:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJuAqucdo1RbGOuBnz9p5mu2+1vPWvfnT1Dd09zv0XM8QoDR2oKeO/+EEdPGXiavRx7JZm4 X-Received: by 2002:a63:ba43:: with SMTP id l3-v6mr24083428pgu.295.1530610209462; Tue, 03 Jul 2018 02:30:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530610209; cv=none; d=google.com; s=arc-20160816; b=Y56J2+w+M5VLmEywuX2aH3zU6XgAT8WzAIE6owZOAuRMQTsjRlrkGKYhiYk4OTqL/Q wMiz8hVHVUswx1udqgZDu8LQLzhiJHf0Hz1XvklDqNqmV5+SbXnB8KhnBNzYQ4COjxhD W0GBfUnRmpWXDx/274Pisn+wN/fkYQvJWlFLtHU6LlKTVtuxKew0cujybi04JvpuwqN/ iDheRwyW27cPplpefczmgMTNoO0x5U9iybKNlUIng2GReZS17xjobKs+UBBda5SpyWeY XyD5bXily7yB7iE1Vu2uTfZZAxt5++ztWbJxFIk2Gaa7pyJje8HYBjQag3mcL2czNChZ gLDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=uOlS/r/iVtlyymuK9Fxi+bw+vHN+x+gM21IRenBPmeo=; b=DZJmrg+5QHAymQ/9TnMzxQxKoStILJ8y97+QzZA80DjVyCU9GYP1i+szmpCmQK/GVb ETfSHdeB0pKk41qiIfixrJM9RH9IOyCa9vnIrFQdPGIMOhKysKyicNOxiIU1erPN14mj S99ESmNos6TFIo1xOhDnRCtRb+Hk7Jg1vYzaPaQ5dcDn+CwQP3px0T3QtX4GStC+pvO2 2eVSUi2MjTeBTbQ09oUUnBVTN1btWFLXt64o6pras3DHIG+t4hVCnG6xJNjQ1BXK00v7 efzNsFGYnmnqc6RfK6UoSOPKm1BRQbpAOWSdZ/8kwW/A5x1UJ7f21n3TjMiHkiq0hdtf xHxQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s65-v6si642729pgb.486.2018.07.03.02.29.54; Tue, 03 Jul 2018 02:30:09 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754709AbeGCJ2B (ORCPT + 99 others); Tue, 3 Jul 2018 05:28:01 -0400 Received: from mga04.intel.com ([192.55.52.120]:63176 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933656AbeGCJ1e (ORCPT ); Tue, 3 Jul 2018 05:27:34 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2018 02:27:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,302,1526367600"; d="scan'208";a="69686811" Received: from um.fi.intel.com (HELO um) ([10.237.72.212]) by orsmga001.jf.intel.com with ESMTP; 03 Jul 2018 02:27:28 -0700 Received: from ash by um with local (Exim 4.91) (envelope-from ) id 1faHao-00016e-B1; Tue, 03 Jul 2018 12:27:26 +0300 Date: Tue, 3 Jul 2018 12:27:25 +0300 From: Alexander Shishkin To: Mathieu Poirier Cc: peterz@infradead.org, acme@kernel.org, mingo@redhat.com, tglx@linutronix.de, alexander.shishkin@linux.intel.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, will.deacon@arm.com, mark.rutland@arm.com, jolsa@redhat.com, namhyung@kernel.org, adrian.hunter@intel.com, ast@kernel.org, gregkh@linuxfoundation.org, hpa@zytor.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 4/6] perf/aux: Make perf_event accessible to setup_aux() Message-ID: <20180703092725.j7x2qxiwjgkejox2@um.fi.intel.com> Mail-Followup-To: Mathieu Poirier , peterz@infradead.org, acme@kernel.org, mingo@redhat.com, tglx@linutronix.de, alexander.shishkin@linux.intel.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, will.deacon@arm.com, mark.rutland@arm.com, jolsa@redhat.com, namhyung@kernel.org, adrian.hunter@intel.com, ast@kernel.org, gregkh@linuxfoundation.org, hpa@zytor.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <1530570810-28929-1-git-send-email-mathieu.poirier@linaro.org> <1530570810-28929-5-git-send-email-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1530570810-28929-5-git-send-email-mathieu.poirier@linaro.org> User-Agent: NeoMutt/20180512 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 02, 2018 at 04:33:28PM -0600, Mathieu Poirier wrote: > It can be advantagous to have access to all the information conveyed by > a perf_event when setting up the AUX buffer, as it is the case when > dealing with PMU specific driver configuration communicated to the kernel > using an ioctl() call. > > As such simply replace the cpu information by the complete perf_event > structure and change all affected customers. Ok, but can you provide details about which parts of perf_event you need and how they are used? Is it the attribute? What's the ioctl command in question? Also, should we worry that the PMU specific configuration isn't part of the attribute? Or, if not, why? I think we talked about this before, but I forgot and this patch needs to explain it anyway. Thanks! -- Alex