Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4546938ioo; Tue, 31 May 2022 06:51:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyheEOi4Y/yvwFCfZb0KITuUpQeNJ3dP3COR5GToV1J9KRNI5pVBonQKX32Ha4DlKr+h2vj X-Received: by 2002:a17:906:50b:b0:6ff:3049:946b with SMTP id j11-20020a170906050b00b006ff3049946bmr19738082eja.524.1654005106228; Tue, 31 May 2022 06:51:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654005106; cv=none; d=google.com; s=arc-20160816; b=XAD01wqO39LFJNVmVQHKXlwilaDCoR99n7w8vhvMfj77XqkW05K3JW0QPm76m4056e RAdfbiZtkg/Nwet1L2wCcKB0XnAUZu0Jamrq4tEUuMVUoGWuw9DuiUfgqScHec0diYiK qmDl7sVhTDk9UGZBxDWwsDGm2rGdhyxRGdf6OiP/aeDJ1g+OmeZap8YIxE1ZsvuWColT JHgAA3JyrucarptXqtAyxpl9G8AUUX81aziijKUFz095LiWdQy0ZNLCEbMq3SVcXE8ZZ auuErsnUKARFr/wFSnUlE65RU+xhKtzFJeU1OvcAlgWlIfVubP5V8B+5XMQ3KoO74P3n JuWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jZI6WVqWeYgtBaY+QfPTn8jMgzc1eYPXPJ030wAMSgY=; b=XEb78aqgncqrFS7A8wyuvq6sN0sHX8rxoBbXo9lXu86e4LbLhFcQwdBrqvX5RiMEJs 0gFO457z87IPP4LiaccpwajjBjbwEWmMgPxGGStGf6up1DnLI0OKjjnXgJ1d9FxJ4o/O jIkeJ4LjJUDH5xhM5q/T4+990T9RTN4Py5pS0OY8BgZD5VUyXctOKcIG45bpeejXNyt+ ASu9hSaM6Vipsu414jt/PRtVY7fwby4B/6Rkk0gETNISJ7x/kxmM54AxEcTrdqdzEHl6 Dwz1RcTdSiPCgbfzB6wY2wZ46AtosoCxllo/gazYdhW7xgbm2B7D4fUhJ2Btm/eRFmQw K1/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=tu7dZq2f; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm21-20020a170907949500b006e88eb763dasi1926862ejc.660.2022.05.31.06.51.20; Tue, 31 May 2022 06:51:46 -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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=tu7dZq2f; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233821AbiE3IZv (ORCPT + 99 others); Mon, 30 May 2022 04:25:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbiE3IZu (ORCPT ); Mon, 30 May 2022 04:25:50 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9742170366 for ; Mon, 30 May 2022 01:25:49 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id b135so9953673pfb.12 for ; Mon, 30 May 2022 01:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=jZI6WVqWeYgtBaY+QfPTn8jMgzc1eYPXPJ030wAMSgY=; b=tu7dZq2fa+/+cBLFAnJ9WpUxgjW8BRP2wCO8KDg6zJ1sVpv8ObnsyOCZomVzCE51WC /YN0WtyzjKOn0odpnTxPx3Y1g3wSZjCQgjqH1Q7vKyRydmS+yt4x5g+wwUkM0oMnf9be Tq/ffy+Girj1TD5MBIFw0jF5vPqCt5Ik7S5lZ3TDrMxbxXWkT8iHUq8yMg3/fNASr7yk cJql96YDFQv3N7/rMm1ljSrsArm8BFpK3LJ193qpGoUmqP4I1PgnaQW53/yf+jimyTcg Bcrpdd3nbjgbn5KqW/GDNthbWmTNZyxnL13r9IsbId0h+N5qq0gMnqpVP3fdTbiO3q5o +uiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jZI6WVqWeYgtBaY+QfPTn8jMgzc1eYPXPJ030wAMSgY=; b=N1Fvs/AMCj+W6bTxpXe/xqToZFUInUkPpurk41JkGVvwC+25KSFiEkcUAA8sOyyP4P 6Zh1rQP5S8eAECSOBQ2gQxuyb/wq6wsLjgc4Sl41/RgQ6wHjRazJgCjA4+Rbs+qytooo 1SprQanOhHj2sGfXIQKLDRxF+F84d4sYGspo3+AAclvr5QjNQdJCZg8iB1B124l8vM6K n4XdH65y/dCCtqcjFPEZ6y2WrSiVKb77sBICdl7PkiVyhG7d1RI66nMtbcN8jGnJA4O7 zFVelwbmyEW0a3r4y0IilUt4Lcp/zKJZJrDFO6gxtO51eixkdZ7VoiHNWc2tWA2/hMR5 Pb5w== X-Gm-Message-State: AOAM533auDIEIbRgIRykFTfEGCKlpDzV7Uz3neScZBUBrFZRfzBZTXcI JF6Vv4pk2AO+2N5c8qAxGsxfgg== X-Received: by 2002:a63:7781:0:b0:3f6:2c8f:5c75 with SMTP id s123-20020a637781000000b003f62c8f5c75mr47260605pgc.358.1653899149165; Mon, 30 May 2022 01:25:49 -0700 (PDT) Received: from localhost ([2408:8207:18da:2310:2071:e13a:8aa:cacf]) by smtp.gmail.com with ESMTPSA id f66-20020a636a45000000b003c14af50603sm7927993pgc.27.2022.05.30.01.25.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 01:25:48 -0700 (PDT) Date: Mon, 30 May 2022 16:25:42 +0800 From: Muchun Song To: Vasily Averin Cc: Vlastimil Babka , kernel@openvz.org, linux-kernel@vger.kernel.org, Steven Rostedt , Ingo Molnar , Andrew Morton , linux-mm@kvack.org, Shakeel Butt , Roman Gushchin , Matthew Wilcox , Joonsoo Kim , David Rientjes , Pekka Enberg , Christoph Lameter , Michal Hocko , Hyeonggon Yoo <42.hyeyoo@gmail.com> Subject: Re: [PATCH v5] tracing: add 'accounted' entry into output of allocation tracepoints Message-ID: References: <80bcb043-3782-1d81-d8a2-4bdcb213cf30@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <80bcb043-3782-1d81-d8a2-4bdcb213cf30@openvz.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Mon, May 30, 2022 at 10:47:26AM +0300, Vasily Averin wrote: > Slab caches marked with SLAB_ACCOUNT force accounting for every > allocation from this cache even if __GFP_ACCOUNT flag is not passed. > Unfortunately, at the moment this flag is not visible in ftrace output, > and this makes it difficult to analyze the accounted allocations. > > This patch adds boolean "accounted" entry into trace output, > and set it to 'true' for calls used __GFP_ACCOUNT flag and > for allocations from caches marked with SLAB_ACCOUNT. > > Signed-off-by: Vasily Averin Acked-by: Muchun Song Thanks.