Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp243502pxb; Sat, 18 Sep 2021 01:20:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUl5SuER0nOmFZGPlqrf+ox/2oObvfwLHU+AnfN3Rqh/Rch+9LmCURf4Z32AnRo1GaSeFe X-Received: by 2002:a17:906:180a:: with SMTP id v10mr17119611eje.112.1631953249496; Sat, 18 Sep 2021 01:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631953249; cv=none; d=google.com; s=arc-20160816; b=XJuJkorPZkMa7TqRpcV84dOOkyQA23pKilloMo9bjq6IlMsHzVs3vXbpzyPPOCG71v IVlORqRiplMw6jYHaOUAptq0IbvMQfL5imvwsKf9RkVmP8ERnBdQO9eZP+JwnvBKhTNt zVHjIdghvsgxnHm2Zv2VvN850yEBKVaBK4pemztHvcizcyvqLcU7WByc5o1Nz+VnMdYM gjzY6eexRJNUflCeqHME+KjADMygj2UVTYEupMbBUT+avASVHgE8T1tx63QaT3PD/0n4 6uVtZRX/l6iNSgwn4bNaOGZ5zE4f/pUEysjMRElVWHRG6ToMKKFP7WGEqSjZG9Qg7xq3 P9Yw== 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=0utUDHU5p18JMyukMfxcGrVkMwkedcIXc7VizY5R+P8=; b=jLL8FlSGXNKJi0NOee20Lq8wBd4c/TQGbTnN10EtnJHBMdfMhmP6vC3v3MSFWQlnuZ bESXHR/h/8pFlBQEjqelGCfEIz6lMkpvGwcs4cewNvbizFZ3jq8iNfke1zZIgR2pn1jA BXsaMI87B9cBz+uRVfBgThue4efg1ygLFTvDvZg8yr38XJuoa2n5a3bp1guyRDvlcvCN zSIW/6ADrX9x+bz5hb+FQFqZ3iYsUUNRWpTJ776mwALXxD2inLJ/iMkFwCSg2kXjyqwO ClofNutqUwzBvHCkeVj0Cic/OhZ+RtHE1HPIBxnjF1ZolTy88Z+dTNxgj626V9zMsB3H z15Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=W6l7KgDG; 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 o8si11253336ejj.94.2021.09.18.01.20.23; Sat, 18 Sep 2021 01:20:49 -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=20210112 header.b=W6l7KgDG; 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 S241035AbhIQTSM (ORCPT + 99 others); Fri, 17 Sep 2021 15:18:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbhIQTSM (ORCPT ); Fri, 17 Sep 2021 15:18:12 -0400 Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6FF8C061574 for ; Fri, 17 Sep 2021 12:16:49 -0700 (PDT) Received: by mail-il1-x12b.google.com with SMTP id d11so7468621ilc.8 for ; Fri, 17 Sep 2021 12:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0utUDHU5p18JMyukMfxcGrVkMwkedcIXc7VizY5R+P8=; b=W6l7KgDGXz2lMw4Pq3SmZRzZhi+sOvLppPrrQvcigEMP4RtEnMaBWKWGSBmHfBO3LC sFMYWN9TkCDCbG+M53RTNjf8/kcxMH0crDBaw2s7umnlF9bWLvJ+CQzy7B+npXaYQ0Sh PlTmeEXaTpa4DTUjI/bqyel6UpFNJC3MlxiS8wgzdPslzlK5FzvO6ye8fjRxMO23N5kL MzGq4hmppZQw9nqNHmzAE09XiSBh4AMYsKIkuZxUTGGi9vSJ09BodDje6ArBokAgyxl0 +iL1Wkh4fq8/f7JfV6Fc5jcymST7wWHIPuCgfTpRylNpV/tLGqCVfYKETYH2UbbS0MuW 28og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0utUDHU5p18JMyukMfxcGrVkMwkedcIXc7VizY5R+P8=; b=rhmvG9R0DG1Ra/hQyPe7q4s2Xj8DQ5WB5tb+YSEeFC+h8f1FWFfMBFxE1ikXvwzaf/ POe5stPD/52nvOYFO6uWeKQ0zj7WK7y05iTMUfL6WGYlBEr+5KTiyIDB1478CUmYx+r0 h50I5Nl/mtp5VAxD8/TK435ylE5Qt2nz5hC+2LI0KgyKSYx0SZXxNQKCrKGkyl1E/c16 jUkPHnwIOFu2ccdHsAvYXj456dmTSaDsvIEU47ltHKRWH0BftqIVT8GmbUkn3pE+pPSI xCC2mmb6YaVuZBMsRXYKpbdBFyZcMzW3inPIYb0RbXrYWawQzNQ/N5jlPbI+RFGaIyWU 5hUA== X-Gm-Message-State: AOAM531K82BaaCJgOvaSyD1eQpFcuYySs/CXLLnrHL7/g8rmXuVnb4VF ZxZqu8r3q6KGsyetcT9p7tFzjlipPO2RiNyc+TaqfA== X-Received: by 2002:a92:c605:: with SMTP id p5mr8982501ilm.53.1631906208787; Fri, 17 Sep 2021 12:16:48 -0700 (PDT) MIME-Version: 1.0 References: <20210916060525.1890638-1-irogers@google.com> In-Reply-To: From: Ian Rogers Date: Fri, 17 Sep 2021 12:16:37 -0700 Message-ID: Subject: Re: [PATCH v2] perf test: Workload test of metric and metricgroups To: John Garry Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Jin Yao , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, eranian@google.com, Paul Clarke Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 16, 2021 at 12:37 AM John Garry wrote: > > On 16/09/2021 07:05, Ian Rogers wrote: > > Test every metric and metricgroup with 'true' as a workload. > > > > Signed-off-by: Ian Rogers > > Reviewed-by: John Garry > > Note that I also had a local test for pmu events: > for e in `$PERF list --raw-dump pmu`; do > echo "Testing $e" > result=$($PERF stat -v -e "$e" perf bench internals synthesize) > if [[ "$result" =~ "$e" ]]; then > echo "Event not printed: $e" > exit 1 > fi > done > > Is there any value in upstreaming this? I could not see same already > there. Or else make your new script generic, so that it accepts an > argument whether to test events or metrics or metricgroups It is not easy to make a generic script with the current shell test infrastructure. I made a variant of this test: https://lore.kernel.org/linux-perf-users/20210917184240.2181186-2-irogers@google.com/T/#u For skylake it ran for 1m15s and so it may be too slow. Perhaps we need to add to the test infrastructure with some kind of speed flag. Thanks, Ian