Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp806306rdb; Wed, 1 Nov 2023 03:29:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGACubAwAPpY0Hl2zdSDIQbT3yMp0lCTZk33KW7qkNHSjkQXr8Rli/FqJTIkIfbD+H/+77Y X-Received: by 2002:a05:6808:1281:b0:3ae:4cab:526a with SMTP id a1-20020a056808128100b003ae4cab526amr20613195oiw.14.1698834585765; Wed, 01 Nov 2023 03:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698834585; cv=none; d=google.com; s=arc-20160816; b=Uu08ge6bnuSur9wpUKuVnL8qRSUYj9hVOEph5IdlsmkvvcPQduTVWJLG5ALb+9SF1d PTzrP8XBaBb4p9hFwQkG/pdZupCxAa7QlzZkTKv09G3ZQmvniuBYR6mRcp308ReWuWsu z04Nk/tA3jkyKZoUCEE9KBb3Xs4Hpa5+ZMELMxctkpfB7eJu1xrEXDOzEk4LocZ6JO17 2No9i9Q/g1lg7RD+QU4+BWNSgSjMh2RZboD6fw2ZXLEsX0d3eO5m+vbCAHd6qaQJnlMZ YQUDqL0Rhq7K+JVwcVpWOvWx9wZd0nTcCrjhRTEupej/8StLUiqSvy5p2NJsM0dOiZ+q AgIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=QCGIxegnR2+PoSRp6JvHbydNNRPYlzZhJM6GnWlPEnA=; fh=6HW1/sDFksNxjGY3z9UIHSMnLIo8GORD5jVs7Zji69k=; b=Ba/qrbSZo85rkq1IjbzJdAZbVvly7WdZr3AXIxtbWXOebcKNPMFoaxBYP9IfgBE8J/ 3aPbBvgYFP6HnZr8EVSJitlYdRVzJQDu6g295pmmPcv6MJSfWPoyVSd5rnKBcPFde+Pq CrAUd7RCDyXrVfQgUuNwJ3UFA9F6cqSVu7ombiAjG9avk4dL3mhFipvd/H11UizAmAz4 d0N3Cl+ApYbBcE47HqEU7hPeDnCP8vxbodqcCUxhR/bn9UTqU3WdZkKQ2nCZ0HE2zhis 2XnZgRzbVTQ9ryzdb3Zhup6pZluN+UA+A6wTI/udhJrNQjwi2Kmczeg42K6kdN6N63ua rK9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b="h/Y4OL1c"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id h12-20020a056a00218c00b006be30258e50si1416271pfi.226.2023.11.01.03.29.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 03:29:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b="h/Y4OL1c"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9E66380A18CA; Wed, 1 Nov 2023 03:29:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235101AbjKAK3A (ORCPT + 99 others); Wed, 1 Nov 2023 06:29:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235086AbjKAK26 (ORCPT ); Wed, 1 Nov 2023 06:28:58 -0400 Received: from mx1.sberdevices.ru (mx2.sberdevices.ru [45.89.224.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70AE9DA; Wed, 1 Nov 2023 03:28:52 -0700 (PDT) Received: from p-infra-ksmg-sc-msk02 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id 06658120034; Wed, 1 Nov 2023 13:28:49 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru 06658120034 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1698834529; bh=QCGIxegnR2+PoSRp6JvHbydNNRPYlzZhJM6GnWlPEnA=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=h/Y4OL1cj2+uFZ5n1C6kQS9s+UmO7hoHoXXkgIHzwkAg3Dt7qHVBQ+odYU1zso4/b xJldyr2ddaaABjT/Xw/kdJDHRp/W21qlHPO9vFl11JHiSaDxQ/WFmpRdzboQjTxoMI gBGafiq3bJ5CLI55TgteCqfwhqNw76KIRkHbwutjM/AGnbZVJkWNUgAxHZsSJz4kP0 2NMlAsn2H4dZbkppqWlHgl81FLSH5iAj2CRhGgHi3iqmCWrhr0WvHiG/nWYJXOuUpe wU6Kth/q+Pxxg9UYTm5vPAgu2DuJmwqlAJmm6jKOjN++jPS/7n9cXpAPG5JzNrDtgJ XJDuEvC3iTo/g== Received: from p-i-exch-sc-m01.sberdevices.ru (p-i-exch-sc-m01.sberdevices.ru [172.16.192.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Wed, 1 Nov 2023 13:28:48 +0300 (MSK) Received: from localhost.localdomain (100.64.160.123) by p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Wed, 1 Nov 2023 13:28:48 +0300 From: Dmitry Rokosov To: , , , , , , , CC: , , , , , , Dmitry Rokosov Subject: [PATCH v1 0/2] mm: memcg: improve vmscan tracepoints Date: Wed, 1 Nov 2023 13:28:35 +0300 Message-ID: <20231101102837.25205-1-ddrokosov@salutedevices.com> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [100.64.160.123] X-ClientProxiedBy: p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) To p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 181040 [Nov 01 2023] X-KSMG-AntiSpam-Version: 6.0.0.2 X-KSMG-AntiSpam-Envelope-From: ddrokosov@salutedevices.com X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 543 543 1e3516af5cdd92079dfeb0e292c8747a62cb1ee4, {Tracking_from_domain_doesnt_match_to}, 100.64.160.123:7.1.2;p-i-exch-sc-m01.sberdevices.ru:7.1.1,5.0.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;127.0.0.199:7.1.2;salutedevices.com:7.1.1, FromAlignment: s, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean X-KSMG-LinksScanning: Clean X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2023/11/01 06:18:00 #22376334 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 01 Nov 2023 03:29:37 -0700 (PDT) From: Dmitry Rokosov The motivation behind this commit is to enhance the traceability and understanding of memcg events. By integrating the function cgroup_name() into the existing memcg tracepoints, this patch series introduces a new tracepoint template for the begin() and end() events. It utilizes a static __array() to store the cgroup name, enabling developers to easily identify the cgroup associated with a specific memcg tracepoint event. Additionally, this patch series introduces new shrink_memcg tracepoints to facilitate non-direct memcg reclaim tracing and debugging. Dmitry Rokosov (2): mm: memcg: print out cgroup name in the memcg tracepoints mm: memcg: introduce new event to trace shrink_memcg include/trace/events/vmscan.h | 91 ++++++++++++++++++++++++++++++----- mm/vmscan.c | 15 ++++-- 2 files changed, 90 insertions(+), 16 deletions(-) -- 2.25.1