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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 993FFC433FE for ; Mon, 10 Oct 2022 16:41:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229798AbiJJQla (ORCPT ); Mon, 10 Oct 2022 12:41:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbiJJQlZ (ORCPT ); Mon, 10 Oct 2022 12:41:25 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DA50631F1 for ; Mon, 10 Oct 2022 09:41:25 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id c24so10875962plo.3 for ; Mon, 10 Oct 2022 09:41:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=kBInphdFTXa+77vEzA8kMD40VeRTtiaezhjgTdUa2c8=; b=Ioiculmaz1YAb5NVneZFkhzIt6X3SGkkzMsJwSvkJM6hcobICfyHe8TyvymAj0qT6b ZUTFM5KCdpQ44aCQ6ZLyNYfcp7TdGyBlm6MHHCa9Xva8V7nYYCsWlnlGomhQ4vjy3ISU fofiNRh3k1oPiS7NFLW3+NnTgREVsoOmZgqppbAUpof32omJtwTC9CDvpj/rq5Uef4ea TrFijDKYWipyHQC0rTUk9udh11czrQEaL9YvVRs2irIIdadWKHS7KgNC0GeptcqF7p6+ Az+Ht15iu3F4rgLfUy7OPBt3a6yh596fLSnKYBNDCWdRz1C67Mv05ysWrHYEgtGUi+kP IHFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kBInphdFTXa+77vEzA8kMD40VeRTtiaezhjgTdUa2c8=; b=waJDjNMqgoYuaVbPvlWbdLNkig/eTSqDxxFXjQL1lXkRFaLcXcW8qjXVs2FkWSKKP3 iyZANkwygKFR9rEfg11fgdrGHdwuFViJOGWumohXyiCX3jrm26B8rEMtW3rPPicDkuBT 66UdZ8VtSTF4v2sRbRNR4z1aTnrYiWzOeDLZg5XHOTMjqKBC06dYi9y+hdkXS0zzmLV8 VLoqBjfH9VXsZwd4qop26LGVxEwVjsn19AvLdImbS34wvcMvDazqjW+wt3H/9xktVqpb 7KCdyRnwLPWrNQfhNisiJHk6zdLeka6nnFd0bawCll5N4yGwZjm/huS/mW5lRxNNCNxT eirA== X-Gm-Message-State: ACrzQf3NjmoA3g1NQS+BbFf8dnIJUK/gidtjaMv4vTpAenYivxq94cw6 Ff7rty40i4+xZXLu5UWp+MQQOw== X-Google-Smtp-Source: AMsMyM4hWhFMlChYX1VJsTIrwqLA5NexCdb9SNtPs67uwYmXA6KlZ7sCtrOQtTR2AySyoPBQZhFe3Q== X-Received: by 2002:a17:902:eb87:b0:180:dfae:553a with SMTP id q7-20020a170902eb8700b00180dfae553amr14133045plg.114.1665420084555; Mon, 10 Oct 2022 09:41:24 -0700 (PDT) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id g12-20020a170902868c00b0017f7f8bb718sm6818970plo.232.2022.10.10.09.41.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 09:41:24 -0700 (PDT) Date: Mon, 10 Oct 2022 16:41:20 +0000 From: Sean Christopherson To: kernel test robot Cc: lkp@lists.01.org, lkp@intel.com, Paolo Bonzini , Maxim Levitsky , "Maciej S. Szmigiero" , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [KVM] 21d4c575eb: perf-sanity-tests.Test_event_parsing.fail Message-ID: References: <202210091636.2f13027d-yujie.liu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202210091636.2f13027d-yujie.liu@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 09, 2022, kernel test robot wrote: > Greeting, > > FYI, we noticed the following commit (built with gcc-11): > > commit: 21d4c575eb4a1e6d956b61b5e9c162895fa7d4ba ("KVM: x86: Print error code in exception injection tracepoint iff valid") > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > > in testcase: perf-sanity-tests > version: > with following parameters: > > perf_compiler: gcc > > on test machine: 4 threads Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (Skylake) with 32G memory > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): What exactly is changing? I see some "FAILED!" entries, but I don't see how a commit that only affects tracepoint string output can be related to things like "Lookup mmap thread". If the issue is that the output change caused "Parse event definition strings" to fail, and that propagated to everything else, then this is effectively "working as intended". diff --git a/arch/x86/kvm/trace.h b/arch/x86/kvm/trace.h index d07428e660e3..385436d12024 100644 --- a/arch/x86/kvm/trace.h +++ b/arch/x86/kvm/trace.h @@ -376,10 +376,11 @@ TRACE_EVENT(kvm_inj_exception, __entry->reinjected = reinjected; ), - TP_printk("%s (0x%x)%s", + TP_printk("%s%s%s%s%s", __print_symbolic(__entry->exception, kvm_trace_sym_exc), - /* FIXME: don't print error_code if not present */ - __entry->has_error ? __entry->error_code : 0, + !__entry->has_error ? "" : " (", + !__entry->has_error ? "" : __print_symbolic(__entry->error_code, { }), + !__entry->has_error ? "" : ")", __entry->reinjected ? " [reinjected]" : "") ); > 2022-10-08 04:47:24 sudo /usr/src/perf_selftests-x86_64-rhel-8.3-func-21d4c575eb4a1e6d956b61b5e9c162895fa7d4ba/tools/perf/perf test 6 > 6: Parse event definition strings : > 6.1: Test event parsing : FAILED! > 2022-10-08 04:48:12 sudo /usr/src/perf_selftests-x86_64-rhel-8.3-func-21d4c575eb4a1e6d956b61b5e9c162895fa7d4ba/tools/perf/perf test 19 > 19: 'import perf' in python : FAILED! > 2022-10-08 04:48:36 sudo /usr/src/perf_selftests-x86_64-rhel-8.3-func-21d4c575eb4a1e6d956b61b5e9c162895fa7d4ba/tools/perf/perf test 31 > 31: Lookup mmap thread : FAILED! > 2022-10-08 04:48:45 sudo /usr/src/perf_selftests-x86_64-rhel-8.3-func-21d4c575eb4a1e6d956b61b5e9c162895fa7d4ba/tools/perf/perf test 72 > 72: dlfilter C API : FAILED! > 2022-10-08 04:48:46 sudo /usr/src/perf_selftests-x86_64-rhel-8.3-func-21d4c575eb4a1e6d956b61b5e9c162895fa7d4ba/tools/perf/perf test 75 > 75: Test dwarf unwind : FAILED! > 2022-10-08 04:48:47 sudo /usr/src/perf_selftests-x86_64-rhel-8.3-func-21d4c575eb4a1e6d956b61b5e9c162895fa7d4ba/tools/perf/perf test 80 > 80: build id cache operations : FAILED! > 2022-10-08 04:49:27 sudo /usr/src/perf_selftests-x86_64-rhel-8.3-func-21d4c575eb4a1e6d956b61b5e9c162895fa7d4ba/tools/perf/perf test 89 > 89: perf stat CSV output linter : FAILED! > 2022-10-08 04:49:51 sudo /usr/src/perf_selftests-x86_64-rhel-8.3-func-21d4c575eb4a1e6d956b61b5e9c162895fa7d4ba/tools/perf/perf test 94 > 94: perf all metrics test : FAILED! > 2022-10-08 04:56:05 sudo /usr/src/perf_selftests-x86_64-rhel-8.3-func-21d4c575eb4a1e6d956b61b5e9c162895fa7d4ba/tools/perf/perf test 101 > 101: Miscellaneous Intel PT testing : FAILED!