Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1725061lqg; Mon, 4 Mar 2024 01:34:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU4KO/v6omgLYxrdxUNfR924iK+Pki1fTSZGMerUWiymfZYfNoNQhJ7WAoA6VS333Qbjgkrm1PAgKYIDfafotUHkcUi9/CDKhIJel4VGQ== X-Google-Smtp-Source: AGHT+IGtS8i9U91xaPGarVSe9ybvOGsinpg229wsbRzMLvB8O1X0kMHAzF8M6/TKxMNR73YnhoNm X-Received: by 2002:a17:90a:17cb:b0:299:3511:1554 with SMTP id q69-20020a17090a17cb00b0029935111554mr6057028pja.40.1709544857212; Mon, 04 Mar 2024 01:34:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709544857; cv=pass; d=google.com; s=arc-20160816; b=nTQtxSngrC8PhdMvFrCK5r7gN5Gb2G+CLzgh8hYvxJ8Es8CSNdqPIL/FTeykRfUfHf DBCO7D+o+5MdpwBEb8XI2gClt+WdyEWmSCp0ibZc/KpHEn0sxX9+ylaJQKr6OxaxW8aZ NXye2lXOoSPblWjEdTWDgKdXuGnaUcslCXEqcyXziXdY+2gR3Q7yp6pUZbCN1FVKcKv9 IepQQs5byxRYFDUQLDVopPv56n3F80DGJX0+r2EKdNA0cgzh4Yg4I9v8pzafVLGUnFdR vh2SlAv7VQCTmoZONHB2YZ0g4RNAM8uTMqzcnj3eo1fytx7WF84vliu7IvZ+kkEFK+h+ WQTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=qRvE0XbK1/kDC9AAENBxOiaQJ5uHt4DruUYM7y+7LN8=; fh=505i8ok0LIe2qaMTKeJQDFsLySuedQs/XBtkLh0UTmA=; b=IxfzpSKaIrcizgckuCJxsaIYlzKZRi2qdemumyDxXDjetQR3EPE2rPvxB4NmlpiLAv QwpHfzoV5qoTbgkaKYhchjBbiaeWewJyOAt7KaEpIqiqaaXCG0Iw0v765m5TBt73Cg8W y79k/QkCOlYZsUkH82n71H2ILQt5uAd3iN5q3EHYCihG8boxR54lOZBc6311lpFwnvNK avhHjjyPLm+WZR4PJqSvmTWa9tXUBmV/UX1JvC6jx3QlnJ+S93xbe4XKoL/fbSU2mFt6 BQN8d4qmQlh1+CMfHiRC8Zo6Nfwur3WftbUujecfyCdWy5zYbWJI/0XZCvx/i4ZsCgpE U5jg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-90332-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90332-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id pi10-20020a17090b1e4a00b002997d3984e7si8268932pjb.100.2024.03.04.01.34.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 01:34:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90332-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-90332-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90332-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 C2CA1281289 for ; Mon, 4 Mar 2024 09:34:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6362F20323; Mon, 4 Mar 2024 09:34:11 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36C541B814; Mon, 4 Mar 2024 09:34:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709544850; cv=none; b=WUQRmjYceLixrOwhF1Dd1MkjbMUFOdAlVN9FyQHMsmH0E2XRJYRlvwh13DgsKLpzOCQ3Cur9PX2edqxVAl9KsIYUvYJgYorwfUP4OGfJUk9rgMjxas9GaZqzQfdTJ4b/KnYeokBpyY/9b0HC+4BDcN8zI1aGFXgHccPLHBv5xTY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709544850; c=relaxed/simple; bh=yOvvdN7W5EY5FGe34phRMuayj1yK5cLQ6X6H/fHvR+o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PLc6wg/9vB/wMm5Faux/GHAdkwbplUEyZylXS3SEBOkM9ZNzMz+jZwe6F6sxCSCr6a0ZLwbDJSpndqpIF58uraWLBGsP9LRFaQ/9S5fpR0I2VIt1yUtZQ4J9jfK7G92QEAUQqk8HHAJyetee/hpHGjF4Jtmn6S7jwO3BJhBggAk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 64FDD1FB; Mon, 4 Mar 2024 01:34:44 -0800 (PST) Received: from FVFF77S0Q05N (unknown [10.57.69.81]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1FB5A3F762; Mon, 4 Mar 2024 01:34:05 -0800 (PST) Date: Mon, 4 Mar 2024 09:34:03 +0000 From: Mark Rutland To: "JiaLong.Yang" Cc: Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arch/s390/perf: Register cpumf_pmu with type = PERF_TYPE_RAW Message-ID: References: <20240304022701.7362-1-jialong.yang@shingroup.cn> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240304022701.7362-1-jialong.yang@shingroup.cn> On Mon, Mar 04, 2024 at 10:27:01AM +0800, JiaLong.Yang wrote: > The struct pmu cpumf_pmu has handled generic events. So it need some > flags to tell core this thing. It's not necessary to register as PERF_TYPE_RAW in order to handle raw events, and PERF_TYPE_RAW is not a flag. Have you encountered a functional problem, or was this found by inspection? Mark. > Signed-off-by: JiaLong.Yang > --- > arch/s390/kernel/perf_cpum_cf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/s390/kernel/perf_cpum_cf.c b/arch/s390/kernel/perf_cpum_cf.c > index 41ed6e0f0a2a..6ba36cf50091 100644 > --- a/arch/s390/kernel/perf_cpum_cf.c > +++ b/arch/s390/kernel/perf_cpum_cf.c > @@ -1213,7 +1213,7 @@ static int __init cpumf_pmu_init(void) > debug_register_view(cf_dbg, &debug_sprintf_view); > > cpumf_pmu.attr_groups = cpumf_cf_event_group(); > - rc = perf_pmu_register(&cpumf_pmu, "cpum_cf", -1); > + rc = perf_pmu_register(&cpumf_pmu, "cpum_cf", PERF_TYPE_RAW); > if (rc) { > pr_err("Registering the cpum_cf PMU failed with rc=%i\n", rc); > goto out2; > -- > 2.25.1 > >