Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1576322ioo; Sun, 22 May 2022 19:44:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6J+NBAhTGdNWKwvYA1PAxYQUXaGFiDJRkzZ0sDAUsmm86aduQGVE4XShhCIDRl38LtshD X-Received: by 2002:a17:907:6e18:b0:6fe:324a:65c1 with SMTP id sd24-20020a1709076e1800b006fe324a65c1mr18269081ejc.368.1653273843177; Sun, 22 May 2022 19:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653273843; cv=none; d=google.com; s=arc-20160816; b=cDybXJAdAQ0+vIi3UEnMfqNK0EAhkk6YXScnYL4OeiD50r/fkTDQqDu7OYJVja9Ipy wPY37ScqbT1pl5pDgcsp8bAuU1ST0QatTUqmlaIZUvxPgQbyWbnpboLrRjeBhskZcl0X ZcmaDI7ybXxmXdWP/iATrsJz5YuiVtVKkSVz5xPGv9K7e5f5o2ps9MnGqKKZLAb51l50 8lXo0sOIiaVe/vOhVFYZKh1sJ2NIwtNTf1lwMK3DM2J2tRpxWcIDO7/UiUuXApxMIUXO 00eU5NdkoPVs45ih0fnuiIWF8amjBUebcUFlfWHkU9mfj/YnC7rhm14axDLgwkeNf/6Z Qu+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bBI59+/Mk1qcvOSbPvYhnqJ5zoTVecAGEJlppXiLu6Y=; b=QyiBn3OWvrZ7Kf4yJ+ij6gno1gr1b2Vkei/9MXgo8B98IYf+kAiIkyquE54RhUZVoM SoSzes+Jg1GplEbIkZ1Y0FPair8p+iiAJxGEhuG6A+vqaEBQlFJmrGQdZSH5QwayG5K+ qQnKOWXTmrTAIOXt2h/kqOZNdz++jTmAlMMBFxyRZ10Ua2AzX3E+cRrP/x6UehDyCC+D eC6/eWCfBk7yZ9K/dhLqCYFgjZYS1GUEW8fQp64g7F7fpEMNnL/BtvSdS5sg3emmTRkd QVNRDpyeu/Bp9pbZfxQbF6jyVklWRXlRgHzPfVMJip3OQpwtPvqrMbUbHJUgUgKClRnU sRJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="O/ph2IYR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a1709061e0c00b006f3b16423ebsi13794685ejj.620.2022.05.22.19.43.37; Sun, 22 May 2022 19:44:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="O/ph2IYR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236611AbiEVFma (ORCPT + 99 others); Sun, 22 May 2022 01:42:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230091AbiEVFmY (ORCPT ); Sun, 22 May 2022 01:42:24 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB7A43A5DF for ; Sat, 21 May 2022 22:42:21 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id oe17-20020a17090b395100b001df77d29587so14769065pjb.2 for ; Sat, 21 May 2022 22:42:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bBI59+/Mk1qcvOSbPvYhnqJ5zoTVecAGEJlppXiLu6Y=; b=O/ph2IYRp0V2AhfsaXi9hMpSgWZnCWLqgH2Y1fhsQ4BTcb29O2tpqYIvertEUoZJvU 2KyONSlo9FbFjT/ZgjQcJ2mXq9Ax980XqP34dHTA7HV/j9BfKN6Tbwdgtz++f51xT9vI aRe0v+4hxg4W+myKeX1IARf5Adt41maG9WVkk5N4nzzBp9yG2MxFucBsNn2MlDcpPMrZ 8ERA+hOm01p9hg38D7aZcddaBNMl3OhjzwM4fwCmDLB15Yzx0onEil3kIcst6U2oqXtA JYtmPIOrcvaQEjIHl40Sl7arNZbd5D0olOBrO2HH0W0Riy+P+PGQMlu7aA4PcA+vVJRq GJ8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bBI59+/Mk1qcvOSbPvYhnqJ5zoTVecAGEJlppXiLu6Y=; b=tXJwuHdJxEp9EssQDlRGPrnUVcVqH6LKiBLljeUL1ucOjw6WpD+736TyLy1oBdsW0S tDbjKaFJIIUqBbVY71GOmjlUb+S/7rEYBjdBzoBord2Nwki47L4HOMox2Jq5i3Uw3Xuq cm26lQuJVSR3Uqug5++eH2C2jEohOci+i/32emeM38pwgUBElyyDSAYGjjYBD181hUl5 DkslfPetC78nH5dox+WHg7sfAvH1WL0TtYFZTxZrIXbfDNJ65he6+Z03J4dsK1sdx3zV h+ubN4no+ZssSXrclmrPPak9KoxUeKHU1owQ9Pgy7q8o4Jp0ifUdmToZxLvpVfdicNP2 lPag== X-Gm-Message-State: AOAM530LPg92ZLY8xs7zUNmX9IAbY8w7cucw1SJLJ0RCk5bNwt1KUh6j 2gOG/lExAU92K/LwfgtqtaXXmxMu9tPoa4xuLXS7Ow== X-Received: by 2002:a17:902:b094:b0:15c:dee8:74c8 with SMTP id p20-20020a170902b09400b0015cdee874c8mr17212912plr.6.1653198141149; Sat, 21 May 2022 22:42:21 -0700 (PDT) MIME-Version: 1.0 References: <0c73ce5c-3625-6187-820e-1277e168b3bc@openvz.org> <1621d82a-439d-0657-2b7e-5e90c42c2087@openvz.org> In-Reply-To: From: Shakeel Butt Date: Sat, 21 May 2022 22:42:10 -0700 Message-ID: Subject: Re: [PATCH v4] tracing: add 'accounted' entry into output of allocation tracepoints To: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: Vasily Averin , Andrew Morton , kernel@openvz.org, LKML , Steven Rostedt , Ingo Molnar , Linux MM , Roman Gushchin , Vlastimil Babka , Matthew Wilcox , Joonsoo Kim , David Rientjes , Pekka Enberg , Christoph Lameter , Michal Hocko , Muchun Song Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 21, 2022 at 10:19 PM Hyeonggon Yoo <42.hyeyoo@gmail.com> wrote: > [...] > > No strong opinion but just a concern that maybe later someone want add > something similar like 'reclaimable=true/false', 'dma=true/false', ... > and I would prefer more general solution. (especially if we'll not > change tracepoints after release because of backward compatibility) > There is no contract for tracepoints to be stable and can be changed. > > For my task it's not important to know SLAB flags, I just need to understand, > > is current allocation accounted or not. > > SLAB_ACCOUNT, SLAB_RECLAIM_ACCOUNT, SLAB_DMA, ... etc are SLAB flags. > > 'if current allocation is accounted or not' depends on SLAB_ACCOUNT > flag is set or not. > allocation can be accounted due to __GFP_ACCOUNT as well.