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 0AE11CA9EC7 for ; Sat, 2 Nov 2019 12:07:25 +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 B562220679 for ; Sat, 2 Nov 2019 12:07:24 +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="LHKojb5n"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="gegfw7mQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B562220679 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 1iQsBT-0003JV-05; Sat, 02 Nov 2019 08:07:11 -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 1iQsBQ-0003JM-AD for kernelnewbies@kernelnewbies.org; Sat, 02 Nov 2019 08:07:08 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1391620F02; Sat, 2 Nov 2019 08:07:03 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 02 Nov 2019 08:07:03 -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=ymA/wsO0MEhPEDFjnk/j2p5oYxC KTIRO+m2Uw5KVVLc=; b=LHKojb5nUAX8CFd5M09jOt9NkKsiYkn1RvI/bjMHSoI 4fNQAE9DkIwyhsjshbQmAo9Ks7YwXI0tbow5fDD2xCmsSZeXaJR+KWsp5r9u7i9v Z7g3rDRDWIw9uS0uk3M1NYNuXgAm+fvl5nvcmhUJ5JEvB1MwGZ36kHP+DGDYR1TR DG9rGzfNQbZHQQf3V30xp30sxIRRMRrmAGVglNWYjnKTxImr2Kf8eyYzygWuCSlH hYGAMfYpKpRbBkQARK3s+WfZb8az2pgNobXhz9KYeKwsZx/R70UeRXw/F90+co2X wEQz1r027nebdD3lm5ky+3ZZUA0bgArzx9aPcNVnY5Q== 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=ymA/ws O0MEhPEDFjnk/j2p5oYxCKTIRO+m2Uw5KVVLc=; b=gegfw7mQyO8+qHHpw2y7Ir tEUeTkO0nNuvEGPeFchKW6lXlq424KGMpn/tY5u3e5dOiP9Kk68D4aazyWr23NTf nPcCiP2gUPlDue/7NIn5BeDGycHf609H/1Fw8Ovo8z9Y2JNCIL7eT+oe1A+SgWjJ jQi2oY85jJEGZDWcmh0Saoct4jAaOdzCruOhQp+cIgkgMHPhnprMAKMTtvRZEu8P KOwsfKODokvjJ09//H+pIcnrV25TCuvqrrrz4vm6N+NpbrsewboEqrF8tq3Oer6g egt/4VF/CPge+sBdjEcHjaiStywUOQNFZHoxMDk9qDOpuT3KbXVyUfTs7SyfdryA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddtledgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjfgesthdtredttdervdenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuffhomhgrihhnpehgihhthhhusg drtghomhenucfkphepkeefrdekiedrkeelrddutdejnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehgrhgvgheskhhrohgrhhdrtghomhenucevlhhushhtvghrufhiiigvpedt 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 442103060057; Sat, 2 Nov 2019 08:07:02 -0400 (EDT) Date: Sat, 2 Nov 2019 13:07:00 +0100 From: Greg KH To: Andre Schmidt Subject: Re: Simple system stats. Message-ID: <20191102120700.GA297440@kroah.com> References: <20191102125105.0b403a3b@ALDOS> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191102125105.0b403a3b@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 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? thanks, greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies