Message ID | 20231101102837.25205-1-ddrokosov@salutedevices.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:abcd:0:b0:403:3b70:6f57 with SMTP id f13csp314796vqx; Wed, 1 Nov 2023 03:29:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFKT6jQkbeXOtsLjsdRy/1LIXTS+jQiO3QIodgsrGdrjLebBBjUJGUSjJhy+OXuuNWROGoy X-Received: by 2002:a05:6a20:2451:b0:15d:2bff:77b with SMTP id t17-20020a056a20245100b0015d2bff077bmr14659497pzc.34.1698834590028; Wed, 01 Nov 2023 03:29:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698834590; cv=none; d=google.com; s=arc-20160816; b=qXaPK70qDez1DV1xD3RSK3RZKyW19R0t3rACdQ9hx07xUlhw9EHHTv8icdtbDcK/q/ aUoQrzT5OgCpwyI0Ig23NpNFSZfX6iRLrcJttYD9lV5Vw/hs4REDnR1xAIIIB3mI8PO6 TU5kWMMwE9I1BGnM/8prRm84gPtsqjp14ye3L9LAUdgVEaCPj1shoovFZnIMqxPWq9fS BzBewK0p22bHiQBAogXUZPBiPVptRZhL25cwAyFm2WZuJp1kQbM0KOBGvzltEJCzmIgx 92WRUibA+3DqiVzWQ4e7/MGFXTjRKdMBGqUxg5GfHyNzDYpmj5V0Psy1Hoi+cldveF7W orSA== 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 Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bk23-20020a17090b081700b002773d013d02si531487pjb.140.2023.11.01.03.29.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 03:29:50 -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 1D29B80A18DF; 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 S235103AbjKAK3B (ORCPT <rfc822;rbbytesnap@gmail.com> + 35 others); Wed, 1 Nov 2023 06:29:01 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <ddrokosov@salutedevices.com> To: <rostedt@goodmis.org>, <mhiramat@kernel.org>, <hannes@cmpxchg.org>, <mhocko@kernel.org>, <roman.gushchin@linux.dev>, <shakeelb@google.com>, <muchun.song@linux.dev>, <akpm@linux-foundation.org> CC: <kernel@sberdevices.ru>, <rockosov@gmail.com>, <cgroups@vger.kernel.org>, <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, <bpf@vger.kernel.org>, Dmitry Rokosov <ddrokosov@sberdevices.ru> 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.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR,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: <linux-kernel.vger.kernel.org> 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:38 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781357179043518975 X-GMAIL-MSGID: 1781357179043518975 |
Series |
mm: memcg: improve vmscan tracepoints
|
|
Message
Dmitry Rokosov
Nov. 1, 2023, 10:28 a.m. UTC
From: Dmitry Rokosov <ddrokosov@sberdevices.ru>
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(-)