From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C736C433EF for ; Fri, 4 Mar 2022 18:11:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D58838D0002; Fri, 4 Mar 2022 13:11:08 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D2F278D0001; Fri, 4 Mar 2022 13:11:08 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BF7388D0002; Fri, 4 Mar 2022 13:11:08 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0084.hostedemail.com [216.40.44.84]) by kanga.kvack.org (Postfix) with ESMTP id AEE178D0001 for ; Fri, 4 Mar 2022 13:11:08 -0500 (EST) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 71AD79AC89 for ; Fri, 4 Mar 2022 18:11:08 +0000 (UTC) X-FDA: 79207495416.17.B602C6B Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by imf22.hostedemail.com (Postfix) with ESMTP id EF4B9C0023 for ; Fri, 4 Mar 2022 18:11:07 +0000 (UTC) Received: by mail-wr1-f51.google.com with SMTP id bk29so13873193wrb.4 for ; Fri, 04 Mar 2022 10:11:07 -0800 (PST) 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=8CUqH+T1NmoB2pHeRsnvR7yakP1UyT5ff8t46TR/rkc=; b=G7ewdwVut2kvJmFgsHWKWHMkmynih5Ppxf5Mu8vwM6fISeGtJxMYptxidSYrnNYxuY RacHzhXM76CnOJ77AHmSc2U7yxRtiz/SVf0LhY0oAptpg0aO8J+BW6jsgFwEDQQCah6L NModnuANoy/eBShpON7ajYzkJX+snOxdHRBiriKUckU5tmEmuSxaN7O0uMcMcNARlcRN 8V6CWEjjas55XCkkHQRzRQanaImeBOHD81GUcxXmKcm502t4C2y/P6/RpOHE3zhHRwSM BOzdp8PwkVPhVsHAyAEC+IC01VKjcUyhRWtHpmC4I5MQ31f59n6QTX+loO8HNXY2bct9 GgNQ== 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=8CUqH+T1NmoB2pHeRsnvR7yakP1UyT5ff8t46TR/rkc=; b=rRmsYGgTFeNuA2aG0GFzUoZfaURTOhmxxrbcZJq7IBuqwYCvAGQokLX3u7V6VmJ03H MMJOd3gVH3/O62ClQdKs2wyJRyhRQO5sKrvLRuWftmNliGwmLeUXjTJTZ7LOW3Ik4Enh GiIXE48KUCKkbmGRj8n1KFrFvh54h5eZQ0LAxwEWr9AkV/oW4EV1Neg9X5lgMcFjcotQ 6s3twW+AZ/DLcklvXi3bfZqeDgVl0TWvOV3KFzb29fL1Cd7HY/ZBqKgZdY1EOj1bmPzh 1qTp6AM6slt5O/GOHKPtxcF52kIZu2kTDe2e+JplV0xeThLethnryF4oS9//AN04qrn+ XwIA== X-Gm-Message-State: AOAM531YfU0GOK/LuR0M7Ajk5bkFnUB9u52VPY+h/wKMLE/C1nbGoIzS VryvEprNdieKEKTWLAe54PFlHm/Z2enIGTyiAM+qxg== X-Google-Smtp-Source: ABdhPJwhhTp45VvNeE8w3E/5H2BYG+MzLn3g1CCaPntlfvjWV4Qr6sCVwgfDysj6yqXzcjZhcJ2OTTSfDSuYH0iislk= X-Received: by 2002:a5d:5687:0:b0:1f0:9663:c80e with SMTP id f7-20020a5d5687000000b001f09663c80emr2823843wrv.343.1646417466283; Fri, 04 Mar 2022 10:11:06 -0800 (PST) MIME-Version: 1.0 References: <20220304083329.GC20556@xsang-OptiPlex-9020> In-Reply-To: <20220304083329.GC20556@xsang-OptiPlex-9020> From: Ian Rogers Date: Fri, 4 Mar 2022 10:10:53 -0800 Message-ID: Subject: Re: [perf vendor events] 3f5f0df7bf: perf-sanity-tests.perf_all_metrics_test.fail To: kernel test robot Cc: Arnaldo Carvalho de Melo , Kan Liang , Alexander Shishkin , Alexandre Torgue , Andi Kleen , Ingo Molnar , James Clark , Jiri Olsa , John Garry , Mark Rutland , Maxime Coquelin , Namhyung Kim , Peter Zijlstra , Stephane Eranian , Zhengjun Xing , LKML , Linux Memory Management List , lkp@lists.01.org, lkp@intel.com Content-Type: text/plain; charset="UTF-8" X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: EF4B9C0023 X-Stat-Signature: og4hwzno65no5pwwy81xiwn9y45rihm1 Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=G7ewdwVu; spf=pass (imf22.hostedemail.com: domain of irogers@google.com designates 209.85.221.51 as permitted sender) smtp.mailfrom=irogers@google.com; dmarc=pass (policy=reject) header.from=google.com X-Rspam-User: X-HE-Tag: 1646417467-949431 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, Mar 4, 2022 at 12:33 AM kernel test robot wrote: > > > > Greeting, > > FYI, we noticed the following commit (built with gcc-9): > > commit: 3f5f0df7bf0f8c48d33d43454fc0b7d0f3ab9537 ("perf vendor events: Update metrics for Skylake") > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master > > in testcase: perf-sanity-tests > version: perf-x86_64-fb184c4af9b9-1_20220302 > with following parameters: > > perf_compiler: clang > ucode: 0xec > > > > on test machine: 8 threads 1 sockets Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz with 32G memory > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): Hi, Thanks for the report! There is no information in the test output that I can diagnose the issue with, could you add the -v option to perf test so that I can see what the cause is, rather than just pass/fail. At the time of filing the update I didn't have access to a Skylake machine (just SkylakeX) but this test was ran as detailed in the commit message: https://lore.kernel.org/lkml/20220201015858.1226914-21-irogers@google.com/ Knowing the test, I suspect there may be a bad event on Skylake, but can't confirm this because I lack the hardware and/or the test output. The issue may also be how the test was run, such as not as root, not in a container. There is a further issue with this test that metrics (e.g. number of vector ops) that measure things that a simple benchmark doesn't cause counts for can fail the test, as the test is checking if the metric is reported - for example, there may be no vector ops within the simple benchmark. Thanks, Ian > If you fix the issue, kindly add following tag > Reported-by: kernel test robot > > > > 2022-03-02 19:01:56 sudo /usr/src/perf_selftests-x86_64-rhel-8.3-func-3f5f0df7bf0f8c48d33d43454fc0b7d0f3ab9537/tools/perf/perf test 89 > 89: perf all metricgroups test : Ok > 2022-03-02 19:02:05 sudo /usr/src/perf_selftests-x86_64-rhel-8.3-func-3f5f0df7bf0f8c48d33d43454fc0b7d0f3ab9537/tools/perf/perf test 90 > 90: perf all metrics test : FAILED! > 2022-03-02 19:07:00 sudo /usr/src/perf_selftests-x86_64-rhel-8.3-func-3f5f0df7bf0f8c48d33d43454fc0b7d0f3ab9537/tools/perf/perf test 91 > 91: perf all PMU test : Ok > > > > To reproduce: > > git clone https://github.com/intel/lkp-tests.git > cd lkp-tests > sudo bin/lkp install job.yaml # job file is attached in this email > bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run > sudo bin/lkp run generated-yaml-file > > # if come across any failure that blocks the test, > # please remove ~/.lkp and /lkp dir to run from a clean state. > > > > --- > 0DAY/LKP+ Test Infrastructure Open Source Technology Center > https://lists.01.org/hyperkitty/list/lkp@lists.01.org Intel Corporation > > Thanks, > Oliver Sang >