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=-3.8 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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 7C2B2C433E0 for ; Fri, 7 Aug 2020 21:06: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 30C9C2177B for ; Fri, 7 Aug 2020 21:06:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HDL1XU+N" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 30C9C2177B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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.94) (envelope-from ) id 1k49Yp-00043K-Az; Fri, 07 Aug 2020 17:05:55 -0400 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1k49Ym-00043F-RL for kernelnewbies@kernelnewbies.org; Fri, 07 Aug 2020 17:05:52 -0400 Received: by mail-pg1-x541.google.com with SMTP id m34so1571922pgl.11 for ; Fri, 07 Aug 2020 14:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=etOBeZ6H5gILJgd9JQeXFMM3NQN3nyySFoxUF9kKfqE=; b=HDL1XU+NAIJ/i3dsYzo4pbvFv5pFwPVKCcgq7tXsRxCQnVLyKy2Ws9QEmF7BhubH8V kcSqLMQlQItPs4oTiD+OgMnOINUpd3x45EVI2q3Jgu1c7imhy2UMw6w73oqyrw0SIzBk tTlEKLr7HOOHSTm6FLFe05dSbAMb7ymbb+grDb2+zYLE+YMLLmRX9Ve0RC1/X5OniTq8 cp38aQUD0ywp5nLuwT5iIqb2+JxP9JH7EdYCZnxCcyoKX4waNb9Y60fafCRser5nii7I FfOTYwotNxLkx7jiR9xL5tkylv0ktS5aeiBp/rOcspSLZr4NXctqaCVXWn5+kj8AM/i3 Fhfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=etOBeZ6H5gILJgd9JQeXFMM3NQN3nyySFoxUF9kKfqE=; b=XVPLQxK0KO8iXXZWiJ5fT0vztGc50RnrL5aYEvsLIfpBzyMshgxs9L7OQagxPujybu boa91/0wV3Tc+aa+ZoAdHIWyHMNOQnthUrI+sRfZEJhUVzcjp8rQYua1WDdViXZFB6SG wb+xOKHe2ZkXpH/86f9BLdKguWw3RpV/oA+bFumuLTjTDfEvu1tSSbjqM+ZytpgP18vu l3fj+napnLb7HF0ib9WHLDg1xBWYveftCwN7P3mTIyuta8IMHwcYk5VahMySgM6Idyua WiUAZwLpXxtZREenbu0ixPYXJpEgTnY8PnBHYfRu1SJsV0WkAD2XrmMW1rmcb7ymXRDr GzWA== X-Gm-Message-State: AOAM531Ec1ybjXUPifGfaCmQmT+wyRj5EOQFg7/hngQWFdX15CI3mh7W 7caEgJSSjm9qC4j8Q414Qm0= X-Google-Smtp-Source: ABdhPJyHHCbMUP6N/kBChHYmX81wz9Pv5iqlrszu3R0ILWQd/51rG6DtSkuSNHyyT/36xjy1row0kw== X-Received: by 2002:a63:5007:: with SMTP id e7mr12293988pgb.19.1596834350806; Fri, 07 Aug 2020 14:05:50 -0700 (PDT) Received: from Paulos-MacBook-Pro.local (125-237-38-125-fibre.sparkbb.co.nz. [125.237.38.125]) by smtp.gmail.com with ESMTPSA id f3sm14647725pfb.129.2020.08.07.14.05.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 14:05:49 -0700 (PDT) Date: Sat, 8 Aug 2020 09:05:45 +1200 From: Paulo Miguel Almeida To: William Tambe Subject: Re: How is the value of KernelStack in /proc/meminfo computed ? Message-ID: <20200807210545.GA58535@Paulos-MacBook-Pro.local> Mail-Followup-To: Paulo Miguel Almeida , William Tambe , kernelnewbies@kernelnewbies.org References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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 Fri, Aug 07, 2020 at 03:09:33PM -0500, William Tambe wrote: > How is the value of KernelStack in /proc/meminfo computed ? > > Any pointers in the code source would be much appreciated. > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies This is where it's defined: https://elixir.bootlin.com/linux/v5.8/source/fs/proc/meminfo.c#L158 Best regards, Paulo Almeida _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies