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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAE9AC433EF for ; Wed, 18 May 2022 15:45:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 433F18D0001; Wed, 18 May 2022 11:45:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3E3026B0075; Wed, 18 May 2022 11:45:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2AB4B8D0001; Wed, 18 May 2022 11:45:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 1DDF26B0074 for ; Wed, 18 May 2022 11:45:11 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id E102160367 for ; Wed, 18 May 2022 15:45:10 +0000 (UTC) X-FDA: 79479287580.25.D57179A Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) by imf03.hostedemail.com (Postfix) with ESMTP id A2026200BE for ; Wed, 18 May 2022 15:44:59 +0000 (UTC) Received: by mail-lf1-f51.google.com with SMTP id v8so2419869lfd.8 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=sxitaP0emFwvFmxrRWtgC3TR8oZIdRRW8VJ7ptm3qPZBUYvWkPfqka3IYRmzxzN+dH qdqr2SkZzovFz/sxz6z+ji2XWsy+M2Ykhy9RQQ6q0/8rVBSZ4JHek9oWSFAW/VlaXnP4 eksmUsea/4WNvJrW67DHus3RzQeNpMZuJ8G4qsHY5v4xrU46WVxVRg/S3UkCt34v4q49 QnvH7lFAMiu0weLv82AS/K7wmwRpGdhrMh5LuMOWqoA2SqSfm7pyGcvFJjsO8JkHWs+3 5G+jw/n+8g0yytit9VX2vQ3BcRH0SjCZcS1je3mi+ZwbXH5Bl59llGVkfvfm90U1P884 zG8Q== X-Gm-Message-State: AOAM531KEs2AFTvYjMjZtnhB0siwlxRfIXHoTMrIEUwNOU+ccdPYwGwK 0nUk2QFLzGsG4EFeQ4+K8fnnbQ== X-Google-Smtp-Source: ABdhPJxEfW0QIGSFKHOrNYaqEQ/egx0URLtZZaAW315P4SG1tCIOZHy62LH+wcdfgD7PSfQ+XKHzuw== 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.kvack.org References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: A2026200BE X-Stat-Signature: pi6onmdcjbfbtbyznqgur9k13rak84r1 Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=openvz-org.20210112.gappssmtp.com header.s=20210112 header.b=FtJwEd5h; dmarc=pass (policy=none) header.from=openvz.org; spf=pass (imf03.hostedemail.com: domain of vvs@openvz.org designates 209.85.167.51 as permitted sender) smtp.mailfrom=vvs@openvz.org X-Rspam-User: X-HE-Tag: 1652888699-825451 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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