From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36F9DC83F14 for ; Wed, 30 Aug 2023 22:33:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231481AbjH3Wdw (ORCPT ); Wed, 30 Aug 2023 18:33:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237283AbjH3Wdu (ORCPT ); Wed, 30 Aug 2023 18:33:50 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70E361BF for ; Wed, 30 Aug 2023 15:33:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693434808; x=1724970808; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8/L/PFxdivB0WJisZaNCROLvCiEtHqm8cWTc4ukTnJU=; b=O/aOX7Y+aQHjE94O3DB1CQHznOAL+Bv5fJInASYtazc9v6IteW80NMcN Yau6p3Uo25E0xWXmfHkimAaVz52F2xhLHkBlPs4kmaKvJ/nbp0COjcAES fLTietepIgS/Ht9+2z8pOwOApf7II4naRh3bNYTdl8qREFz7z0PIH1NnC 3DcdKcAdZ26JWe5nWONwyR85YEqNgs+0VzQdgXa9YuPELAD2Z32MtJaMf /5jG5cao8/MUaU6fumAtTw2FT+62YjhCRXXh43CnoLdAuhZXVOnn5xite 3aozxwQzRZF/2xhssG5al2b30Z7PMBvVWx7UK9OAYMDPmqpyPDXqjp1h2 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10818"; a="378480955" X-IronPort-AV: E=Sophos;i="6.02,214,1688454000"; d="scan'208";a="378480955" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2023 15:32:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10818"; a="829390726" X-IronPort-AV: E=Sophos;i="6.02,214,1688454000"; d="scan'208";a="829390726" Received: from agluck-desk3.sc.intel.com (HELO agluck-desk3) ([172.25.222.74]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2023 15:32:43 -0700 Date: Wed, 30 Aug 2023 15:32:42 -0700 From: Tony Luck To: James Morse Cc: Reinette Chatre , x86@kernel.org, linux-kernel@vger.kernel.org, Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , shameerali.kolothum.thodi@huawei.com, D Scott Phillips OS , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, tan.shaopeng@fujitsu.com, xingxin.hx@openanolis.org, baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , peternewman@google.com, dfustini@baylibre.com Subject: Re: [PATCH v5 06/24] x86/resctrl: Track the number of dirty RMID a CLOSID has Message-ID: References: <20230728164254.27562-1-james.morse@arm.com> <20230728164254.27562-7-james.morse@arm.com> <03cd7ac4-b58d-c7a8-7cb9-ebcc770d21f0@intel.com> <20b566d9-448b-5367-b4db-593466e7a2f8@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20b566d9-448b-5367-b4db-593466e7a2f8@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 24, 2023 at 05:53:03PM +0100, James Morse wrote: > Something on my eternal-todo-list is to make the filesystem parts of resctrl a loadable > module (if Tony doesn't get there first!). That would flush this sort of thing out. > Last time I triggered resctrl_exit() manually not all of the files got cleaned up - I > haven't investigated it further. James, I looked at going to a full loadable module approach for about 3 seconds, and found none of the kernfs support functions are exported. So I also put that on the eternal-todo-list :-) There are possibly a few other functions that need exporting like get_cpu_cacheinfo(), and two or three others from the "perf" code for pseudo-lock debugfs support. -Tony P.S. Latest version of my re-write is at: https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git/log/?h=resctrl2_v65rc7 Well, almost latest. I haven't pushed the changes to auto-load all the modules for basic X86 functions based on X86_FEATURE_* bits.