Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1589030lqg; Sun, 3 Mar 2024 18:25:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVjpSMYZG8Dng3XjPPFvJpY+RqxEeL6fhisNu0x5rUq25DGaFMSY4mISIfcfSGIX+3Q1ivdKqGVKIFiGoTpdjH89Fe/TNcH5k9U5qapBg== X-Google-Smtp-Source: AGHT+IFdISZTvJM20fcoXmYNsZDswpr8VDdRrH64hTjYV7HbKKsiowUyexJL+UluPJzVlIHNlS/M X-Received: by 2002:a05:6a20:7354:b0:1a1:4a22:59a2 with SMTP id v20-20020a056a20735400b001a14a2259a2mr6253557pzc.34.1709519155196; Sun, 03 Mar 2024 18:25:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709519155; cv=pass; d=google.com; s=arc-20160816; b=lLLFDlmh4uZafKjhN5SkEQFYMAKrbcZQCM+Yu8Qn8Egk0Y+Ydfh/CnEdXFT/srlGJv aHsW5y1yYuLkvVombuebRyu2fpJ09iIREajMiKlfY70RDJS/xiNlO0oQa4NsQk2brkZq gUoNss4fYAObF4dCpLOR4jyAXeJHsifhszFOiSTv++L02KbGtvfrbtFQ2VayBnYS9wPe ImtU+5RoJkYuUqO5VQMlEBqt/3MF+CLjVtHqJcJvrp9eQs0RFUVKcMqwB8tfr1W+vvSt cPxIIkOk5UaXy6ayGhHevAmwQ9LUJxDwuGfyNooAYtAgP/HScCMsHPWQwXNJHcit8VqX b2Eg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=UkRsUgGii058Zku0oUz6nKPjdMiBuBdN4z+CWQewbac=; fh=hdaYe9wUo8rn9r0veLHjudK9kI5XtyMac1sJX2yccN0=; b=RI82+/+8bmSPD1Ycl3CY6MJNZOZQQGrZ6CyFXg+4zshSDlHrNruX5bgA9TzMNiG7Rx pXgx1YQijL7Pa9Q0w8cgBNR+FOMtAkMWUVnCGVP900vC6MM5hYeuBloSitgs3tRC8+Vm V6ciIq3DofDc1fXRh9o2mh1ljvgd7xWQ5Mtar1k5QDy/12hhBC/KCGJTOG+3rqY0A1Fr et0p7fK7EhJ4t5sC7YQ1YW/BDHLQmOxK8t8XboRmDCkdlNg8zi06y/uv3YAdLvs1/rwT brdZmDU1WzCeeSIEQE6TI/pHak7qto9QIay3u1LO2e7nstMpXGzoYGkV2a0xQrT/yV5M Zu0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-89978-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89978-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id mc13-20020a1709032b0d00b001d91df66e39si7671168plb.210.2024.03.03.18.25.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 18:25:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89978-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-89978-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89978-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4F103B20CFF for ; Mon, 4 Mar 2024 02:25:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08A1E17F5; Mon, 4 Mar 2024 02:25:44 +0000 (UTC) Received: from smtpbgau1.qq.com (smtpbgau1.qq.com [54.206.16.166]) (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 531D517CE; Mon, 4 Mar 2024 02:25:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.206.16.166 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709519143; cv=none; b=S18p1k9EFXL5Q/kCK65C3+jhM2xMeaWamAM+0Q1FQIOl7FaKVsSlclUWtNNBAEwPKP6MFIBzHLbS7hAVmaHbLl8+cxZElAc9VxWIFZ+h/MMhNKMZcNCt51G8PvjF8AxKiDPz+bAU4z52fxOTXdxsPauF91xCStn8mKc2+2W2aUo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709519143; c=relaxed/simple; bh=BsmGAfh2XqRzr5EfNwegTjuxW7ujt5apB8OJ8rltSyo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=HFqfjzTOr1won/2czc2hctlStkfvdWTczvQav54anghUBBZU1osWjUFa1Oq/crOKeTyprKdfp7dmW5Y+1j0VLRx+GN+8Nu5P3OuqQJfDr1ly3vP4jud3dfvWMCV3LVd67YXhyRnjZiKYw0Y+yBiUy9Bemltm1rxMV5MzoqQe5AA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn; spf=pass smtp.mailfrom=shingroup.cn; arc=none smtp.client-ip=54.206.16.166 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shingroup.cn X-QQ-mid: bizesmtp68t1709519095t5e6k6ao X-QQ-Originating-IP: XoKMA9p+o3jz8qsYVX+Yzx/2I8JC/G5QjVp9P9mWv90= Received: from HX01040022.powercore.com.cn ( [223.112.234.130]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 04 Mar 2024 10:24:53 +0800 (CST) X-QQ-SSF: 01400000000000B0B000000A0000000 X-QQ-FEAT: rZJGTgY0+YOaF7HxPHfzhYZlLNhnxkQc61joKwp2xIXrrxD4EkthjJm4+Sr7X m+Eqn5anMU2dxBalh2rqMW9L9XywopVqCy/HevMq340Kir4qDIrKdHxgSEAtsvFinmwZtrm 1HF5zqKP6Y6jKYTdxf+YfxCol4pykcaO21XZwSbsZwL+K1nyXfD8vcGQZiGv4+5tttg5NqZ TD84bTQcP/cJQq6G5ThFevWg0xp7mTilYjr1r4qaFE50PoK+5883yQU56gsTAlYx7im36vT Zu/lYPG6WiIZNwK86cavuLYsENk0hJkbY5DC3B4w7b0adl1O/dhTtwvSSZWKD8hwY41mTKh HIX/FafWR7mtcrsobfnjSJg7UbACisjcV0E8rhTZfASBAn/cLnanMykI55+0w== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 4045340637394204571 From: "JiaLong.Yang" To: Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle Cc: "JiaLong.Yang" , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arch/s390/perf: Register cpumf_pmu with type = PERF_TYPE_RAW Date: Mon, 4 Mar 2024 10:27:01 +0800 Message-Id: <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-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:shingroup.cn:qybglogicsvrgz:qybglogicsvrgz6a-1 The struct pmu cpumf_pmu has handled generic events. So it need some flags to tell core this thing. 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