From patchwork Fri Nov 15 18:46:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 13876696 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE2F818787A for ; Fri, 15 Nov 2024 18:46:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731696389; cv=none; b=ezD8m6iCTbZykZv5BWV2X32Cp+luGX9vEwU/WNJxlmErzEciqyN/rl1debLEkHeggqvKOcITNdSE36cZM3PzXeOXxNo0veAwMnXoPjKWGGREycA+SFdWDjnqb3Z/YRSigUvfGqcZW/70Pi5vG81I0HOwcRYPyWTvPLKP1m6m2do= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731696389; c=relaxed/simple; bh=wD+XIhKFNUIAbTLMKPo9wsnzKTJTpx4Wre2NG4iL7dw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Sncl1K6LKkSihZE1j27fhEjgwhij/oMrSngewXKx7QeMMaKS08hOQUNMhrE3R473oSXLoFpuEcq1/DFsRpwRWN402wmGDnA6r4YCNNK+7RmIqML1WdozePDg3XZk7RpMIsXPou7HwUKEsKab8Sge2rU1DJlykJV2pj0G9ik3p5U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=K0lD1Kgz; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="K0lD1Kgz" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1731696388; x=1763232388; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=wD+XIhKFNUIAbTLMKPo9wsnzKTJTpx4Wre2NG4iL7dw=; b=K0lD1KgzDerkQSpWQgjoQTmqiNgLDqivdUOF+V+DJG6um2mHK9jMtrE5 pzJmdnchnia6BiT+vgdLdMej0ah/gyV4b3wTPDf34QCawtkhc/YUA/F0B hsBu2QHQ1XgYn0PjONnLD71kgovE/GmCcpdzvINrJrnX7VktstD2FJRk2 feQ2mwTpZNjVwFTyA1oQ6B9rmEWmmxyb9DRYLoOOeENV+x8mSQ9+8ignw sDnV//lQ6toz4Q7phlnjqXy36YqapMn70+iBhfT+5RuZXP//eQuKhiGEE OPVV1jRB4+Nwo0sXVXbcTqY8xy683LWoLbECPb9yO/MLE0ek5POOg43sn Q==; X-CSE-ConnectionGUID: 1W4rANzTSPmO9/8KnFa9eA== X-CSE-MsgGUID: 4iauAU/wSZuhpdXuPvIM+Q== X-IronPort-AV: E=McAfee;i="6700,10204,11257"; a="42794865" X-IronPort-AV: E=Sophos;i="6.12,157,1728975600"; d="scan'208";a="42794865" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2024 10:46:28 -0800 X-CSE-ConnectionGUID: jn1jpH9IQ0CC47raUqiM+Q== X-CSE-MsgGUID: FqH+eF6pQieQOMjCb9HOGA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,157,1728975600"; d="scan'208";a="92715690" Received: from ehanks-mobl1.amr.corp.intel.com (HELO localhost) ([10.125.108.112]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2024 10:46:25 -0800 From: Ira Weiny Date: Fri, 15 Nov 2024 12:46:19 -0600 Subject: [ndctl PATCH v3 1/9] ndctl/cxl-events: Don't fail test until event counts are reported Precedence: bulk X-Mailing-List: linux-cxl@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241115-dcd-region2-v3-1-585d480ccdab@intel.com> References: <20241115-dcd-region2-v3-0-585d480ccdab@intel.com> In-Reply-To: <20241115-dcd-region2-v3-0-585d480ccdab@intel.com> To: Alison Schofield Cc: Vishal Verma , Jonathan Cameron , Fan Ni , Navneet Singh , Dan Williams , Dave Jiang , linux-cxl@vger.kernel.org, nvdimm@lists.linux.dev, Ira Weiny X-Mailer: b4 0.15-dev-2a633 X-Developer-Signature: v=1; a=ed25519-sha256; t=1731696382; l=1494; i=ira.weiny@intel.com; s=20221211; h=from:subject:message-id; bh=wD+XIhKFNUIAbTLMKPo9wsnzKTJTpx4Wre2NG4iL7dw=; b=h5rXdxx2f6NLIG13P8WgFf76OcfOZw8o6MvAoLFyhPcOvI60Texz+qsoJ0ZjEEvsBuB/+3Qp9 5jR/Q04Ki2pDYn+2F6+ZCrjvcTnkaHDoWHrPEH1CZs/w3fH6rkWkw/S X-Developer-Key: i=ira.weiny@intel.com; a=ed25519; pk=noldbkG+Wp1qXRrrkfY1QJpDf7QsOEthbOT7vm0PqsE= In testing DCD event modifications a failed cxl-event test lacked details on the event counts. This was because the greps were failing the test rather than the check against the counts. Suppress the grep failure and rely on event count checks for pass/fail of the test. Reviewed-by: Dave Jiang Signed-off-by: Ira Weiny --- test/cxl-events.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/cxl-events.sh b/test/cxl-events.sh index ff4f3fdff1d8f6fd80f093126a27bf14b52d167f..c216d6aa9148c938a649cb22656127b3df440039 100644 --- a/test/cxl-events.sh +++ b/test/cxl-events.sh @@ -71,10 +71,10 @@ echo 0 > /sys/kernel/tracing/tracing_on echo "TEST: Events seen" trace_out=$(cat /sys/kernel/tracing/trace) -num_overflow=$(grep -c "cxl_overflow" <<< "${trace_out}") -num_fatal=$(grep -c "log=Fatal" <<< "${trace_out}") -num_failure=$(grep -c "log=Failure" <<< "${trace_out}") -num_info=$(grep -c "log=Informational" <<< "${trace_out}") +num_overflow=$(grep -c "cxl_overflow" <<< "${trace_out}" || true) +num_fatal=$(grep -c "log=Fatal" <<< "${trace_out}" || true) +num_failure=$(grep -c "log=Failure" <<< "${trace_out}" || true) +num_info=$(grep -c "log=Informational" <<< "${trace_out}" || true) echo " LOG (Expected) : (Found)" echo " overflow ($num_overflow_expected) : $num_overflow" echo " Fatal ($num_fatal_expected) : $num_fatal"