Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9076529pxu; Mon, 28 Dec 2020 06:05:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyifCwOesChunEBEJh7+8Rj5sH0h4BLXJDuWkwO3Gt5juJyY8CqZzHEfTZGelQoTKe3FFba X-Received: by 2002:a17:906:c408:: with SMTP id u8mr41351315ejz.364.1609164355212; Mon, 28 Dec 2020 06:05:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609164355; cv=none; d=google.com; s=arc-20160816; b=UkUA8wQOBhqQnq/zLou0rtGU5wRY25kxrJZEAxxdQEUL66NaYKjo2LNEhP6RnqUOG1 KPUeh6Gve0DD913PkSTufrLx20etyfy9P325VFy7HU+iJ9d8LbyDly3t8v6poUllxKr1 AZy+gLxL935yONZa1p7XUafJzaNEK/fGRtTjH2B0e9r7IxP/zCWFe6G1dwd7bTXgjJDv XiGwnTr6XUUG60LpsBMQt/Nz4LayjakDb0QHGZnJCoXkaM8ll9cHLqWR+3vX6FaFFL6u l8khx0bP1OEg59MZzAm3W054MI7ndJUbLqZ1m0Ks8YhnucZ++VzZIZryaR+XPD+pnMg/ wPCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=arRO+6VBu5Gz+06CTX4kZWz/itWd9UnydJNeeUBeqDI=; b=ISJL/zh1ZfJvHsIfdzWYaOTQU9xw7i8iQqJPbRM8U1RV9tEt7kDSHtHMIQH78umn2O 2ajiP+pOupyM1Nw+vhBl8dm0LOAZdCsNMYsrq++Ajn8XowoqEmCHS88UW6m86YY9UqgR WQU8RdUoDKbSNWaMMGwG0IwKsbq+Jn2NP5R55liwwie+y4OpSOmCErQIoOdUN4vsCgQo dPcDtguZ+t2jKPcENb/Yjcaqxf0wolWY+JG6WW5xuZsqaNmxDS0Xmj7Ytn37q8vas/zS WGLGWuS/zqMJJc4V658Jxl+ZcvybprW+yMRpuQa1k9Nf0jW2/NQzra22Qp3JBjhgYnAG +2EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=C+s84Kab; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gf2si12741553ejb.154.2020.12.28.06.05.31; Mon, 28 Dec 2020 06:05:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=C+s84Kab; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436899AbgL1OCf (ORCPT + 99 others); Mon, 28 Dec 2020 09:02:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:35988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436864AbgL1OC2 (ORCPT ); Mon, 28 Dec 2020 09:02:28 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8427B2063A; Mon, 28 Dec 2020 14:02:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164133; bh=LWlCUf+9Df1l7rhGlqZvJjun2Bx0SfnfJ9nh7LUzpuo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C+s84KabQg7eHNJK7jGd02Nmy6hCAmXfAY0v8J+JWTLwOMlcm0qAa/L0378Xav40p 3Q1UrU+nvZNV2ioR0sXpISDU9zCxbHBg+2zCRzpgoVxz++uFlSKhIzgkLghy0/WxBK KqC7KgQV/g/NWexLpcb7dJfsQK/Sby+LOu2WyGug= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Namhyung Kim , Ian Rogers , Alexander Shishkin , Andi Kleen , Jiri Olsa , Mark Rutland , Peter Zijlstra , Stephane Eranian , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 5.10 045/717] perf test: Use generic event for expand_libpfm_events() Date: Mon, 28 Dec 2020 13:40:43 +0100 Message-Id: <20201228125023.146839946@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Namhyung Kim [ Upstream commit 9b0a7836359443227c9af101f7aea8412e739458 ] I found that the UNHALTED_CORE_CYCLES event is only available in the Intel machines and it makes other vendors/archs fail on the test. As libpfm4 can parse the generic events like cycles, let's use them. Fixes: 40b74c30ffb9 ("perf test: Add expand cgroup event test") Signed-off-by: Namhyung Kim Acked-by: Ian Rogers Cc: Alexander Shishkin Cc: Andi Kleen Cc: Jiri Olsa Cc: Mark Rutland Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lore.kernel.org/lkml/20201027072855.655449-1-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/perf/tests/expand-cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/expand-cgroup.c b/tools/perf/tests/expand-cgroup.c index d5771e4d094f8..4c59f3ae438fc 100644 --- a/tools/perf/tests/expand-cgroup.c +++ b/tools/perf/tests/expand-cgroup.c @@ -145,7 +145,7 @@ static int expand_libpfm_events(void) int ret; struct evlist *evlist; struct rblist metric_events; - const char event_str[] = "UNHALTED_CORE_CYCLES"; + const char event_str[] = "CYCLES"; struct option opt = { .value = &evlist, }; -- 2.27.0