Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp209926lqb; Thu, 14 Mar 2024 09:10:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIYBtnFpdFZyAF3aknO9KoJ19Yh2ZgwyerPXEEbY46gi5hlbSUOtBe4ml79paTd5zo63KxPogwn0K8fijGAgMS+OyKbKF0YjlCpnxI/w== X-Google-Smtp-Source: AGHT+IGX4h8wNgIuyA1hnk8K1BjbObiF5SEUj73CDrJgoWS3DHaZn+03JjZwpMlxGXGlieHGU2DQ X-Received: by 2002:a05:6870:3926:b0:220:9f8c:b97b with SMTP id b38-20020a056870392600b002209f8cb97bmr2474512oap.4.1710432604216; Thu, 14 Mar 2024 09:10:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710432604; cv=pass; d=google.com; s=arc-20160816; b=n1yOE1aE0TGKW29d1Calf5SysfoxS3tghN4Mvp3wncnA8jv3CkgRgK4cT42VTTNIb/ TZoBTTahpWpImGfGsE1+kBvLDT7JY+T4qEEW5vSzNIl6BhhasCp+VkaDBAqHoBX0HdmC kxByE/Cnihq1ay2mIz2hdglklR2NCPMd6/A7f2UC5IEjERHKZtu3DH7xbAy64qqYBztH tcO8ObBr83n9Ih47pN5VCogauRAvDh1zBhq+pkm3UpIwH7kGoeM3HdEOzDGqNF1busTA R24rjxlHWNEZe9l3G5TVwRWW3Ej9AgaDzyKcAQW5lsPpCzicXdCuPw0rF8lmJj6FbQsk 6URw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:date:from :dkim-signature; bh=f0ouuV9/AtmrLNqCxpys2YMTASj0KpeAzP7mZdT44U0=; fh=gN5st5aQ0schUz6okfIqSRXFKUtyQSNKWdQ6zVzmKPU=; b=L9yPfQA+eNVq9zNkLGoBq+sJzqmSZ4XXqc26k1QpmgSK0zIsqnlyk8EtNJBfQAXyxK RBRKTc0CQmf/PsCSx3JTOgQ7AY14LCev/LCAWEy06m38BG37XwYlTuR7YtVetiy1Yab8 +GUFhDvKblGUeqxNMOhRdaRtmgk+C9ciP+liPftNGiC3wn4fBL2/phv+7pt16sipxncH 1zmmAWOAlbC/JZ60kPLEsBfcBJnHD8aRi6u+6j1zLISX6PVP5thaoE/uxzHyuoFzmWUe WdDaOL3Un4ivIbdTHK2tt2C3sU0jPDl2evLR6sE+8jJ1EW4Fc6SIjIHW1No5QuaBWi3s seWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NUka1LRJ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-103549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103549-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jk6-20020ad45d46000000b00690e9d28cebsi1013647qvb.502.2024.03.14.09.10.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 09:10:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NUka1LRJ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-103549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103549-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D4CBB1C210A0 for ; Thu, 14 Mar 2024 16:10:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C4F373517; Thu, 14 Mar 2024 16:09:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NUka1LRJ" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 E34B173500; Thu, 14 Mar 2024 16:09:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710432596; cv=none; b=NYjZuFF6fTR8v+gxN1xXn1Ye7D8Wg3h5BHqsSJt9kNg+tNJqVYTo2urB5x+85QUbo2u/i7YXxBge3rBF0rMkii7LkCjDqLskVs8ptmDAVGIINKTMM1P/tr71andUloRq2ADOVIR2zGaOGUNgDrH199nRVHxPQTJLPwe2dIBvlrk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710432596; c=relaxed/simple; bh=9u/UDzD0XpRwRBiuyHSJknNscac+rwwiSKoT//XPWhA=; h=From:Date:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=rTN1xJjB0EbjFBoBcegZ3NOC1/JbcdkKRRo1z/IHteRnrmaX/zgZInJI22tpxGpmiaRh+3EGvSwuVyjCAEGhOsu11BJ6XvEROpMbFgb787jnv/T+Oaa8dxVseUKsISApzeRDQGJqXy7fjAs23L4Q1+GEYOt449ZnNg51m/MP2iM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=NUka1LRJ; arc=none smtp.client-ip=198.175.65.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710432595; x=1741968595; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=9u/UDzD0XpRwRBiuyHSJknNscac+rwwiSKoT//XPWhA=; b=NUka1LRJjGE3BgA0krMcPuF3KcyIs12wMVI8OdYVuR98N/DLKTCX4rJX rjh9imJnV0BbxArnps0YO5v8MDA0/ZtzTy92gBp2UCN6RsbU9XfgE0tEu AZU+E2fIAQShp94AGyWKtELPW8dIsiIjRWHt7zR+W6Ic0gHjFuDZ+n1XD Oxt65rlplxgGKczrTwX9i3TTSJWcWKpeOgeyAysrdBytT1J7U0aaiTIYP +TSWtFFnTHWk4iu3c/OKjooTyuKZUbh08kw06x4TZOJTqA/svle3jDM/y BsHHM//MJMOBJjoUmPSU4gZCWcLTsHZwjgXHalJYyBRcD7Sjgi2aSUrvt w==; X-IronPort-AV: E=McAfee;i="6600,9927,11013"; a="5389648" X-IronPort-AV: E=Sophos;i="6.07,125,1708416000"; d="scan'208";a="5389648" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2024 09:09:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,125,1708416000"; d="scan'208";a="12735604" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.245.247.8]) by orviesa006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2024 09:09:52 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Thu, 14 Mar 2024 18:09:48 +0200 (EET) To: Maciej Wieczor-Retman cc: linux-kselftest@vger.kernel.org, Reinette Chatre , Shuah Khan , Babu Moger , Fenghua Yu , LKML Subject: Re: [PATCH v2 08/13] selftests/resctrl: Add ->init() callback into resctrl_val_param In-Reply-To: Message-ID: <78991c6c-2a0e-b7aa-1653-4836921507fa@linux.intel.com> References: <20240311135230.7007-1-ilpo.jarvinen@linux.intel.com> <20240311135230.7007-9-ilpo.jarvinen@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323328-2033180368-1710432588=:1017" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-2033180368-1710432588=:1017 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 14 Mar 2024, Maciej Wieczor-Retman wrote: > On 2024-03-11 at 15:52:25 +0200, Ilpo J=E4rvinen wrote: > >diff --git a/tools/testing/selftests/resctrl/mbm_test.c b/tools/testing/= selftests/resctrl/mbm_test.c > >index 17398cd3aace..ffbfcecf9bd6 100644 > >--- a/tools/testing/selftests/resctrl/mbm_test.c > >+++ b/tools/testing/selftests/resctrl/mbm_test.c > >@@ -8,12 +8,19 @@ > > * Sai Praneeth Prakhya , > > * Fenghua Yu > > */ > >+#include > >+ > > #include "resctrl.h" > >=20 > > #define RESULT_FILE_NAME=09"result_mbm" > > #define MAX_DIFF_PERCENT=098 > > #define NUM_OF_RUNS=09=095 > >=20 > >+#define CON_MON_MBM_LOCAL_BYTES_PATH \ > >+=09"%s/%s/mon_groups/%s/mon_data/mon_L3_%02d/mbm_local_bytes" > >+ > >+static char mbm_total_path[PATH_MAX]; > >+ > > static int > > show_bw_info(unsigned long *bw_imc, unsigned long *bw_resc, size_t span= ) > > { > >@@ -86,6 +93,20 @@ static int check_results(size_t span) > > =09return ret; > > } > >=20 > >+static int set_mbm_path(const struct resctrl_val_param *param, int doma= in_id) > >+{ > >+=09int ret; > >+ > >+=09ret =3D initialize_mem_bw_imc(); >=20 > I just noticed this. Since there is not only path stuff here but also som= e imc > logic maybe the function names could be changed? Something like >=20 > =09set_mbm_path -> init_mbm >=20 > The same could apply for all these init functions or at least the mba one= =2E Ah yes, I'll rename them. --=20 i. --8323328-2033180368-1710432588=:1017--