Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4491543ybx; Mon, 4 Nov 2019 14:18:21 -0800 (PST) X-Google-Smtp-Source: APXvYqzLINlF7X3jn0EuW0J6MZ9ZuaTVtf4sDGxz18FY6dAg8N91WAfRzhqsGQGtWwPlrZxmUzbS X-Received: by 2002:aa7:d0c4:: with SMTP id u4mr13592372edo.8.1572905901378; Mon, 04 Nov 2019 14:18:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572905901; cv=none; d=google.com; s=arc-20160816; b=Iq7LaFMTG0tS8ynPSfq0/sYw4hhKCNONrMDpd03Dk0jm6M/Gb7bSQbpmb4JRFF8aba y4ApSWxZPfj1/9pPy8C9dquFoXVTzApBiNpHkihFc29QdcW596Wlax1N9zDpSi7QqsPG gwjiyFpNOLvqDsW8dfhE8Ivp4gC3t+WiN6gu+EFwRSgkQ+z0j7VoaVhVJlb4jWFc5tJj 0HRnlzdXOk9IV0HnEE9ftcT7MSj1uQTM/jPCrxOI9bT09XtMQyS5WHHgeJE+Q14jlIBo 9zjwyNoFECuXUzzuBOyiozCumuEnehSHzSGVLpg7MxEW1OL00gqsbvjSix5RBwv2eXQJ AkIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qmTU/LsyQEOTk+FQQVXo2Dalf0+h/h/CnJlzq2lIlgA=; b=u7hnMJdSzH7B/KaZZ0vxSP8GI8wZAiQCa4BBCbl4zrOWVbVPYn90YXemClmvpnhBSt +P56a5B3hnpNZQzJs392bfOnEFaLMQEWm0wIQbuQ6EuPDSbpAasiUVWz5qsVfSEet/km CTp6jsu6YbOOnPywFsf8aguz75BqEIiTVVH7VBXFD9s5BrpJdseAmMLO+z9sRoEVaIbc NewzPWqzyricp7vAAzhsv2t4v7o5HCMEf26BS/q4w3W1PmM8Z+nYshY8QMSbS1PizTL3 HqtGRJyOnhswgdTZHlnDr9mcGB31pN1fFoOWz/LSpzufk6m2G7odEObNvJkYi++TX6ZV VGNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Sc3G1hzw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck4si5191489ejb.29.2019.11.04.14.17.58; Mon, 04 Nov 2019 14:18:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Sc3G1hzw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389524AbfKDWP0 (ORCPT + 99 others); Mon, 4 Nov 2019 17:15:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:37742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389904AbfKDWGE (ORCPT ); Mon, 4 Nov 2019 17:06:04 -0500 Received: from localhost (6.204-14-84.ripe.coltfrance.com [84.14.204.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6A10B21744; Mon, 4 Nov 2019 22:06:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572905164; bh=9+ICddfZi98XsuN/HkDELNh3ybAfa/RqmjvYrgcKWMY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sc3G1hzwm/Y7xM5SQRXicCoSrI0H8yv2AnOR4+CYJmno18ociCEZzvkpN3zAuwd8t EcaCqd31zt2+bR4rE1JZt2LVQcMbRrVjt8K35eC34ig8Ayyn362XIi0TrJIf3UH8pt Z+w2AO6MAgoQeFj/LvQXSujjEoNkHOQpD8KYYcyM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andi Kleen , Jiri Olsa , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 5.3 012/163] perf jevents: Fix period for Intel fixed counters Date: Mon, 4 Nov 2019 22:43:22 +0100 Message-Id: <20191104212141.364499073@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191104212140.046021995@linuxfoundation.org> References: <20191104212140.046021995@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andi Kleen [ Upstream commit 6bdfd9f118bd59cf0f85d3bf4b72b586adea17c1 ] The Intel fixed counters use a special table to override the JSON information. During this override the period information from the JSON file got dropped, which results in inst_retired.any and similar running with frequency mode instead of a period. Just specify the expected period in the table. Signed-off-by: Andi Kleen Cc: Jiri Olsa Link: http://lore.kernel.org/lkml/20190927233546.11533-2-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/perf/pmu-events/jevents.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c index d413761621b09..fa85e33762f72 100644 --- a/tools/perf/pmu-events/jevents.c +++ b/tools/perf/pmu-events/jevents.c @@ -449,12 +449,12 @@ static struct fixed { const char *name; const char *event; } fixed[] = { - { "inst_retired.any", "event=0xc0" }, - { "inst_retired.any_p", "event=0xc0" }, - { "cpu_clk_unhalted.ref", "event=0x0,umask=0x03" }, - { "cpu_clk_unhalted.thread", "event=0x3c" }, - { "cpu_clk_unhalted.core", "event=0x3c" }, - { "cpu_clk_unhalted.thread_any", "event=0x3c,any=1" }, + { "inst_retired.any", "event=0xc0,period=2000003" }, + { "inst_retired.any_p", "event=0xc0,period=2000003" }, + { "cpu_clk_unhalted.ref", "event=0x0,umask=0x03,period=2000003" }, + { "cpu_clk_unhalted.thread", "event=0x3c,period=2000003" }, + { "cpu_clk_unhalted.core", "event=0x3c,period=2000003" }, + { "cpu_clk_unhalted.thread_any", "event=0x3c,any=1,period=2000003" }, { NULL, NULL}, }; -- 2.20.1