Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4792304rdb; Tue, 12 Dec 2023 09:23:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYO8QfnJu6i7ID5ObxZfJUd1lSE/HHCLMPHr2qrvOlRRSSrtM3dbLC0cR69dKplqYF2Dy3 X-Received: by 2002:a05:6a20:9694:b0:18f:97c:826c with SMTP id hp20-20020a056a20969400b0018f097c826cmr3055382pzc.118.1702401805758; Tue, 12 Dec 2023 09:23:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702401805; cv=none; d=google.com; s=arc-20160816; b=eDaSJQpop9lLAFi4UDzdmBOzJsQBxO46Rmw+fp0ryoqZRmVgrAli605KQnsbeVT+F3 SpCaDZa9oyET8M5kJ0QeU9jOVwkOlHm2oX2bwsNIKkvugSXbCzbWZRkBxG3REyg6j9kM k+6PTMbG4jlsg3eNSbyNi93bqM4WObfYcuHFiz8oYNE+puAVjxXvfxtvxCgt4Q8JG0Ch Y653XMUKIfO9vGnykT0HJMyUMYxwWTJJQn70GS3HnCcpb9a+6iQkG/7Q5FLvzwr/+1pO pvFIUKeZRZ/yUWitfVojoXmVmG/fZwiNubYbewO//b+PD8uPRHbL6Vkds6yCgnBQxYCw dFAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=QH1DxByyazhuUmSCqnxKcDLJjpXZJR1GYU6mE9zhStU=; fh=/mY+EA3Xyep8irHk6V6O7P3632Kddh1xglt9gibUoKE=; b=vKgPKTxLU9yG44+AwQJ8CJ4YIzSuRZpLuvdPtdUJK2fIGkvnTTAaLsDp+BN8El57IN t6t/BOkdbXitXnjaeNxlR/P6PA7rAzU6dU75MIDPGVDLscpZGGNeVDkQiN+WpN76E0dh okv5kNHj+cCqc8M8X9kl9Gz6isxoqZqOhffoAduIefLBt7trZekVhxRMhgmO4HUnedbe Q5grCjOYbLCCgd3lmgu8C7T0Hvvt9Rae8/eFQ0MpY0IUVTLdT+EYcTPmZ6OEJW791rnY 26FTt0kmouW1K1hJouFteZnxxBWV8vy/E8WUrb1VENLf/iWXh/p6isnx9abtQJH3/vpL HPag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id g6-20020a056a0023c600b006cd82b4d0c4si7990131pfc.89.2023.12.12.09.23.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 09:23:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 99D868048C05; Tue, 12 Dec 2023 09:23:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235103AbjLLRXK convert rfc822-to-8bit (ORCPT + 99 others); Tue, 12 Dec 2023 12:23:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235110AbjLLRXH (ORCPT ); Tue, 12 Dec 2023 12:23:07 -0500 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46F4E9F; Tue, 12 Dec 2023 09:23:14 -0800 (PST) Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-5c66bbb3d77so3358750a12.0; Tue, 12 Dec 2023 09:23:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702401794; x=1703006594; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MRd+wrGx+k+oAJrYQSPEsfD9HTn2kU5M5FOxDmNsBgY=; b=O7z1lIgfPX48Vdt4fsfEJWkCmz4oFY73H1URp+LEz2nOwwCZYH1v90TRpJiRpekXnG alxovRFc53K+ZQd913RZrrdshVWfDm4vtpCZkbprlB3lFr99KdHAJAgRfBjZYxj4NSIJ m5qJrzHJPa4hB4I8Katn5C7kaSE8+T3MSusytF8mMUygu//hnlbL71Fi4NetxeN6eBf4 PmcW3G044cSdAX1LtSDbpsJlr9OpQnxBhoU37dB7FH/M5IRmMsf/mtcmLI6uQ4y9SsrZ EzWvl56SYa6cChUGoX2KSJsj0lL9lnE6xPUdoHy1+uIsEYR4rA4aIQEJU7VbxErFt19p E2Ng== X-Gm-Message-State: AOJu0Yymjz8m40qk5mNpArABBdu6vlpOKk2SpE/YtnyhYVcXoRUmdVPm rSWJEGapF7MPT3IdrHjI29B6ibrx/Yywa9Ybthk= X-Received: by 2002:a17:90a:71c3:b0:286:6cc1:2cac with SMTP id m3-20020a17090a71c300b002866cc12cacmr3610905pjs.54.1702401793553; Tue, 12 Dec 2023 09:23:13 -0800 (PST) MIME-Version: 1.0 References: <20231208210855.407580-1-kan.liang@linux.intel.com> <07677ab2-c29b-499b-b473-f7535fb27a8c@linux.intel.com> In-Reply-To: <07677ab2-c29b-499b-b473-f7535fb27a8c@linux.intel.com> From: Namhyung Kim Date: Tue, 12 Dec 2023 09:23:01 -0800 Message-ID: Subject: Re: [PATCH] perf top: Use evsel's cpus to replace user_requested_cpus To: "Liang, Kan" Cc: Arnaldo Carvalho de Melo , irogers@google.com, mark.rutland@arm.com, maz@kernel.org, marcan@marcan.st, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 12 Dec 2023 09:23:23 -0800 (PST) On Tue, Dec 12, 2023 at 7:56 AM Liang, Kan wrote: > > > > On 2023-12-11 4:13 p.m., Arnaldo Carvalho de Melo wrote: > > Em Fri, Dec 08, 2023 at 01:08:55PM -0800, kan.liang@linux.intel.com escreveu: > >> From: Kan Liang > >> > >> perf top errors out on a hybrid machine > >> $perf top > >> > >> Error: > >> The cycles:P event is not supported. > >> > >> The user_requested_cpus may contain CPUs that are invalid for a hybrid > >> PMU. It causes perf_event_open to fail. > > > > ? > > > > All perf top expects is that the "cycles", the most basic one, be > > collected, on all CPUs in the system. > > > > Yes, but for hybrid there is no single "cycles" event which can cover > all CPUs. Does that mean the kernel would reject the legacy "cycles" event on hybrid CPUs? Thanks, Namhyung