Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1197196lqb; Sat, 25 May 2024 09:44:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVEAWlYrI/sSVNy3HVdQjcAmoxNc4kMDpdCehI2ecKMCq44o6WNiHkyDF/wO3QaxRDv6sN2AI0SwBFYP4BxucPHCX0mH0utA74FOWBk2w== X-Google-Smtp-Source: AGHT+IFTo/SPW0BQXXWt3iYANRuIUDzsyFCzOAqsNCl8K3VqO02cN5Tv1Ml+AC/0HaQ8mDjnmE+5 X-Received: by 2002:a05:6a00:1d8f:b0:6f8:ddfe:8fc4 with SMTP id d2e1a72fcca58-6f8f370a0a4mr5588097b3a.19.1716655459443; Sat, 25 May 2024 09:44:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716655459; cv=pass; d=google.com; s=arc-20160816; b=xTyDDMOXaGaJY3QQgEUT3PN7zqy3C9/eIPRkTrvsGzUgc26Frq7gtqIKP7cWdFOETK ifjIzcq9ZwkES4tWJfCOiUryDSAlsek9wB//dDBuz7BwGPgLS5FgbMTqm8BwgdI3ohZA Ec/98nymEXhR1sjcgUW6awyYHvkbgvB7bm0bXasc1MsmQjiPR3oAzUxb+Ojib2CmmFSj GPpZOL7FmASLHsH8N46kzbVmHWS/GRLeiixCM0HjGLc1G3x+isWtovdETMpCN7KhjaA9 SFjVnPEvgKEgFzXJgbJV0bjSgwXzOD/R8BvYIRtmTHMzkTKo7b2B5BSCFYYyfLhOO3WI N4FA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=0XeTI2+I0Yf5YeTzSjD68RcTudZ1kraGCCr7BX0rvX0=; fh=pQ/PPwrRNa1StUPAlwaRrfT8YgHwjJuZbfD8AgknSCk=; b=fARNtcKTR8QTSxgY5x2Gjrd/JWGH7cczN3UYqq/wxp7HZaeZwToxrVIzMHoBXiruRE IXWIM2dNuYqfnp8vWs7FATG5s8Pjdmd/4P9YTC/TH5oAwmKELWgt+DLxeG4twRFi6u7w 7tcXk+2tUasagEreKv8XbDxqmfFxne7KqmoMECfImjO/xLC2xb8COJ1DEAlMjuJ5ExxV bJhFW9uThwKY7JPApMIsim0lr0oBifPFvvn58B39JYTy5zcQG7JpLm9qo+REF/Z81Csf JDqvkRnhTjhVS1m6CN6ncHGpH/rZX6hDyoC1Cr8NWBRxvlCsdI2Mhb7y6SHqRRi1HQZs +LEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=MPPvh6OP; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-189450-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189450-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fc04c93esi3270385b3a.4.2024.05.25.09.44.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 May 2024 09:44:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189450-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=MPPvh6OP; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-189450-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189450-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8C136281B30 for ; Sat, 25 May 2024 16:44:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFE9E8625D; Sat, 25 May 2024 16:44:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="MPPvh6OP" Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 286A28593B for ; Sat, 25 May 2024 16:44:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716655452; cv=none; b=cO1/Jbdt2+u6weFB7p8WHaSlNfTEXWhqobUXWrstfgntQmeCvQW526lNn+juwgd8uEn25giSfGG7r2ai9RviWEBsQ+qMuuAiou1Cvg9GEVkcK/Kj4bp1p8ECk4F/q6wTa61XqJGaFDK8fggYs1+210Q8BOdWeK77O4v7tw3ZOMs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716655452; c=relaxed/simple; bh=WCBqLf8xWl7QK8aivI70dfgxab6wU9Nc6TJLS8c8dhk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=MxeBIWiRSbqJSAaSRt2ZHph8lSEXkmq2sK+FAfVkjWPbBd9WB3IZBmtawkTy/wCjvA3XbPR1aef7JmrMEZGkxVNksmeUthkft3QqcGpDgzmY6cjyO0+zc8OGRs7mKLJyCFKDHPXBFIcfyGMfk37uOIDAf9N1490LiqDOcjuHLwg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=MPPvh6OP; arc=none smtp.client-ip=209.85.208.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2e724bc46c4so75256161fa.2 for ; Sat, 25 May 2024 09:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1716655449; x=1717260249; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0XeTI2+I0Yf5YeTzSjD68RcTudZ1kraGCCr7BX0rvX0=; b=MPPvh6OPN7mLZJGl7COmBbmuBgT6bCMhXfDnkiHpFJrLNA4L124hT8yWCk9kZxA+Du 7vtVpQS3LjsJRT/Slf857+D7Vd3WiTT6O/gCa/p4Z+FmWLCGXgS2iIDDfD0uM7rRyz+k muVGTAlu9WPdsYGBH9H2dEh5nJRRWoRYglj58= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716655449; x=1717260249; h=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=0XeTI2+I0Yf5YeTzSjD68RcTudZ1kraGCCr7BX0rvX0=; b=NfXY3Icifq5ILHBPSWRvAh67u/2rRIsl/tVjiR8ag5IY+I0KfWc8flGXDFj+tcA2gt XNo5kogZa1NVd/fs0bd25yzZbOm+nMRnjyUYL31QJI1PEgqNPw6xCWBRGuNR+qlEva13 Emp860yeJLHOwY6Dw+0yML3iAqVnF5UjguaP2vkDURIUCs15x6zSZ0xW36p0Vvzpb3Xq jL02Je0DTJXEldgT3uNPjBffZf6C2c3C0Z5jIjKIkawaaIrAvuog2gEP/puXiMksKl6g ei1CJVZ6q4MsSVwrVKVOD1MW12AHI9LZs+fQw8Kq4yLle85LSFp0WuBHjTZXf2VlcC/R ZJ3g== X-Forwarded-Encrypted: i=1; AJvYcCUFtUEWDdgy3BwZDmfoMZ2bxiTlwALZ69/bGDayLQRrP1h/fY1Q1jnq7cAVw9Vb3GbhYex0qNIDeQxKwXdMPrtzOQSYRTLdO7e2C8Zd X-Gm-Message-State: AOJu0Yw4cDASinhE2mKPdPCQJkjrrOTekRxXmPPYONI0KXnnTWOXE1hu 3JAijP+ju4dThPNa6SEYpqhXhguoJpYLGgNFMMhwWvY3gOU1U7wtGl2ri6g+DWmjQfqlD6oxsQi waaRMFQ== X-Received: by 2002:a2e:8192:0:b0:2e0:3132:94d4 with SMTP id 38308e7fff4ca-2e95b1cc78amr32452581fa.16.1716655449136; Sat, 25 May 2024 09:44:09 -0700 (PDT) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com. [209.85.208.174]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2e95bcc45b1sm7784051fa.23.2024.05.25.09.44.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 25 May 2024 09:44:08 -0700 (PDT) Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2e724bc46c4so75255991fa.2 for ; Sat, 25 May 2024 09:44:08 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXvu9lBy2OHz6ODHOaxBGVh6GNy0ZkBQq8OIBRoa87W5bB+soN/lzxTPc5UNPKYYJxkPAZlpZFjLLapmLj8thtcuusAnqAPvO9RQP4K X-Received: by 2002:a05:6512:1112:b0:520:98ff:5554 with SMTP id 2adb3069b0e04-5296547aa0amr4212947e87.30.1716655448041; Sat, 25 May 2024 09:44:08 -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> In-Reply-To: <20240525152927.665498-1-irogers@google.com> From: Linus Torvalds Date: Sat, 25 May 2024 09:43:51 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1] perf evlist: Force adding default events only to core PMUs To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , James Clark , Dominique Martinet , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Sat, 25 May 2024 at 08:30, Ian Rogers wrote: > > PMUs other than core PMUs may have a 'cycles' event. Default opening a > non-core cycles event with perf record can lead to perf_event_open > failure. Avoid this by only opening the default 'cycles' event on core > PMUs. > > Closes: https://lore.kernel.org/lkml/CAHk-=wiWvtFyedDNpoV7a8Fq_FpbB+F5KmWK2xPY3QoYseOf_A@mail.gmail.com/ > Fixes: 617824a7f0f7 ("perf parse-events: Prefer sysfs/JSON hardware events over legacy") > Signed-off-by: Ian Rogers This makes 'perf record' work for me again. Tested-by: Linus Torvalds Thanks, Linus