Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp596140iob; Wed, 18 May 2022 08:48:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyD6N5JF48KZBUkLi7Om2ndh7fBQAXvpxhJTUVKw8vJzD8HJkPxu26Qkc9zxD44cT3tgUK X-Received: by 2002:a63:d747:0:b0:3db:74a9:ff92 with SMTP id w7-20020a63d747000000b003db74a9ff92mr91232pgi.293.1652888936750; Wed, 18 May 2022 08:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652888936; cv=none; d=google.com; s=arc-20160816; b=AffdMwY0fnfx76ujGeVkr2pfLtj8t2tDZ3q9BVGEdOVgM9xm3iFspp2heU6BOnD0Nb b7bclNQn4jmLCs4Mrism9QWMNkMiYtYEooNmqZFWmRKh0TmLHjieFFAiTnfWLkzBCvLB 4vDf7d3wM9ykTfb8b4dsdW67agYyfahTcm3PtVAaILBa7h5C/BMiuCOLHFyKzvnT4Mcq ju9Ael5nWtdoBK8j4QzYhSzGXiwvbziEjbpx0OQOGPnknvWDpVCBLqbUF4KkSSMROXbJ 5rs/0z9wCIecfpSliEgX4UoTgh1vtB3yiYxwVNs8iCb8sq9x9UJS8Rc6L9gJqpOfS5O6 Ryiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :reply-to:cc:to:content-language:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=WFeKDO/VHFPn7sSKJvdp5rRQttV67/H6JQIVb2h+Lew=; b=FEj8IXFoNbx9cUObVAL8brQTgznNwuzhmNHdgNTG7vdSg0daU+BNdIwchvCtWwIFV8 DrZUM9jb3i71FFSWJnvuB7AxxbSn2tWY/ONIt9uweFbxZr3GtiwOHWtaipuhIHBjARNE Bv6f0XnFVvSdXLUMBirh9SN+uBbKj+VwKdufFFDTonKZ3SUGiw0p3dabVw2Bus3fszzM p4rfTiqNk28qJxvEE7eY/kjoI9WEpuQWTiSZx8wXnLikbcOhAVf93woKLAZDrN4pwuP8 FKEGNQ4YsctBRgttJ4RylX4F63Cv4QNM+tT7fpiDkcim6b2ftjwFVNL3JjJza7gOOze3 e1aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz-org.20210112.gappssmtp.com header.s=20210112 header.b=FtJwEd5h; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=openvz.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p21-20020a170902a41500b001567b004ecdsi2929238plq.551.2022.05.18.08.48.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 08:48:56 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@openvz-org.20210112.gappssmtp.com header.s=20210112 header.b=FtJwEd5h; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=openvz.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2A61D11801B; Wed, 18 May 2022 08:45:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239549AbiERPpN (ORCPT + 99 others); Wed, 18 May 2022 11:45:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239499AbiERPpL (ORCPT ); Wed, 18 May 2022 11:45:11 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2AB0104CB2 for ; Wed, 18 May 2022 08:45:09 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id u23so4386613lfc.1 for ; Wed, 18 May 2022 08:45:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz-org.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:from:subject :content-language:to:cc:reply-to:references:in-reply-to :content-transfer-encoding; bh=WFeKDO/VHFPn7sSKJvdp5rRQttV67/H6JQIVb2h+Lew=; b=FtJwEd5hZYGsYGXklHIsz4wUillFNlgExaPbFXh7Eu7rj5iGUqELqQcIahNvGQfuXN 2ciMPRxfgBUABdXfjuOypcGm6fyupODT1heXwvf5ZcJKV31Pbi8D0j+JjwMUmw3GhdxU Do999nONM4wkEr/XQsQdaRy1cB3aJP6z2wKaFLEZnniZyniO6Vfpj/Y6kO0YoKELh65T IUvBFYtdqyXLN+fv2GishwxCEUW6/TJ8MsTp36zO0msGOlHWuE51ku2Ox4zUI556TU3h O+9pDEAQ7/0MV/2povvP2gHWnyzfeaomMsZjY6UgQwC0ihloUjToEzrrUUkUr2uBTPxY qz8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:content-language:to:cc:reply-to:references:in-reply-to :content-transfer-encoding; bh=WFeKDO/VHFPn7sSKJvdp5rRQttV67/H6JQIVb2h+Lew=; b=tXmO0tD8pp0Xw1n/WWGP6PzMHqH4ND2Vo7wPCLVKuMtwl0qmI/mNm5uD3x4vbJLNiD tqieZnF5ljJNqPkzCaL6ZKKCydlE3JtdggyF7tFZucnKGFpqcmcsgETwrGhEi8BvQjv/ dFTcTadeAPXZsKNreXJPH93l629YrX/aaBIrdGoPdq6bQJZU0NSkTWJuMhiwgDAcupkt cm8zviV2pd/vtGCK3Eb2o45aGCNfHjWfsW5a6/uUlnVR1X7CN58Du+63itN/hMICcKku x/ToBn6+Iw7D0D5M8+IsAtXSaEn5IV2hZzzF5Nbyuc1/JJzF5SBOLoQGGN6gDJKuyYUr atIw== X-Gm-Message-State: AOAM533gEzti3nMdpm4Eo3twhgr6gbT/769sO8VjQmEu52JgkJMO3JG0 Hi/uo7zIQY6evIU86FAYkgAULQ== X-Received: by 2002:a05:6512:2510:b0:474:2364:bf5e with SMTP id be16-20020a056512251000b004742364bf5emr73125lfb.323.1652888708015; Wed, 18 May 2022 08:45:08 -0700 (PDT) Received: from [192.168.43.196] ([185.174.128.243]) by smtp.gmail.com with ESMTPSA id q12-20020a2eb4ac000000b00250749dab23sm250094ljm.99.2022.05.18.08.45.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 May 2022 08:45:07 -0700 (PDT) Message-ID: Date: Wed, 18 May 2022 18:45:04 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 From: Vasily Averin Subject: Re: [PATCH v3] tracing: add 'accounted' entry into output of allocation tracepoints Content-Language: en-US To: Steven Rostedt , Shakeel Butt , Roman Gushchin , Vlastimil Babka , Matthew Wilcox , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Muchun Song Cc: kernel@openvz.org, linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , linux-mm@kvack.org, Joonsoo Kim , David Rientjes , Pekka Enberg , Christoph Lameter , Michal Hocko Reply-To: YoPOhRctb8wwbmY5@carbon References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 5/18/22 09:24, 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 "allocated" entry into trace output, not "allocated" but "accounted" > 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