From patchwork Wed Oct 30 21:54:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 13857255 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 7BF511CF7BB for ; Wed, 30 Oct 2024 21:55:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730325309; cv=none; b=HzJEyWWiNA6bOjdiv2M28gBv47x3rfXcPjfeCRhTlsP/rHrxPt4beG1x4naeMcl2A+brGuD2saMcLTxYaH73V+2Cd19CY2AJZQSqiq3S1bcnEPNb1ZbRh+PDbyhTfuFEIAOZyc57EYuJZqN8qaqwnMOfxLCxKVwfrm7Q0Qzspxs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730325309; c=relaxed/simple; bh=bnA5MH3Ut/o2XkdYerkFVpg3U06Fxf8NVmDS1qWQDyU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eyuE7y9Fa5ocoMHoFXvbJAHisnTRNKjzzKTwDSJl25QLo8b8uZ6oS0lMD3oj814yruJKvtoMl07E7/Bt3wk+x5jBpN3l82U1K3u4uIvBDMcSzwf5Nl5YsQ378ve1P68zIq+4ibRqOm2s2nYvN4UjoKsjsWsuQxBG2oC4gzdGhgg= 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=mQJfZvCT; arc=none smtp.client-ip=192.198.163.11 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="mQJfZvCT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730325308; x=1761861308; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=bnA5MH3Ut/o2XkdYerkFVpg3U06Fxf8NVmDS1qWQDyU=; b=mQJfZvCTsCMii/vpZgh9iLCFQ/dxQCIoba8Yij+LTmCXJFlfFx7DWP0L koNDPWpf4akDQPOL4v6VM1yezsFDQOMt9Gec44UtnNSaoKfdD+8Iyb7lm cz51tfXkRDQl66xkZF1WwWw69teHGKM6TeAcJ/Z1QDnFFescpJSfeeu+G fEdGgiK7mMsHQ9uT7CjT0C2Mj80TEcr/I5EizOWLBpDE1HR4aowH3EWwJ 6M9BZtsjtKFQYE0pMC98aRCAC38hmhIAULjTontyTqEXmo0R9aSj7zETe +kmt5z6alrAoOAgT6IdUtR7I1AU0qaHtVKPq6mOTEpTixRzKVkW168vsQ g==; X-CSE-ConnectionGUID: /ZdVItkUTEiREBBJOxumgA== X-CSE-MsgGUID: tIQKYQw3RTuadshAHclpZg== X-IronPort-AV: E=McAfee;i="6700,10204,11241"; a="40620515" X-IronPort-AV: E=Sophos;i="6.11,246,1725346800"; d="scan'208";a="40620515" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2024 14:55:07 -0700 X-CSE-ConnectionGUID: HtVLIGyhTBOeFp4sGGTRyQ== X-CSE-MsgGUID: anaIG9rLS/yLhYlVpvRwUA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,246,1725346800"; d="scan'208";a="119899958" Received: from msatwood-mobl.amr.corp.intel.com (HELO localhost) ([10.125.108.161]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2024 14:55:06 -0700 From: Ira Weiny Date: Wed, 30 Oct 2024 16:54:44 -0500 Subject: [ndctl PATCH 1/6] 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: <20241030-dcd-region2-v1-1-04600ba2b48e@intel.com> References: <20241030-dcd-region2-v1-0-04600ba2b48e@intel.com> In-Reply-To: <20241030-dcd-region2-v1-0-04600ba2b48e@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=1730325302; l=1446; i=ira.weiny@intel.com; s=20221211; h=from:subject:message-id; bh=bnA5MH3Ut/o2XkdYerkFVpg3U06Fxf8NVmDS1qWQDyU=; b=2LHLcye7C1q/k2ff3Tle0TanynHZFAlrIrZb1/odOlKFg9NhciiCGZwU3KfuxfpD1n7zCEAt3 HfeF81rrCzfCuMYo971bKWs0+tSsYBFlETLEUwEFcGyHdtLRKFFzVnZ 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. 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"