Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1082363lqb; Wed, 29 May 2024 22:35:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUSGoJcLqq3w8Te0pMgWzD/JdNCPMEM0PrVVkb87hGAmU34nxFPI1UD0gN9wqR0lGG+Q7xEqRHAOjEq3yRk2PNgjd5eUY04nZP1Z8igBA== X-Google-Smtp-Source: AGHT+IEv2ISw1wgAewXoV6nwkvnin6YygRnTo15qJ/IBZLjwYaspXJxWzjkh2pypGulHbYGLOjAS X-Received: by 2002:a50:d5d4:0:b0:56e:238e:372c with SMTP id 4fb4d7f45d1cf-57a1796a2famr579771a12.26.1717047335341; Wed, 29 May 2024 22:35:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717047335; cv=pass; d=google.com; s=arc-20160816; b=qyJj5A/F951ceV9H58EOfy8l9NBgY5ctL85qvIji5j0AO/YP1EfKcFIJsUbHlOlZfe CA04poqZRawiBlS1fgI5aDnxCpJ/sMiGyOzt4rR69dgv7FKDRp4C4JvsgpAdtnRaLe3G EgTiY3jtlwc9MNmVzo+p3YFXyZb6WBWsxWzFwa+lNsQHGjzTCa8CCj7NN6ATFpOa0XbY 08zOjGlZivOB2KR0go0bb8VACOtifiUpsV2Kl/NBbko0ie8QJMUluHSVXZgl+ITI9aJH ywoRYqWBhJ2Dm2fi44EY/+O3s+kmczKM9u5fbf4SOU5o5wIykwWdylN4jBRNLO50Nz/T WC5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=xejpgpEtLzwv9hcH2rJtXiBs10TLFrUh7R8Ixh2PMdY=; fh=OFw3b+8OhjmPHdGZuRA9g32hvF2jjhatD5zfsUapDO8=; b=eOP9SICpYdZZMKcr4hX3RC+fHt63lD/T7nJj1U/jFCv62RcWKqL3gc/QymoS4THln2 Pd/LYHS8QPcrNGCpMIXXcpDk+Mvc9Qr7r3Yqt6cr77Jl5VTi2ixBeIqDXxreouQm0wDb M9JHowpFP8ojuU0cpH5gUSmouqYcUt1kQs1Mw4CnNs/JIFXQRIJTW9c8Q3jF0xtbN2f7 22HQwofXbXM93msWIwo+t4E6eCHSa/I1EkNoquB/SCfq5GcWJaol1jaKNZnK4JS0P9O/ 4t7JeSOy2ukFbPYjJ1CAgA7kYZHfC24dg8VAzEPb/+XVFMBeaRnGO0N+CGlOgZYh0B3M MuIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-194952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57852387017si7226477a12.186.2024.05.29.22.35.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 22:35:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-194952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EC1041F23388 for ; Thu, 30 May 2024 05:35:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21F9B143C5C; Thu, 30 May 2024 05:35:26 +0000 (UTC) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5161C8C06; Thu, 30 May 2024 05:35:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717047325; cv=none; b=X381MjtyyJJgErOgT/cTRc6APiZhYhu8krYdhdYUrdz5B9FXjoyWsk+Pd0XqJq+qVVtXOljSMMtzUSIeAuG9kKuDwu43NcHm2kXO+fbrH025NyZwgR/GeVHH27GLUd7cHE9s+o05UkQTfr56ZkKDIPWntloQJRE7a3EpIv7xyTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717047325; c=relaxed/simple; bh=0CsSKfEsPjwBWmUdBY02Yt/YHwAyF+hHRKlg/jxONgM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=e8J3ZtZu2CGQtXu6DY3PqmSOmoVkh2Y2OKhCBZKsYD9Cl6Mlgvn7hU3RlhS0LCty/Eyi9lkXEZitZDLS0oiC9pD6X3NKcVc84p8GZ+1G0NJz5Mf5jLtZ289CKCYDd8qVmTrzZVIjcf3UycM+deKfEeN+qd43BOY6cpyf3MUOdCs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.216.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2bdb61c5fdbso377064a91.2; Wed, 29 May 2024 22:35:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717047324; x=1717652124; 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=xejpgpEtLzwv9hcH2rJtXiBs10TLFrUh7R8Ixh2PMdY=; b=hKVtGUUXxzkNHd6Mi+Fq4zhSN4vVGgpr6z7qjMusFjM/+RVwFTfXBQrNB2Yw3O7JkN DKDrhrmgBu5+sy+3U1dheNIAOATzt9zwikRV+cDOho6tWXOZW60WV2WoFmLIIDLk88BK 4jOg5LV/1OXNnVK0P1IiggPXSFnH0QrmQIwNXpw5hWN7oAeSSh7bQC6x+L6ZwnBpYwA/ NfyZjGKU6EYtyWq36mZKKOt+6DEmtHHtlMHMonwMyLfbw4ZXJ9i2azo6qd4jXeJGlW0d WuoyEm2UEcPc9NFqtL7QvoC6EkzePb1wlcXBFkxUVnob+HSk1yFrMp79G2uHUKJY0WYj ZrjA== X-Forwarded-Encrypted: i=1; AJvYcCVcUu8yi3PawNUyALrHMKBf454iybrWDjCIXZ5JPkOA8zHN+zmw3AIkcAx67iMXdVbFI3aWjMvMRwAB432M2qPhapqa6TUIr6Pzr19e4oOddzKDwqEO3ILjqAnFGXNwjyfLrpnuKn8Rdj95BIsFsg== X-Gm-Message-State: AOJu0YwaMEWUdI9x/TfIdVxBS6sEk81/6fwEb3QrQ2ZZt6yIIJiE2o2C jmT29oH61eYVIgcMvVRefy4Xrc1+7f6+DhCIoaJOPnruNKJFM4y0B+NC5vnWMiGT42dBAjvrxHt xHWGTQsY7dVIlt2rr9cwyhYWBuMA= X-Received: by 2002:a17:90b:364e:b0:2c0:f62:7b88 with SMTP id 98e67ed59e1d1-2c1abc3c58fmr1123757a91.25.1717047323480; Wed, 29 May 2024 22:35:23 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240525152927.665498-1-irogers@google.com> <20240527105842.GB33806@debian-dev> In-Reply-To: From: Namhyung Kim Date: Wed, 29 May 2024 22:35:12 -0700 Message-ID: Subject: Re: [PATCH v1] perf evlist: Force adding default events only to core PMUs To: Ian Rogers Cc: Arnaldo Carvalho de Melo , James Clark , Leo Yan , Linus Torvalds , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , Dominique Martinet , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 29, 2024 at 12:25=E2=80=AFPM Ian Rogers wr= ote: > We can fix the arm_dsu bug by renaming cycles there. If that's too > hard to land, clearing up ambiguity by adding a PMU name has always > been the way to do this. My preference for v6.10 is revert the revert, > then add either a rename of the arm_dsu event and/or the change here. > > We can make perf record tolerant and ignore opening events on PMUs > that don't support sampling, but I think it is too big a thing to do > for v6.10. How about adding a flag to parse_event_option_args so that we can check if it's for sampling events. And then we might skip uncore PMUs easily (assuming arm_dsu PMU is uncore). It might not be a perfect solution but it could be a simple one. Ideally I think it'd be nice if the kernel exports more information about the PMUs like sampling and exclude capabilities. Thanks, Namhyung