Message ID | 20230412132122.29452-1-ilpo.jarvinen@linux.intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp324446vqo; Wed, 12 Apr 2023 06:25:59 -0700 (PDT) X-Google-Smtp-Source: AKy350ZKNTJsBtRpAAiFVMxR3bDvMfE0JDvvYdT/MBZcLgosDECxHKd6pBSct6vGFran3DMO+Riu X-Received: by 2002:a50:fb02:0:b0:502:2a76:5781 with SMTP id d2-20020a50fb02000000b005022a765781mr5905828edq.5.1681305958773; Wed, 12 Apr 2023 06:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681305958; cv=none; d=google.com; s=arc-20160816; b=epQjJNFOt5U43bBWzmECrI+m2IOKVsG+jws8E+caITuQl7HpbbJ9HHC5c9SLRo1FE3 T0DBUtahqA7wlCkBkg+F4ilwdQnkZdKfslPUogJbwhm5CR3Xe3LLlQ29B/hXPtbNX/MB ycDY4IocM65dhDawVnbJAV1Yf5i8aN8nslDbAzXHbTCwPjsYO7J6VLcatecK0yhntuoN IZIgcqO9AuD3L8hnoLjr/h/Mdx9K85o9q8FVP+ggiWmrZRcsYuiRfrDBi9doaxISuJIo gvYl0HyrPXPVsdJ3JSMFk6OuQqYG9TnVY5kZPMesuWcSN8KGR/JubdHXm1WOAOouEG2Z ipHw== 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=odE98FObeMD4nbem/1f7xnIuETzLBnfkQSvZixKhOWg=; b=M43UK3A0B3o0FH6FMLyRXtZ1Ry7icbxF+4gJCF39bAf/IcCZr0NUgsfPK+2BOhSKKx sc5eJoYZxLC2DoHb2Du1wSNfOMw+oCT4YvEAvW3yv0RjGScZFJOnw/TwzIQET2gbvkhc VIwMDJ4+VddnN9CVdJ8TTXBQubKw+9UR3p6m0PZ9TrldBnJHSHQlNhwvaehGUtwfeRx2 Ae2Vso6mrzQ0OyVDVNVApESftXKuJHZAg/DQs9HOtYcIacjKeulwkzRovMfdt5XAOleq TWDjbk5rv6hzwHDZrtkFJdwuSqWc4U/2jmkopDcFPwyKmzgg+hOrgRfKkxQ3+ew1x8+1 DtwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aA9tIMEH; 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 c21-20020a056402121500b004bf743f9e1fsi1717068edw.304.2023.04.12.06.25.33; Wed, 12 Apr 2023 06:25:58 -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=@intel.com header.s=Intel header.b=aA9tIMEH; 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 S230286AbjDLNWJ (ORCPT <rfc822;peter110.wang@gmail.com> + 99 others); Wed, 12 Apr 2023 09:22:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjDLNWI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 12 Apr 2023 09:22:08 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 170958A75; Wed, 12 Apr 2023 06:21:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681305714; x=1712841714; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Tq0l1fHeAs4nVKmblmjii4w6uTzZLvcJhUEt4dDgpHY=; b=aA9tIMEHo9MXk1x8VSqQqJKUBn0EeGobQSvl3/yttqfclJ32jUmM/LOw uX8NsdJLGV0HDtgo92T8/4LH2NQ5YTmc9H/pZvqOQZqvSnU9ATZKiIfLH ZCG1KUWWfYbkSowU2dlCeHcK2AmnhgMbVp9GbUvjLM8WdpMV3jGK56kZV CXcHFLq5iMm9jJ0RFQxRVtrYEWX9YQomZyW4cTh4b6BktSgVY57JlmqPq PYPB7NSJEkUYhWqmdl2xXi9zTYjfPvkUwnc0ZFD0FGTq2hHFfk0467PnH Mme/qt0yTlf6dSCEvqPJxdbKk/dwp4yxMiw8i/PO2UgceeHQ3dQP4Hjhy g==; X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="332589997" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="332589997" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 06:21:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="639230005" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="639230005" Received: from chanse1-mobl2.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.251.213.80]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 06:21:31 -0700 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> To: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Reinette Chatre <reinette.chatre@intel.com>, Fenghua Yu <fenghua.yu@intel.com>, Shuah Khan <shuah@kernel.org> Cc: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>, =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> Subject: [PATCH 00/22] selftests/resctrl: Fixes, cleanups, and rewritten CAT test Date: Wed, 12 Apr 2023 16:21:00 +0300 Message-Id: <20230412132122.29452-1-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762977076758282366?= X-GMAIL-MSGID: =?utf-8?q?1762977076758282366?= |
Series |
selftests/resctrl: Fixes, cleanups, and rewritten CAT test
|
|
Message
Ilpo Järvinen
April 12, 2023, 1:21 p.m. UTC
Here is a series with some fixes and cleanups to resctrl selftests and rewrite of CAT test into something that really tests CAT working or not condition. I know that this series will conflict with some of patches from Shaopeng Tan that so far have not made it into the kselftest tree. Due to CAT test rewrite done in this series, some of those patches would no longer be relevant anyway but some of them are still very valid (I've not tried to reinvent the fixes in Shaopeng's series in this series). Ilpo Järvinen (22): selftests/resctrl: Add resctrl.h into build deps selftests/resctrl: Check also too low values for CBM bits selftests/resctrl: Make span unsigned long everywhere selftests/resctrl: Express span in bytes selftests/resctrl: Remove duplicated preparation for span arg selftests/resctrl: Don't use variable argument list for ->setup() selftests/resctrl: Remove "malloc_and_init_memory" param from run_fill_buf() selftests/resctrl: Split run_fill_buf() to alloc, work, and dealloc helpers selftests/resctrl: Remove start_buf local variable from buffer alloc func selftests/resctrl: Don't pass test name to fill_buf selftests/resctrl: Add flush_buffer() to fill_buf selftests/resctrl: Remove test type checks from cat_val() selftests/resctrl: Refactor get_cbm_mask() selftests/resctrl: Create cache_alloc_size() helper selftests/resctrl: Replace count_bits with count_consecutive_bits() selftests/resctrl: Exclude shareable bits from schemata in CAT test selftests/resctrl: Pass the real number of tests to show_cache_info() selftests/resctrl: Move CAT/CMT test global vars to func they are used selftests/resctrl: Read in less obvious order to defeat prefetch optimizations selftests/resctrl: Split measure_cache_vals() function selftests/resctrl: Split show_cache_info() to test specific and generic parts selftests/resctrl: Rewrite Cache Allocation Technology (CAT) test tools/testing/selftests/resctrl/Makefile | 2 +- tools/testing/selftests/resctrl/cache.c | 154 ++++++------ tools/testing/selftests/resctrl/cat_test.c | 221 +++++++++--------- tools/testing/selftests/resctrl/cmt_test.c | 60 +++-- tools/testing/selftests/resctrl/fill_buf.c | 107 +++++---- tools/testing/selftests/resctrl/mba_test.c | 8 +- tools/testing/selftests/resctrl/mbm_test.c | 16 +- tools/testing/selftests/resctrl/resctrl.h | 28 ++- .../testing/selftests/resctrl/resctrl_tests.c | 34 ++- tools/testing/selftests/resctrl/resctrl_val.c | 4 +- tools/testing/selftests/resctrl/resctrlfs.c | 160 ++++++++++--- 11 files changed, 447 insertions(+), 347 deletions(-)