Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp414076pxx; Mon, 26 Oct 2020 11:20:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/cvGMZd2y8IQPVSFyjliccvnT685JlFKHcsku+Rjyn+YHHlz0iRUWq3s4aYwmOqUI11AK X-Received: by 2002:aa7:d2d5:: with SMTP id k21mr16160989edr.62.1603736439075; Mon, 26 Oct 2020 11:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603736439; cv=none; d=google.com; s=arc-20160816; b=cPotcF2FquwIapxmtNfC2TGkT1oKZZ/Zt+G9JvFly+g2VLyjOtcb5IqO1rfKd/GAKq T8Ts9rMHieyGvLLuMwUMSCikqP9EuWi9U9zJhIEtMVSZ697qbPXxi5SzEfscIJj/iGEZ bMe58fKwiKw34t1x8kCKWyGvj6LS9qScomzQlRSRVVXOvigKyEhco9WxXFni6qkj7tse Wy2cwyHFlsZaE6KI5aVz6frib+dN/hxypg2PBeofSlMyQViQxbWLE1Hl1k4GtRupII6Q mLGlsATi9s6WeQh7QJbLzxzqs7A9FbR58ysttoy4jwku1dQGzl3cKgZO0O0SEWKPwGed BaRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Y8KnB6WQ6hnwXYvVwKUwP7/9fw5cwUH/Ducej8yDecI=; b=d36ampPeUYk8dd9HdpGfDJb+lUnd3fjbaR+xVxyUVkjpVWtxWq4SRA0k3R2PVYScs5 aMYS5oCdoG4GcibAdW7Kaitz3edFPofUdtiP+OfMdUYIBwMI4oDewvxhRwaZuYT1hHMy wAbgdU4PTyhcDQRgrWy7hZ4zI6qLx1Mzm6Cg+5ouIqLMkjWafohQWBHOuWyluOlhocFr VUvEEcGdAfqK+V0eze1OZXuBu3wqGT3XeIVcoDZBlt0+RFDZ8A8U/c2HW7BuXu4kE2S9 LLidFQ48wyJB+MMUrRjnoyVvWdZqlrKgt9MdOvqwLCZJCqT3klE+NYM+Gldg5Is1kGyC tjAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="hx/9mALB"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n13si7264906edy.429.2020.10.26.11.20.17; Mon, 26 Oct 2020 11:20:39 -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=@google.com header.s=20161025 header.b="hx/9mALB"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1784278AbgJZPkz (ORCPT + 99 others); Mon, 26 Oct 2020 11:40:55 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35605 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1784274AbgJZPky (ORCPT ); Mon, 26 Oct 2020 11:40:54 -0400 Received: by mail-wr1-f67.google.com with SMTP id n15so13177768wrq.2 for ; Mon, 26 Oct 2020 08:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Y8KnB6WQ6hnwXYvVwKUwP7/9fw5cwUH/Ducej8yDecI=; b=hx/9mALBPLHrmx+V9KVUGZuTU552IL81yLtuZLv9sSXLFZqLZQOw/dCDP4uToCR+gp pzIMoJRYa904I9opdv3PA8bQ4x7pbUyCLA1JW32PiNhsctGx9Est1XDuMLgvRJzpa8Ni 0ZGLYyRBnlm5f5uj/eCh1aKu0xUyKbAVhDADaZzDJ9nj4rE9/SI9/HS8O9rgK4IeRETc X9StrO3z2IMv8kN+0qWgM8qd6US4D0I/3aoPD72cjez6ofBu02brfKQb41x/XqC57OtN YhxMGzx1rC/kc16XivYMxGGkTJtMwxTUzjeQZeBQqaJ6TUtBTzadm36KI6Jn97GQYRKL nN+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Y8KnB6WQ6hnwXYvVwKUwP7/9fw5cwUH/Ducej8yDecI=; b=pfXxD2HiYvPxiWipf1qRX806a9EOTW8kgyn9Gs0n0ZuEY6r221gVsvO2y9Ge8gkrBo CPinQb9dk7IaWglzAtK4zY4rx2caYyLA2PyYH4saCkk4k1bTuUHu4czjv4O0TJ3pIfZz PZoxrtQidg1SyLwsvsWr3z57z/FDugVGIS3P1G9IMmKfY8UrofMdTqR0PWD4GusIv2oK YbbRRuSc9D0hk59dWmKJXQIHaOlU7wRAAGRtd/2LZxvYRwIQJNWKCUq9jEuFUxsLvjMH LOzuo0JjybWXvAjoXSWuHzfZRom5O2eFox7cZnF6ayJcxcemdRnymDQ7GrpGG0UbS+5S B00Q== X-Gm-Message-State: AOAM530xDZdyCXE2M00GhOW9eqRncYVlQgWKkoTAdOzPg4VWbBIt5jbk 83Vi7msh9pIPNURxpZu9KajOZWd92BKMsd4JAGhIWg== X-Received: by 2002:adf:b641:: with SMTP id i1mr17840787wre.376.1603726851498; Mon, 26 Oct 2020 08:40:51 -0700 (PDT) MIME-Version: 1.0 References: <20201024025918.453431-1-namhyung@kernel.org> In-Reply-To: <20201024025918.453431-1-namhyung@kernel.org> From: Ian Rogers Date: Mon, 26 Oct 2020 08:40:39 -0700 Message-ID: Subject: Re: [PATCH 1/2] perf test: Use generic event for expand_libpfm_events() To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Ingo Molnar , Peter Zijlstra , Mark Rutland , Alexander Shishkin , LKML , Stephane Eranian , Andi Kleen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 23, 2020 at 7:59 PM Namhyung Kim wrote: > > 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 Thanks, Ian > --- > 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 >