Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1203813pxu; Sat, 24 Oct 2020 03:53:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXAd3VAQXFYRq/WPK5ioS4XLLPnKRXXC5m/yRY5F8SNTVkqOHP62UN4slsTsBDyIshHBY5 X-Received: by 2002:a17:906:d78d:: with SMTP id pj13mr3175066ejb.36.1603536814257; Sat, 24 Oct 2020 03:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603536814; cv=none; d=google.com; s=arc-20160816; b=eSTeInMXfPKOyBSvv3Rtz6lHD8Z9ymaYkd4qqM21IIeg82D4ryPlgUxQIbXTUfeesr ztTSL8wOy/6KCcrSE1zVXZyPdHzquCnaefMEXrfB9g3tw7KIgg7nRk3+R9XuSk8hRrCJ xzfISvRMzTHoWlShWDj61Im0e7VUaGHeqPFcWn6w13jsTSoPJDK1nxctwSnVjKBRIoCA 0pZc/r0nY56/dMJYC9jx3oMEfXoT/8GewYrPVRSyhNacan9G6XJP6wA25udqeIOPrLhw vcSTvoaO/2VpotMGmHO3QDdoiskMgmO63JZQ8eg/jK2ks3+o9Ng4SKtr9LWCO1NIZY3w JdcQ== 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 :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=Qk/Q24uKS39WZNcG5ZV9esraD5KJhyJ79A9IAxWqPQE=; b=GLvHuRhGZVCi+4x4qx25EGdJUojubh7xxG2FoYbITjVS3F8DMCJg7t3cvLVUp8ptSH 6WjwMy267vjSHrDTz3QUiGKBmzmREVeS1CzYC+kYr1KiXYT45PpydjHSh3maDWrvwELZ 6WKz+XB7DFRHqz4+FB0+GSjUC5PwdyvjBDhMHFB6FAfnwezZrQMxS0BgnAi4EsEqYr4c 1HdCfyykx7Wjjn73lpSxZvuwRf7+jlLCFH1EmKjOk+4nfN4quWMNpaMUSiMrAr4OUnd5 W7gaJuo0m1pYP9FqAtr+WkDVO9Qx+CBIoYTFElSvmqQpkUg3JPurDQDdpao1RIDm2dKb pM5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NLcqQNW4; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si2750498ejx.104.2020.10.24.03.53.11; Sat, 24 Oct 2020 03:53:34 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=NLcqQNW4; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759177AbgJXC7Z (ORCPT + 99 others); Fri, 23 Oct 2020 22:59:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759162AbgJXC7Z (ORCPT ); Fri, 23 Oct 2020 22:59:25 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 748E1C0613CE for ; Fri, 23 Oct 2020 19:59:25 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id l18so2758380pgg.0 for ; Fri, 23 Oct 2020 19:59:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Qk/Q24uKS39WZNcG5ZV9esraD5KJhyJ79A9IAxWqPQE=; b=NLcqQNW4WYC8MjUEfwTo4NVcLjlEralTmj3C1BOn/roojvEOdQtSShKL8Hyfw4HEAz UpRO3964oMBXE2Q7bVcWpAEYoNjbCzC3Vyd8jBY7sYqyorZfENICBgojgdMvrlULLx8P 2ruUkKX4vpZL3B/2bF0YCoo8z9kGK/d4s7tobxwZt2C1gu7Y2vb/iJYmqUfTHmpoz1LI SvVmRh1mtj4l380FAL7rv/0U/L2/RZ6d1F90nKwOeGVc8KbpV6NgHJXd345r4kC8fl2B 9vn85WoBVDFfGI4zZ30LcywBlGK+d+CX9+gcP+9jl4WPe2idO92AEhDfRgCWHuKTnVam pvVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=Qk/Q24uKS39WZNcG5ZV9esraD5KJhyJ79A9IAxWqPQE=; b=O8ZTqJsUHG40g86wvbad9aDDEo+trpwE5ILuCHhQJs7N/n1IOIu7jnqcHz4n267wyo Fbt5il91LjoukAPZkw0JlbFgI5FOyKWk18qSNk34FcL0wGDal5x0Hcf8VRFvU0gNEwZu h/Z+2q8uv8AKXcYkrq7dnxS17pXsQt6mTjEy08DDAqLRJ0CyKiGZl4D+IxIVjVvqAeIP 4k7Iop5+7ieaLiXPtfFG66MswX3rFLVyn4aTZqEj4jzyRp5yAaGDTqMUN6ccJ6mAu4ia ibwELwR3mS/Qd6nkE9VGgRfs14nj80U+8sM4n9ORU+h0WwSc5CpjdvEpUWjN7aSrojXk jn8g== X-Gm-Message-State: AOAM530UmIjk6gemDD+p+c2COAuBs3Fvxf6uU8xNRg4+GZCbVi+vI0Sv f141TqiFxx1icFOn1QS54TU= X-Received: by 2002:a63:d442:: with SMTP id i2mr4460485pgj.181.1603508364822; Fri, 23 Oct 2020 19:59:24 -0700 (PDT) Received: from balhae.roam.corp.google.com ([112.159.19.5]) by smtp.gmail.com with ESMTPSA id s10sm4038235pji.7.2020.10.23.19.59.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2020 19:59:24 -0700 (PDT) Sender: Namhyung Kim From: Namhyung Kim To: Arnaldo Carvalho de Melo , Jiri Olsa Cc: Ingo Molnar , Peter Zijlstra , Mark Rutland , Alexander Shishkin , LKML , Stephane Eranian , Andi Kleen , Ian Rogers Subject: [PATCH 1/2] perf test: Use generic event for expand_libpfm_events() Date: Sat, 24 Oct 2020 11:59:17 +0900 Message-Id: <20201024025918.453431-1-namhyung@kernel.org> X-Mailer: git-send-email 2.29.0.rc1.297.gfa9743e501-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 d5771e4d094f..4c59f3ae438f 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.29.0.rc1.297.gfa9743e501-goog