Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751830AbbHTInt (ORCPT ); Thu, 20 Aug 2015 04:43:49 -0400 Received: from TYO202.gate.nec.co.jp ([210.143.35.52]:55394 "EHLO tyo202.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750924AbbHTInr (ORCPT ); Thu, 20 Aug 2015 04:43:47 -0400 From: Naoya Horiguchi To: Andrew Morton CC: David Rientjes , =?utf-8?B?SsO2cm4gRW5nZWw=?= , Mike Kravetz , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Naoya Horiguchi , Naoya Horiguchi Subject: [PATCH v5 0/2] hugetlb: display per-process/per-vma usage Thread-Topic: [PATCH v5 0/2] hugetlb: display per-process/per-vma usage Thread-Index: AQHQ2yHnHJ/jyl9t50SbmuW70WK3cA== Date: Thu, 20 Aug 2015 08:26:26 +0000 Message-ID: <1440059182-19798-1-git-send-email-n-horiguchi@ah.jp.nec.com> References: <20150812000336.GB32192@hori1.linux.bs1.fc.nec.co.jp> In-Reply-To: <20150812000336.GB32192@hori1.linux.bs1.fc.nec.co.jp> Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.128.101.21] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id t7K8htVQ026458 Content-Length: 1376 Lines: 27 The previous version had build issues in some architectures, because it required to move the definition of HUGE_MAX_HSTATE across header files in order to embed a new data structure struct hugetlb_usage into struct mm_struct. This was a hard problem to solve, so I took another approach in this version, where I add just a pointer (struct hugetlb_usage *) to struct mm_struct and dynamically allocate and link it. This makes the changes larger, but no build issues. Thanks, Naoya Horiguchi --- Summary: Naoya Horiguchi (2): mm: hugetlb: proc: add HugetlbPages field to /proc/PID/smaps mm: hugetlb: proc: add HugetlbPages field to /proc/PID/status Documentation/filesystems/proc.txt | 10 +++++++-- fs/hugetlbfs/inode.c | 12 ++++++++++ fs/proc/task_mmu.c | 30 +++++++++++++++++++++++++ include/linux/hugetlb.h | 36 +++++++++++++++++++++++++++++ include/linux/mm_types.h | 7 ++++++ kernel/fork.c | 3 +++ mm/hugetlb.c | 46 ++++++++++++++++++++++++++++++++++++++ mm/mmap.c | 1 + mm/rmap.c | 4 +++- 9 files changed, 146 insertions(+), 3 deletions(-)????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?