Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751347AbdH1UlR (ORCPT ); Mon, 28 Aug 2017 16:41:17 -0400 Received: from one.firstfloor.org ([193.170.194.197]:60742 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751207AbdH1UlQ (ORCPT ); Mon, 28 Aug 2017 16:41:16 -0400 Date: Mon, 28 Aug 2017 13:41:14 -0700 From: Andi Kleen To: Stephane Eranian Cc: Jiri Olsa , Andi Kleen , LKML , Arnaldo Carvalho de Melo , Peter Zijlstra , "mingo@elte.hu" , "Liang, Kan" Subject: Re: [PATCH] perf record: enable multiplexing scaling via -R Message-ID: <20170828204114.GR2482@two.firstfloor.org> References: <1503342849-2036-1-git-send-email-eranian@google.com> <87wp5wr0cb.fsf@firstfloor.org> <20170822012545.GJ2482@two.firstfloor.org> <20170822070332.GA21829@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 568 Lines: 18 > So I think we are good to go. to capture multiplexing scaling factor > when sampling simply use the S > modifier. > But to my surprise, newer kernels are not happy with the cmdline: > $ perf record -e cycles:S noploop 1 > Error: > The sys_perf_event_open() syscall returned with 22 (Invalid argument) > for event (cycles:Su). > /bin/dmesg may provide additional information. > No CONFIG_PERF_EVENTS=y kernel support configured? Likely due to ba5213ae6b88 perf/core: Correct event creation with PERF_FORMAT_GROUP It's not supported with inherited events. -Andi