Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1408155rbb; Mon, 26 Feb 2024 08:20:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXW6eHTwVF3V6iIA2fY1GkQ2kUic1wQQMLeWWzSXFPPDv7hNPXCTyVA3Mds9h0QFXDfxUb8KgOGbSus2+OisucZD44n90PcuX+gQfCvXA== X-Google-Smtp-Source: AGHT+IEIf8KNa/l/tUI1Qdvs8EGq4zwXz7WV1ygbDHUAIU+q5nkZip6LeUvcLAEdNokLx+7eRs1W X-Received: by 2002:aa7:cd41:0:b0:565:f7a3:7fae with SMTP id v1-20020aa7cd41000000b00565f7a37faemr2123251edw.12.1708964433535; Mon, 26 Feb 2024 08:20:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708964433; cv=pass; d=google.com; s=arc-20160816; b=I+LYoLSSiAPzrGzHx5WIGB6ubwP32yyvo4Bj88axUcAWdaV/k2+z/I8oiNDcXfiTx1 mHxhM+neYSsNgesDQfTMAdOsujF0i+c7qWAzMI5mdv1Gc8+jEoyTtFYg9VKyyhzCWV/R nP+AWLex3nOy1nZ1B5c34vdgicO9h33ElwvGrfWUTas8ULlnY1sfAPjxfyxizuxaimdG EPgl0q8Umf1TwF4e6767PsD44op/yjoUULoDUq43+MJfMrEpsOnAw4xqYiNoDOtK+Dv+ d6bZA9gKyQPf7qRHHiY5cjlGDFZGmdGBv2eeHYJAM9v+kCgDluG4WgXcvbV57RGU4AiO Bt5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=m9QAD/ivPkx+sQV/xR3uRBFzKu+8ZM2A4b1pRfaJS04=; fh=JiHQeD3aSkXCSyVub80lX7B7saAV5J9pIQmKMlrSO/w=; b=E24F8crxGfMvHll42B82ilimY+7V4Mpwtu+Z7pI5gnTX5aW+xX88VAnpPEg08DWpxr xJZtq6FTOe0XOhqg0EVRXITt4qpAbruiJ1dHEL7nD2d73LCVZMGZMnxSx4WVan8rKRIm X1rVaOLORMxkRHTIQlyz3R5ZG5xMMQVLaNAzc0PyADj74/fX6nCzNGhOjqhTnpqmFUv0 r3jxGppX4YLhTmRvDN0SfQiGG9YtFu8uovbXgyxqNhvwH6C2v0Amj0Fg9RbyCf+8uA8z RUnom0lSY8liGLrdrIPru1vJnyFS9nMg3FxgBIAM5KIBA4iRd1DEnHCCfSIm807FH/b1 rrZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i3trr8Zm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-81887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81887-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 n15-20020a5099cf000000b005661be1670csi255751edb.681.2024.02.26.08.20.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 08:20:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81887-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i3trr8Zm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-81887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81887-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 4C9EF1F2CF90 for ; Mon, 26 Feb 2024 16:20:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56FBE1D531; Mon, 26 Feb 2024 16:20:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="i3trr8Zm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 77C6A12C55B; Mon, 26 Feb 2024 16:20:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708964428; cv=none; b=eadV7NaZARUL1NQrcnLoY/uzt85yKumTkU0CHosBwaER4e2lTSPVtxvLxejZwGKrnG4/Iy3+paG/1WvmOtPqzwLgp6+Z1M1VbyKGUvR9/In4TBZR65eDz/AaSvU6kgFNpFo4+ReKHq+4iIAz1Til1cj82JVIttQepcB02tTE1GU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708964428; c=relaxed/simple; bh=Py+EiuCHVOS32tKSo962ALIXuh08KKc75p5mmglk/ds=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=p+RoJCfBXTGazaa3Tlo+mMmbkGCEMmkSChBkZM94xc5lYqjSZs5wD+bcX7FWdr8FTQjNawPtrQyns8O7qup8DPkUi8jaoPLtB9QIU58Ya6J4J+qg3e323IH38Y8LtY0HcvnEJPMy8+r1bmlrjxsLREqILaO/5P4G27HHImzhbSk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=i3trr8Zm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67D31C43390; Mon, 26 Feb 2024 16:20:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708964427; bh=Py+EiuCHVOS32tKSo962ALIXuh08KKc75p5mmglk/ds=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i3trr8Zm/qviZuukloOC43cIzB/tXqiH0CevHvbXXhgPcgvv+i2RH3PjPs8uslMCp RfRPBFPaWVMaKnrJuUjfD+X2wyMshe8kfqMq57MvS6d/VoosUS6JsMO/6JYQDcsXqQ ylLLVB4oZ7dGURlY/EHs5aJao5z/lNpxtgLvZiihmdU9T+Fnby5q0W1q8dEijazUyt cXT9e12jj+YSfbDxBw5FH3NFEzAFCeSqX420h+rltyuSNMCLSu/FHE/CyP3KvB3cwp ET3F5d7v5oRTkUaRZgUDcwWtWu1rQ55hgZJ+konXepmLwYNS3D34J2reXQ2fTuMeWK XtkXfWdh0E2xg== From: Namhyung Kim To: linux-kernel@vger.kernel.org, Mark Rutland Cc: linux-perf-users@vger.kernel.org, leo.yan@linaro.org, suzuki.poulose@arm.com, acme@redhat.com, mike.leach@linaro.org, marcan@marcan.st, maz@kernel.org, john.g.garry@oracle.com, james.clark@arm.com, irogers@google.com, will@kernel.org, tmricht@linux.ibm.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2] perf print-events: make is_event_supported() more robust Date: Mon, 26 Feb 2024 08:20:24 -0800 Message-ID: <170896440860.1919080.16667714946535783711.b4-ty@kernel.org> X-Mailer: git-send-email 2.44.0.rc1.240.g4c46232300-goog In-Reply-To: <20240126145605.1005472-1-mark.rutland@arm.com> References: <20240126145605.1005472-1-mark.rutland@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Fri, 26 Jan 2024 14:56:05 +0000, Mark Rutland wrote: > Currently the perf tool doesn't detect support for extended event types > on Apple M1/M2 systems, and will not auto-expand plain PERF_EVENT_TYPE > hardware events into per-PMU events. This is due to the detection of > extended event types not handling mandatory filters required by the > M1/M2 PMU driver. > > PMU drivers and the core perf_events code can require that > perf_event_attr::exclude_* filters are configured in a specific way and > may reject certain configurations of filters, for example: > > [...] Applied to perf-tools-next, thanks! Best regards, -- Namhyung Kim