From patchwork Wed Feb 15 13:06:03 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: 57535 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp180918wrn; Wed, 15 Feb 2023 05:10:14 -0800 (PST) X-Google-Smtp-Source: AK7set8H2iSFq1Tguh2Q6DDHjf/4h3xg7IHwt4+Was2Iaa1euLB/LXHfTvrddAYkLaUKtiXFu9Ii X-Received: by 2002:a62:4e4e:0:b0:5a8:b041:9420 with SMTP id c75-20020a624e4e000000b005a8b0419420mr1303078pfb.31.1676466613585; Wed, 15 Feb 2023 05:10:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676466613; cv=none; d=google.com; s=arc-20160816; b=DWUUVkh7caXcJHAt2Z3seykffgwGc+trIa4jQOzoMknB21l4Oo7NiKsmNMe6j/urgV vU8LHZ2QpvbofEtbqRjyKxT+1Yz5Tc6NAWXFNN+0MZ3NQfOpaJticn+lt4IPSum80j6Q +o5lOSwOMe/JVgEhIhewT38J0AE40Olo8h/VWEoAVV1R27qFWWCh/HQ1J+AxhW1BxIVM nYuMj7wc2nK8O84r7gsLs0h0+NkwbjmdcwwDtWtl3JpTZQ5oAhoxK33ualFIDd+eqDJQ nkt56V4QGe8VTvDYmKPFDpfe4R+5KAs8annAoAB62Wxk3+kH0dnhmjwCfhlnhb8lG16O 2oeg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VE5c8Ups0ZqsCpYe8R86JibkEDhJKbfN4AdlMCTgbwQ=; b=MLclLJYZ3JfyhVI7BNyo6jS1nT7Vx3NUmqkU/vMnoBxwRYXBvzOMrqAXDibCMVE7Gb 8R/l0x/FYrSEYtryaBhZn6PsJZ/m05FADST97wDSLEB5DYoHpOjigjBRDXWxy+HqAq+3 W+2DARtcEQA8hC0n00l3j7vn0FUtWq4jQjKw5p8GwXfKMRpJU4Rw8giIUrxM0cu4YHBa l69JD+yx3JLFC4hEyt2ATbgv3vtkKUenk/OovptK5k39dGgEAU91tdrTjiU7eCojv+Ff fhsFY6q1SmX308K9Y4Q6EIUp7P1SdI5G91s8o8BSzto4mIGOfMuacJhFSSl9dDdW4V7d l4Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TRZAIE16; 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 w20-20020a627b14000000b005a8dcaeba57si4912500pfc.371.2023.02.15.05.09.59; Wed, 15 Feb 2023 05:10:13 -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=TRZAIE16; 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 S234105AbjBONHM (ORCPT + 99 others); Wed, 15 Feb 2023 08:07:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234098AbjBONG6 (ORCPT ); Wed, 15 Feb 2023 08:06:58 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 014C339286; Wed, 15 Feb 2023 05:06:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676466404; x=1708002404; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FJytfcP4W/Nd+1A+HEFfRfK2SHfSGE7vjyPsbBrbJmY=; b=TRZAIE167DY/ZC9oRyUKjguxo6j6BTcOueb8naUcUYop9qcV98ssqpar opte8qj9wCCOSKfBsNOBbLYzxz4o+bbxP1nRq+zmGwnqYe4C5pkJUwpag uvoYfnSDfhA+ztayGE1HQJN74VPpHdfeAfp7l4wEMIWHNYS44xUyq815U 35pgbUMQHwJhnGWN2RmTNXuOe4z7gOZ3PwV+0Fsk+KcBHVqaQd93Z4BvL GFxcRkknCwBLbTzF2vKTR0KBMhT+OHccPqxeT40Pu0+3p69DXuiDMKEOc ftBjKNepqCFz+4NFDSbzA9uVq2/j8U98hCs+BAGZNWWQZEezmkvw6uiPm Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10621"; a="319456307" X-IronPort-AV: E=Sophos;i="5.97,299,1669104000"; d="scan'208";a="319456307" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2023 05:06:42 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10621"; a="812436095" X-IronPort-AV: E=Sophos;i="5.97,299,1669104000"; d="scan'208";a="812436095" Received: from hshannan-mobl1.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.252.49.120]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2023 05:06:40 -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 v2 7/9] selftests/resctrl: Change name from CBM_MASK_PATH to INFO_PATH Date: Wed, 15 Feb 2023 15:06:03 +0200 Message-Id: <20230215130605.31583-8-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230215130605.31583-1-ilpo.jarvinen@linux.intel.com> References: <20230215130605.31583-1-ilpo.jarvinen@linux.intel.com> 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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?1757902655835216160?= X-GMAIL-MSGID: =?utf-8?q?1757902655835216160?= From: Fenghua Yu CBM_MASK_PATH is actually the path to resctrl/info. Change the macro name to correctly indicate what it represents. [ ij: Tweaked the changelog. ] Signed-off-by: Fenghua Yu Signed-off-by: Ilpo Järvinen Reviewed-by: Reinette Chatre --- tools/testing/selftests/resctrl/resctrl.h | 2 +- tools/testing/selftests/resctrl/resctrlfs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/resctrl/resctrl.h b/tools/testing/selftests/resctrl/resctrl.h index f44fa2de4d98..20aaa7c0e784 100644 --- a/tools/testing/selftests/resctrl/resctrl.h +++ b/tools/testing/selftests/resctrl/resctrl.h @@ -28,7 +28,7 @@ #define MB (1024 * 1024) #define RESCTRL_PATH "/sys/fs/resctrl" #define PHYS_ID_PATH "/sys/devices/system/cpu/cpu" -#define CBM_MASK_PATH "/sys/fs/resctrl/info" +#define INFO_PATH "/sys/fs/resctrl/info" #define L3_PATH "/sys/fs/resctrl/info/L3" #define MB_PATH "/sys/fs/resctrl/info/MB" #define L3_MON_PATH "/sys/fs/resctrl/info/L3_MON" diff --git a/tools/testing/selftests/resctrl/resctrlfs.c b/tools/testing/selftests/resctrl/resctrlfs.c index 6f543e470ad4..cc6cf49e3129 100644 --- a/tools/testing/selftests/resctrl/resctrlfs.c +++ b/tools/testing/selftests/resctrl/resctrlfs.c @@ -210,7 +210,7 @@ int get_cbm_mask(char *cache_type, char *cbm_mask) if (!cbm_mask) return -1; - sprintf(cbm_mask_path, "%s/%s/cbm_mask", CBM_MASK_PATH, cache_type); + sprintf(cbm_mask_path, "%s/%s/cbm_mask", INFO_PATH, cache_type); fp = fopen(cbm_mask_path, "r"); if (!fp) {