From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: perf_event sampling a multithreaded process - ioctl with PERF_EVENT_IOC_SET_OUTPUT fails Date: Wed, 19 Apr 2017 08:46:23 -0700 Message-ID: <877f2go0xc.fsf@firstfloor.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from mga07.intel.com ([134.134.136.100]:24257 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937651AbdDSPq0 (ORCPT ); Wed, 19 Apr 2017 11:46:26 -0400 In-Reply-To: (Daniel John FitzGerald's message of "Wed, 19 Apr 2017 11:15:20 -0400") Sender: linux-perf-users-owner@vger.kernel.org List-ID: To: Daniel John FitzGerald Cc: linux-perf-users@vger.kernel.org Daniel John FitzGerald writes: > > The problem that I am running into is that whenever I attempt to call > ioctl() with PERF_EVENT_IOC_SET_OUTPUT, I get a -1 response with > errno==EINVAL. There are lots of restrictions to PERF_EVENT_IOC_SET_OUTPUT. Likely you're violating that it has to be on the same CPU or same task. -Andi