Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4395570ybp; Mon, 7 Oct 2019 07:53:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkkC6NzKT3WbLwnCz2Pc17654jU7kmF4lvA3akzFFwaUaAJ91ex9Pgwxet4pTBiQ1ghJVP X-Received: by 2002:a17:906:8c8:: with SMTP id o8mr24601871eje.56.1570460024402; Mon, 07 Oct 2019 07:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570460024; cv=none; d=google.com; s=arc-20160816; b=N8jR9iW4ZA59zTFTzhcLKOO/fUGkNQmXLIhfZLQYBTCs50y7t8cHlArwok4BAgUciL Wfrb9txmVylHCbBKZTnW1/trXbzekUK1eBByNa8N5pc6Pkv+vyz0fFOpTQ6DOdFNeFNk sYK+r2XuUtthIufe6wh6o11db7a9EtX4GXl8pCebzw7gjikdtwK5Kfxe0fv67KC/3l0a GVGJUQmzx82K7nFcLaJs7s2ymr6ZAW2946v+XzL4PCSY5pKaAUUBwREOpCfWaEZ2W2xk n+qrjNyr1vypvmE6iIi2yEhOrYz2CJ/jlc3+ff7gmAriMJVLUPk/BWQewKBQimVkyhFl sXxQ== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=WGjNshnIcyBFdr0e+PqCyxIgycUtkqdoJ11BDxoUvB0=; b=GdXelYFDfcstCrfo8tgvsRviOvKrAddAiO9m5iayk1tQuyAEPahaf23S2cRNtJWOqB 3FoqBsW2n0fRrL3lsAF4WnfvYc4p0wGtpEpr/3Su6kJts0me99CxlBPmalLF2Hte8chq KYPxHGVKiGodwijrBLfqX0pc3IX2a0Q8FRSziUQgiPVrsdnycxizmTNtLQ/EtGB379KL khIWTw9QD9/bR/TWFYK0xliL+G3mD0iLh8Zg3fXB2MgSQMrMigewJvz4Co/tNbNxvJ8C IMB5AmeRk9St3Z6llfRW7n+FG/LsTrCqQffg69c03DpSg3Rgiyj7Dif116qtVEM8Bba4 n4kg== ARC-Authentication-Results: i=1; mx.google.com; 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 r3si5919761ejs.439.2019.10.07.07.53.20; Mon, 07 Oct 2019 07:53:44 -0700 (PDT) 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; 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 S1728132AbfJGOtY (ORCPT + 99 others); Mon, 7 Oct 2019 10:49:24 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:44225 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727589AbfJGOtY (ORCPT ); Mon, 7 Oct 2019 10:49:24 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iHUK5-0005wT-M0; Mon, 07 Oct 2019 16:49:17 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 594431C08B0; Mon, 7 Oct 2019 16:49:15 +0200 (CEST) Date: Mon, 07 Oct 2019 14:49:15 -0000 From: "tip-bot2 for Andi Kleen" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/urgent] perf jevents: Fix period for Intel fixed counters Cc: Andi Kleen , Jiri Olsa , Arnaldo Carvalho de Melo , Ingo Molnar , Borislav Petkov , linux-kernel@vger.kernel.org In-Reply-To: <20190927233546.11533-2-andi@firstfloor.org> References: <20190927233546.11533-2-andi@firstfloor.org> MIME-Version: 1.0 Message-ID: <157045975531.9978.3214758589104443413.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/urgent branch of tip: Commit-ID: 6bdfd9f118bd59cf0f85d3bf4b72b586adea17c1 Gitweb: https://git.kernel.org/tip/6bdfd9f118bd59cf0f85d3bf4b72b586adea17c1 Author: Andi Kleen AuthorDate: Fri, 27 Sep 2019 16:35:45 -07:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Mon, 30 Sep 2019 17:29:53 -03:00 perf jevents: Fix period for Intel fixed counters 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 --- 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 9e37287..e283726 100644 --- a/tools/perf/pmu-events/jevents.c +++ b/tools/perf/pmu-events/jevents.c @@ -450,12 +450,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}, };