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=-6.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,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 1D532C43457 for ; Fri, 9 Oct 2020 11:49:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B71CD2226B for ; Fri, 9 Oct 2020 11:49:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RQ2sYXBa" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388217AbgJILtN (ORCPT ); Fri, 9 Oct 2020 07:49:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388164AbgJILtN (ORCPT ); Fri, 9 Oct 2020 07:49:13 -0400 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E520DC0613D2; Fri, 9 Oct 2020 04:49:12 -0700 (PDT) Received: by mail-ot1-x342.google.com with SMTP id s66so8734634otb.2; Fri, 09 Oct 2020 04:49:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FC42SUkcezRphfcD8WLweSfGw44RXCucv/pNfOMEb2U=; b=RQ2sYXBaSgqVdgJSTEM1/zK3srNGSSiELmYM8/efK8uXnyUtSJRXIG6ZL7+KR08Kl9 MHeWHnWGABdcnBzxukCPPQBAfWQo981nSeYjoGEox1rARpa3Zm2ZaZlZfRbhZtyXUWr8 ICuLeEVuyK8gVfxXFfIp/hlhySENB80dFoHRxo0iNVAXdJPx7ETTgEUPxWKo7azIHFAG Z0n2ln5PGy1qjzpesazITQSoLu2Cwd+pdiYiGmPOmKdVrw3uohHOnWkEe5IZS2fVamwK 9FVOOWcqkDiKTeXGtg+pNqsX5Bfax73gC0n+v15J19VC0jofnoCCwTgqhcTggHNo7WqU el/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FC42SUkcezRphfcD8WLweSfGw44RXCucv/pNfOMEb2U=; b=bMutn07em9EX6IIy94dILwuqX7mWiAR6t9End4OzQE4yCxKVzpwbuxJkHfm7iE2TB1 n3xAcq+iJDopVzK3x842d4pG8vzvu6zhkN+Q80QD7soEKu4CWIdT8TEBa4Y8FHT44Pph p+/KhnhMGgb18Hh2quC4e+J5aFWGHU69q7/opbp3YSk1+IHzMVUTNKV0nro7zdtoVrwG yNcI4VKPFSnjpaG4JupLvj/iRsZSO7AD1nVXQHYHfWi3iYfAZDEb80a14fF4ZKwXpjYp l42O1+dezDhFrbUxrdThmByvTYRjrzMtIMIfbDjwzdCDBUZHOYzYNLT/s7c5Qq+xAnU3 QfRA== X-Gm-Message-State: AOAM5320fi8ZYfspMiNNCknZch+9Ae/L+T6srCiaSvQCkCHHQSweT2bX 69XL7yDn+45+WR8eHmwpSy97323+r5W1OK6zipE= X-Google-Smtp-Source: ABdhPJwSscbH17qEWjQ+QOyJ9UHDr426Viyrbk2OgRZn5SC1adi8UHAJieGfd9m3/m3aQMrFuIiKNraGShgW7xhRYtY= X-Received: by 2002:a9d:7f12:: with SMTP id j18mr4056211otq.304.1602244152286; Fri, 09 Oct 2020 04:49:12 -0700 (PDT) MIME-Version: 1.0 References: <2babfe21-beb8-762b-8ede-15f3467ca841@infradead.org> In-Reply-To: <2babfe21-beb8-762b-8ede-15f3467ca841@infradead.org> From: yulei zhang Date: Fri, 9 Oct 2020 19:49:01 +0800 Message-ID: Subject: Re: [PATCH 08/35] dmem: show some statistic in debugfs To: Randy Dunlap Cc: akpm@linux-foundation.org, naoya.horiguchi@nec.com, viro@zeniv.linux.org.uk, Paolo Bonzini , linux-fsdevel@vger.kernel.org, kvm , LKML , Xiao Guangrong , Wanpeng Li , Haiwei Li , Yulei Zhang , Xiao Guangrong Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Thanks, Randy. I will follow the instructions to modify the patches. On Fri, Oct 9, 2020 at 4:23 AM Randy Dunlap wrote: > > On 10/8/20 12:53 AM, yulei.kernel@gmail.com wrote: > > diff --git a/mm/Kconfig b/mm/Kconfig > > index e1995da11cea..8a67c8933a42 100644 > > --- a/mm/Kconfig > > +++ b/mm/Kconfig > > @@ -235,6 +235,15 @@ config DMEM > > Allow reservation of memory which could be dedicated usage of dmem. > > It's the basics of dmemfs. > > > > +config DMEM_DEBUG_FS > > + bool "Enable debug information for direct memory" > > + depends on DMEM && DEBUG_FS > > + def_bool n > > Drop the def_bool line. 'n' is the default anyway and the symbol is > already of type bool from 2 lines above. > > > + help > > + This option enables showing various statistics of direct memory > > + in debugfs filesystem. > > + > > +# > > > -- > ~Randy >