From patchwork Wed Feb 8 09:30:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ilpo_J=C3=A4rvinen?= X-Patchwork-Id: 5116 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3355646wrn; Wed, 8 Feb 2023 01:33:03 -0800 (PST) X-Google-Smtp-Source: AK7set+onpS0+zZkWkNvGDTQkzl3yatyRrMHMQI/koaD6g5dwGrEPF0M5o6xdER07pNI+4KRxi62 X-Received: by 2002:a17:90a:1d3:b0:22b:f622:56ae with SMTP id 19-20020a17090a01d300b0022bf62256aemr8081724pjd.23.1675848783491; Wed, 08 Feb 2023 01:33:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675848783; cv=none; d=google.com; s=arc-20160816; b=jIoyJQ8kp9nztLJTrurOpPxjQmUzj+8NrLpjqpd4eR796bKgdqyQv1HOLDCfWYPORU E/kN3281BaRI0bajY8hMeyIznQ0gQ7m8kF+yoLjPYigZlxt+zVOLBZFfbRNq/2TTkc7d 2EH11vXlANmcX3wNz7qBmpibKx3sVfZtIZDLQFC5XIKLUqGv5WnZLnQIcZdcpjMF7kcm VA6fj/wKUtZ+BOYTY9bMAYskLm0j0G2nP1mbVdZc+uA/WtpxXRGP6OOimdRdq7BOYXQG 6GDGRj+HrwwDqELuSvlt0tQfN6MM51YDI0X/m8NJm1coMj0hmLPeW0xaXS2irkzgCKKB JbxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bTN3huI2EnVh8hL3KU2hTRV5qa5z4DrAqcWWz4Np5TM=; b=nXtRR0whU9rMS0gRk/DyxaBUeXTX9UgoYJtr9nd2UcH7p0K9hsIfITecjHuvjjlQe0 D3gfeIDY2luKejeThfkU2ofJQdvBjV19gbmtasU1748bckOBai6FB/oMZOOMoTmfvrj3 2oRrz4o/RUwLJG7T92nb08pD6SFj5UHVrAuZFbOCjf1i59XGvPUTOuvgmoqBnJN7pjAO uv1h720T+xVqwnW6MbAUohUycVmg0KJtKZ65Tr5oNWItO8hG/73Ov61wZzSGQIe0Hkdh l1ym0Yt8y69ETa4502W7V9CJnNxdIJjDRRuxy4Ef2kj7JiAoTeLhBPsMwbEFYC5hXIs7 Lo7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=b1SAUfVN; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h6-20020a17090ac38600b0022bb684b5absi1611644pjt.74.2023.02.08.01.32.50; Wed, 08 Feb 2023 01:33:03 -0800 (PST) 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=@intel.com header.s=Intel header.b=b1SAUfVN; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229796AbjBHJb1 (ORCPT + 99 others); Wed, 8 Feb 2023 04:31:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbjBHJbK (ORCPT ); Wed, 8 Feb 2023 04:31:10 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E38745BFC; Wed, 8 Feb 2023 01:30:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675848626; x=1707384626; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=HyPIPU2PhDAGT+DdKMw4IPPATk+uo0Mg3riE8Tl/ifo=; b=b1SAUfVNRCdrr4SF6MoIWjF1ivggtlPlWJrv6zezDMiseUKsuHfLxGGh nCIXyl48x5k42Qvf4olgTBK8Lo1V3WLQ38FYw+JVj0j/6IDoFAkVDpUqU /ppcXmF0oDCyNCgjLavlM4I4BskE0L0aBtYgNT/qKV81/rPvneZNF/YOy yCBs/ShAHoQVRKq/T5L8LiVHQotdC1uSrV75vgNt1OHPuxWsyfpGbPnxv 42jydQK8VUPKA8cbG40OlAHFoYOKQCZLwvqC5PGcj45mu0g5lG7qgy1lM miX23D5Y0iuV1bYkSwGyOCmBhXU1rj6mveP++YD68WjDwICrtuDoc0XF1 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10614"; a="415974469" X-IronPort-AV: E=Sophos;i="5.97,280,1669104000"; d="scan'208";a="415974469" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2023 01:30:25 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10614"; a="697613808" X-IronPort-AV: E=Sophos;i="5.97,280,1669104000"; d="scan'208";a="697613808" Received: from jstelter-mobl.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.252.38.39]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2023 01:30:23 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Reinette Chatre , Fenghua Yu , Shuah Khan Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH 0/4] selftests/resctrl: Fixes to error handling logic Date: Wed, 8 Feb 2023 11:30:12 +0200 Message-Id: <20230208093016.20670-1-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757254814156649739?= X-GMAIL-MSGID: =?utf-8?q?1757254814156649739?= This series fixes a few cleanup/error handling problems. Fenghua Yu (1): selftests/resctrl: Return error if memory is not allocated Ilpo Järvinen (3): selftests/resctrl: Move ->setup() call outside of test specific branches selftests/resctrl: Allow ->setup() to return errors selftests/resctrl: Check for return value after write_schemata() tools/testing/selftests/resctrl/cache.c | 4 +++- tools/testing/selftests/resctrl/cat_test.c | 2 +- tools/testing/selftests/resctrl/cmt_test.c | 2 +- tools/testing/selftests/resctrl/fill_buf.c | 2 ++ tools/testing/selftests/resctrl/mba_test.c | 9 ++++++-- tools/testing/selftests/resctrl/mbm_test.c | 2 +- tools/testing/selftests/resctrl/resctrl.h | 2 ++ tools/testing/selftests/resctrl/resctrl_val.c | 21 +++++++------------ 8 files changed, 25 insertions(+), 19 deletions(-)