Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2305848pxv; Sun, 11 Jul 2021 09:00:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxF7sTJN27ZOAZYuHuaXf+RI8ND/5j3WzRL/3bV7WDW3402IIT9ru0N9+keBdQjFVggB+a1 X-Received: by 2002:a17:906:24c3:: with SMTP id f3mr36443178ejb.145.1626019200013; Sun, 11 Jul 2021 09:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626019200; cv=none; d=google.com; s=arc-20160816; b=zSOcWt4giUUvgbRmPnb5z15+uIXK1DMZjjFLzUrnQV3gJTBaWXRZcP4xZSMz21WVaN tHqWhgLYmRmNvwUi8Ry8gaf6cpsOlmbfOrAhP38Y9HrR9ELOnyV6qIrOslROcjLLw2fn l6XFZ1M1NHJzcQpGnLnbwHOTjs+rFORsbR0PQRka+F1dUTM6seLmpNKdP+jloQIR6jvt LSznhzmaKa3oeStIC46MkVh3MjExVHoY2aJP52eTqkrqDFc14amwsGAIs9CBhe2clERR xvNR05G4j4wK8d/A62CjJhmVXG7IpxDf5451CZlo/QSJGqmyZ1YNiyVflCoPhwksFrps vJYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SKfILU5fGcQ+5nFo5rpOMOntVrIR33CXwNVLLxwUus4=; b=CQyNfWIaSWKfrr4pZN4WFeveRjTzNEmjfAVmHyTsFEwk/hJy5cKm6aUt8cuWd/BkD2 yPP5Sx1E0sszlKcP9U2drqFAIWc+39uxUCu/rJB1Cepl84Q0fk95TATxW8D6qf/9S0WQ agm3PRy65KsDfXRUrw0T9UQZjwDMP0UlU6vVKucr/kkIxXTHNF61i7ojwKJlEg6JhzdA dIAj+A33l0GH3/Z6MYWci48KPB8jnUW0MAlj5tQ3TMyAyVeuepP/bZSzG+cELTkv0hL/ E0H19fIa031fkcTpYnpYTy+B4EKeUFF+K4T+YiH03xjLgjFivG/oJ7Y7+BtPIz/3yhAc TWcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eZu7Iczm; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w12si13596088edd.491.2021.07.11.08.59.37; Sun, 11 Jul 2021 09:00:00 -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=@redhat.com header.s=mimecast20190719 header.b=eZu7Iczm; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236261AbhGKPzm (ORCPT + 99 others); Sun, 11 Jul 2021 11:55:42 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:29895 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236258AbhGKPzm (ORCPT ); Sun, 11 Jul 2021 11:55:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626018774; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SKfILU5fGcQ+5nFo5rpOMOntVrIR33CXwNVLLxwUus4=; b=eZu7IczmHZQ9EbwBoKfydx0DuQflMsHlXus3Iy0ckzh6oT0PTflXvpWsGJ4nZFpDnoW84P ahcU+XtZ2XkbFNH3InhP2tQ+kKv8Mzyc94p8ZK0sHAXM+30tXC+B/GmZwrf2TCoSBL61W2 yBFohm+Dx+hB0cmaVx8LIbeuLsqRQ38= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-453-si7MGkQXMA-1AsCwO3LOUA-1; Sun, 11 Jul 2021 11:52:53 -0400 X-MC-Unique: si7MGkQXMA-1AsCwO3LOUA-1 Received: by mail-ed1-f71.google.com with SMTP id ee46-20020a056402292eb02903a1187e547cso5704414edb.0 for ; Sun, 11 Jul 2021 08:52:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=SKfILU5fGcQ+5nFo5rpOMOntVrIR33CXwNVLLxwUus4=; b=MnAFuEfkxHono2BNQXSENhkyUU2Pd1mValzXZnDf5ntX/Ng/Dt7S6r+k5+vKcRinXK EGnsPP6l4MzaVwQ39viEgEhBPQsrK4Qw0TElzhb2PYBirxwZr1HlgkitW5aO8anJs6dp RpAFdwG/rAkcyGBf2iazb7oaXFL7RNsvVxWL7nBslaiMg63qY51kJ+j5v0IhCfnO9N9f pi/yWQ65YYF4qRZRH/+Azn82F3rB8NIoKI7V388zWzfzT92utOqutFuOtj1xiwf7Pwar FlgAzD7m0OHLHEDlGAJJdIYGJ2h+aw9jzKg4HpMVgzlFDE9d8bxoMrd8SqESlF1wPqQd DfFw== X-Gm-Message-State: AOAM530oK24RsUHfiMocbBw0XKOg0xZdEKYrIe244lcof8UhSbwdhwKx sFLRa5jjxr3TP6UZLpjrN9Eux2+cFVbM7lQkQYzSLiDzoCLbLtByPE/uN/X0BcP88he9TaqFP1y yGQEn6VDud2p6PE+AMVTXKvep X-Received: by 2002:a17:906:30d0:: with SMTP id b16mr49175250ejb.495.1626018772094; Sun, 11 Jul 2021 08:52:52 -0700 (PDT) X-Received: by 2002:a17:906:30d0:: with SMTP id b16mr49175240ejb.495.1626018771902; Sun, 11 Jul 2021 08:52:51 -0700 (PDT) Received: from krava ([5.171.249.81]) by smtp.gmail.com with ESMTPSA id lc25sm1728424ejc.41.2021.07.11.08.52.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jul 2021 08:52:51 -0700 (PDT) Date: Sun, 11 Jul 2021 17:52:48 +0200 From: Jiri Olsa To: Jin Yao Cc: acme@kernel.org, jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, Linux-kernel@vger.kernel.org, ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com Subject: Re: [PATCH v2 0/4] perf tool: Skip invalid hybrid PMU Message-ID: References: <20210708013701.20347-1-yao.jin@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210708013701.20347-1-yao.jin@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 08, 2021 at 09:36:57AM +0800, Jin Yao wrote: > On hybrid platform, such as Alderlake, if atom CPUs are offlined, > the kernel still exports the sysfs path '/sys/devices/cpu_atom/' for > 'cpu_atom' pmu but the file '/sys/devices/cpu_atom/cpus' is empty, > which indicates this is an invalid pmu. So we need to check and skip > the invalid hybrid pmu. > > Also we need to update some perf test cases for core-only system. > > Jin Yao (4): > perf pmu: Skip invalid hybrid pmu > perf tests: Fix 'Parse event definition strings' on core-only system > perf tests: Fix 'Roundtrip evsel->name' on core-only system > perf tests: Fix 'Convert perf time to TSC' on core-only system Acked-by: Jiri Olsa thanks, jirka > > tools/perf/tests/evsel-roundtrip-name.c | 3 ++- > tools/perf/tests/parse-events.c | 16 ++++++++++------ > tools/perf/tests/perf-time-to-tsc.c | 3 ++- > tools/perf/util/pmu.c | 9 ++++++++- > 4 files changed, 22 insertions(+), 9 deletions(-) > > -- > 2.17.1 >