From patchwork Tue Jul 19 14:31:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Upton X-Patchwork-Id: 12922616 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 6C195C43334 for ; Tue, 19 Jul 2022 14:37:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239213AbiGSOhq (ORCPT ); Tue, 19 Jul 2022 10:37:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239282AbiGSOhc (ORCPT ); Tue, 19 Jul 2022 10:37:32 -0400 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47C7DC64 for ; Tue, 19 Jul 2022 07:31:47 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1658241105; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ZyU2BYi7LeiqlQcK6LmNwCy8Z+l0G30madVNBDLhPek=; b=PwgqyNYLhf0AnYo+Gpl4JZ+jdndVqh6RpzxhLsT7/TLRGb4nI42T4/I1GKqaxDDw5vfR14 u4wnlQxBrN1yKCNLLYa9RHmQ366Xj7rEsKWO+stkZdvK57YypiKufeEy5M6w+VdJG9D+zs AfQdy9XxOHK4NPO7HJ8uaj+Kbl4zf9c= From: Oliver Upton To: kvm@vger.kernel.org Cc: pbonzini@redhat.com, seanjc@google.com, Oliver Upton Subject: [PATCH 0/3] selftests: KVM: Improvements to binary stats test Date: Tue, 19 Jul 2022 14:31:31 +0000 Message-Id: <20220719143134.3246798-1-oliver.upton@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Oliver Upton Small series to improve the debuggability of the binary stats test w/ more descriptive test assertions + add coverage for boolean stats. Applies to kvm/queue, with the following patches applied: - 1b870fa5573e ("kvm: stats: tell userspace which values are boolean") - https://lore.kernel.org/kvm/20220719125229.2934273-1-oupton@google.com/ First time sending patches from my new inbox, apologies if I've screwed something up. Oliver Upton (3): selftests: KVM: Check stat name before other fields selftests: KVM: Provide descriptive assertions in kvm_binary_stats_test selftests: KVM: Add exponent check for boolean stats .../selftests/kvm/kvm_binary_stats_test.c | 38 +++++++++++++------ 1 file changed, 27 insertions(+), 11 deletions(-) Reviewed-by: Andrew Jones