Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp981294iog; Thu, 30 Jun 2022 14:20:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tg8hi9upg61naBsMzIykNfv4it5ucuHHd6ojV/sNmo4OUptKEn2VoS58saPsKu+4T7ka6d X-Received: by 2002:a17:903:228c:b0:16a:24d7:6a9e with SMTP id b12-20020a170903228c00b0016a24d76a9emr17708786plh.27.1656624035922; Thu, 30 Jun 2022 14:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656624035; cv=none; d=google.com; s=arc-20160816; b=Lc4oA/J1S1yr+IqOqh46oi8NAcIOhfn2M2UiImo0NQkohCxFlnUY5e2lCzxdeoFptG OZ3MA7N1jlNZiMngCNzx3QCyuoO3kcw6mqzIvU4sQHNr3DvwA04W/hqIt+sqPVAVfOXE TWbf3TbLYy+lbH784hMdqFJXWPUNrndvTB9Uwtl4PNRkascCNLBIbsYreizUvGgrd0/K jJIlGrpbnNLEo7p7qA6GdMJws7rNk9H/eNLLi6+CE8YKzvJWB+qWW6YPTmiKuytuzphi SYXFNKsEbYQZEicUkGzqZYROl3TZa0B9UMkjaiKXPkfo4Xse081F1OkUpDTQTGYRmIzb e3wQ== 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=glTDnYjItqLfny8iWt7QuauUYNw+sI+czBNtwZqbRGg=; b=jb5/3PLzu3A4eLMCEKReYIsEMLRFhiIKAL7gaAzGCAY1dYesuiBvS8x43BtV4fSmrx /+9c5Nak6BFYpWbp1tKbipF9hELO8rWwIq4c9p05iDLL+vy8fCNXS6aa6isX2pH+weU9 6accr+T6KjV5igkCvcmRIv1nzdDI6KOWiDFlYYbvxMTFq17XPEiVwtuKLWG1j6T0GbiQ 4C1g+vKwHrTZb8SmcKssHAdqysQw61sFtX4cYKThDVUYpYiu1JQfqh8e1CvcxWXIqffC +o0iXrXhvErg5BQ79UgUvqPPcV64MksPvkHjw+aWA5psm3Mzv+nuo54kANo8im7Qeoxp faWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=CrYN13mm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l9-20020a170903120900b0016b829435f1si18211530plh.460.2022.06.30.14.20.23; Thu, 30 Jun 2022 14:20:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=CrYN13mm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236946AbiF3VAk (ORCPT + 99 others); Thu, 30 Jun 2022 17:00:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231290AbiF3VAj (ORCPT ); Thu, 30 Jun 2022 17:00:39 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 294E04D157 for ; Thu, 30 Jun 2022 14:00:39 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id e132so485292pgc.5 for ; Thu, 30 Jun 2022 14:00:39 -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=glTDnYjItqLfny8iWt7QuauUYNw+sI+czBNtwZqbRGg=; b=CrYN13mmUcZnBcrFJl7hETioGstd6NnSORG00INxT1zUYbocQz5nf2cBCHpPEOC7B+ NQHIVOBDSaoO5rdJPdbg0miDk1FDFYTNIqpcgqLiuZLYUFTpLhm4jM1VIGyi68ooyljB 6P1dA6cLN2vuV6BfC6HTK9eY6bnNLiFVrCxmQXyxlk9cr7TSIHCUOOyz/xRI0Od1okDI 3IGCj0ItlvK4icAcKUS8Ze0pPgTJegxcc6A2DjL848asAF+1VqQ3KnEluZ6eUstJX6MC r59Jz8ocGhHU/n6lzYnqcA0cpOBsO8fE6wO2Nsgei43TAraOau8JeEqzBM/KVVZSV2VJ vVEg== 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=glTDnYjItqLfny8iWt7QuauUYNw+sI+czBNtwZqbRGg=; b=eGlCZyV5eIpwAOUejoLFUkeixm9eYAIP1/fKjgbszwKw72OaSyMYONtrepPfq6jJi+ rwDifOKPmaIZE06VrOEf61+C+jpx8BiR7FkgGlE/MimlkO4dJquvnd6YuD5D+LvZPcFn Z0j+HHiE7AuZAcpfnkovmMskotrtBwVbBF3tuETrE/m87/PIn8lMJNwCeKpm0QxvttRN 8jBNjyNwTVQnZBQfey+Z2N9XLXGpyJkxAQZvQO+m8Dbuj1yTNlz2kS34cuvQ5ftAv071 OlGBtxO5GKBL8VYu3c9NlFGHStN4Dg5Cx10FafbDsztZ/xykgoR/5ACDrLLIjhFRVRPq /j8Q== X-Gm-Message-State: AJIora9eM7bwA6dtwSejQAd55uDnSrNwHNuXdzZPkh0a8HavW9T/eInu jeOFertwjKt9NWACCqbekJ1KqXki6DLkz3ODbd+/Ew== X-Received: by 2002:a63:1943:0:b0:411:5e12:4e4f with SMTP id 3-20020a631943000000b004115e124e4fmr9154187pgz.400.1656622838523; Thu, 30 Jun 2022 14:00:38 -0700 (PDT) MIME-Version: 1.0 References: <20220330174621.1567317-1-bgardon@google.com> <20220330174621.1567317-3-bgardon@google.com> In-Reply-To: From: Mingwei Zhang Date: Thu, 30 Jun 2022 14:00:27 -0700 Message-ID: Subject: Re: [PATCH v3 02/11] KVM: selftests: Dump VM stats in binary stats test To: Sean Christopherson Cc: Ben Gardon , LKML , kvm , Paolo Bonzini , Peter Xu , David Matlack , Jim Mattson , David Dunn , Jing Zhang , Junaid Shahid Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 8, 2022 at 12:52 PM Sean Christopherson wrote: > > On Wed, Mar 30, 2022, Ben Gardon wrote: > > Add kvm_util library functions to read KVM stats through the binary > > stats interface and then dump them to stdout when running the binary > > stats test. Subsequent commits will extend the kvm_util code and use it > > to make assertions in a test for NX hugepages. > > Why? Spamming my console with info that has zero meaning to me and is useless > when the test passes is not helpful. Even on failure, I don't see what the user > is going to do with this information, all of the asserts are completly unrelated > to the stats themselves. Debugging could be another reason, I suspect? I remember when I tried to use the interface, there is really no API that tells me "did I add this stat successfully and/or correctly?" I think having a general print so that developer/debugging folk could just 'grep mystat' to verify that would be helpful in the future. Otherwise, they have to write code themselves to do the dirty print...