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 X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3740CA9EC7 for ; Sat, 2 Nov 2019 13:13:27 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8FE1921726 for ; Sat, 2 Nov 2019 13:13:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="oQWK+hTF"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ZV+RLoCC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8FE1921726 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1iQtDR-0004YF-Gq; Sat, 02 Nov 2019 09:13:17 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1iQtDM-0004Y1-Uf for kernelnewbies@kernelnewbies.org; Sat, 02 Nov 2019 09:13:14 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1668B20D98; Sat, 2 Nov 2019 09:13:11 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 02 Nov 2019 09:13:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=lGN1Z8/x/pPlRBfr8r57hVmA2bn 9fIVAfpRxmTNef9E=; b=oQWK+hTF40mY7wJHbC9JXSD6bynUqr8OSALBOuH5vhJ IE+f8j6ECMBc58nbvcaLqy47r6oC2/2/1yWG+tqtZiJ57mmcth5AGIyeVve0Qr/j +4CEroSJPo8aaskrPMVsbMTy2Kjs+k0algLbuDV70C943tuX0EdgffdUFxllPXRK 7hHuxXiW/l/u8ckFiarn7WN6Z6l1x+pjySY9JZxgyp1kr+kn+pLu01mruyOAniE0 Txk5pijsUoPSTzgwh3PlAhqhDVmJqSMFDQXMfNUlywbccBhXvzjIKIAGNKxkbLgA h2NvpY8znj6JoXe+8EyVBoB7F0wqFJM/vUmpn86dlEA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=lGN1Z8 /x/pPlRBfr8r57hVmA2bn9fIVAfpRxmTNef9E=; b=ZV+RLoCCYd4KtpbAenFT4H yuR6ORnEsm2SRm6GWhJtYRmtLjn0VvtKCF28JlGeMelZ1q9ZbEGCmr5m7bS4U/Qn nrmuAU18aCx1qzamtu0xuwsejCo/dg7kKGX7VfGDIAfX51sUNB+JMVE93m79uTBp 87BbG1OWxZ8cQ3PihdbEE9DPKiX7GvpAP28RrueRw9HUGWVa/oxOxEKbxSwvVRLr mI0KozbgG9G5vw3MUVO6igykMglo+6ogQFbU9RDcDAHEkAGeeiuaJsJD3fPmFL9e dMpdF4D6kDO3fC4m/Cb9rbkB9S8Sy2NMDfG/8xfEFoYAhXEkRIlZmKOX/y6eFF/w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddtledggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjfgesthdtredttdervdenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuffhomhgrihhnpehkvghrnhgvlh drohhrghdpghhithhhuhgsrdgtohhmnecukfhppeekfedrkeeirdekledruddtjeenucfr rghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhmnecuvehluhhsth gvrhfuihiivgeptd X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 56F413060061; Sat, 2 Nov 2019 09:13:10 -0400 (EDT) Date: Sat, 2 Nov 2019 14:13:08 +0100 From: Greg KH To: Andre Schmidt Subject: Re: Simple system stats. Message-ID: <20191102131308.GA391073@kroah.com> References: <20191102125105.0b403a3b@ALDOS> <20191102120700.GA297440@kroah.com> <20191102140519.1ebcb664@ALDOS> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191102140519.1ebcb664@ALDOS> User-Agent: Mutt/1.12.2 (2019-09-21) Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Sat, Nov 02, 2019 at 02:05:19PM +0100, Andre Schmidt wrote: > On Sat, 2 Nov 2019 13:07:00 +0100 > Greg KH wrote: > > > On Sat, Nov 02, 2019 at 12:51:05PM +0100, Andre Schmidt wrote: > > > Hello kernel space, > > > > > > user space webmonkey here, tinkering on my home desktop setup and spelunking way too many rabbit holes... damn you source code! ;P > > > > > > The other day i got frustrated with re-implementing parsing and calculation of /proc/stat and /proc/meminfo for my visual user interface experiments (in various languages), so i "created"* a kernel module that helps me with that (https://github.com/oskude/proc_topstat). > > > > > > But i could not get swap info in the kernel module, cause - i guess - it's not exported? > > > So i wonder, would/could upstream EXPORT_SYMBOL(si_swapinfo)? > > > If yes/maybe, where/how should i propose such change? > > > > Symbols and functions are only exported if an in-kernel-tree module > > needs it. Sorry. > > > > What's wrong with parsing the existing exports of this value as-is? > > do you mean i can get swap usage info in a kernel module without si_swapinfo? Not that I know of, no. > (as seen here https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/fs/proc/meminfo.c#n44) > > or do you mean what is wrong with /proc/meminfo? Yes, what is wrong with that? thanks, greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies