Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp191105rdh; Thu, 23 Nov 2023 00:46:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmrxEh70YxMOKXTJSMtAZnLMy6Os3AsXoLt0N7gMJUhJHtuQd80LRpXr1EeVtpGY71vExV X-Received: by 2002:a05:6a20:e117:b0:18a:da90:68ec with SMTP id kr23-20020a056a20e11700b0018ada9068ecmr2572514pzb.2.1700729183487; Thu, 23 Nov 2023 00:46:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700729183; cv=none; d=google.com; s=arc-20160816; b=XQxe/y4pkMJJLgOawn6A71olXssK9olKvcegtnS0DCXJUA1zlk9EG23dlaJ9oY7iqC va7vRA9uMTnlPhqNtTfhhXojmfcT4z9KMR+QHY6X0uVVHuSejIWM1vq0vhN+WW/kOpLZ VQPHeldoBJfHnt+f/H7kfjLz6T46MK6rZtDy70CpDQH51ZNGtSRIJdqWnuyvMDWoyvdM k+y4yVFr6Ky508D2xibFtFOTBlsqH1/kW2tcNcPBJSNJe++7b2II+E+lfBTaGw8d7Ixn IZw3lFhZrgAWGdmv2+SiTDS751lbHhjbw/njkcqh9oGnjZ61r25UL3Idn7D2Z+gQTrKn GQow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=k/7vxiY5zeoTfQ1bw6Cwc7xvQr3MSHEmQlGxKNyL2pk=; fh=+S6jYKQofpqFY3GIqSLJSt8+bEIrqANTNVz3XlYQPHY=; b=EYLVYqgHw5OmRB44qAS7aJ0PfTNNgFT4auKhXH4vVqhqV+5cN2h/yPlYXl26S98N+k f4lgqAi97Je8V6Iav1N9wXIjc0myvbgh8Fwh+Dj1SZ6zoMgVOjKwksCpSZai0oFdgHeF CT2e9rmXaC4GcMuKlix9bPrXnGRSREqSIJlnk+bGJhz61oA4IsDTk3kYATGh2T5m6EAK eNc4KR7Yr6SVgH2OSehoYHTzyKyExhSStVEmpA8210GOsbON9kTRT4TTcBWEQFt0lsfI UPxdfmMBBMVjrJhRV01M09edxanQx+QdwuajEAd61RPzoWu2/azcWhfdrsR9PMANEs5N MZ4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=XY3DeP5s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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. [23.128.96.38]) by mx.google.com with ESMTPS id e10-20020aa798ca000000b006bf840df9bdsi833948pfm.27.2023.11.23.00.46.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 00:46:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=XY3DeP5s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 DE33282E74DF; Thu, 23 Nov 2023 00:45:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344980AbjKWIpR (ORCPT + 99 others); Thu, 23 Nov 2023 03:45:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbjKWIpO (ORCPT ); Thu, 23 Nov 2023 03:45:14 -0500 Received: from mx1.sberdevices.ru (mx2.sberdevices.ru [45.89.224.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C47281BF; Thu, 23 Nov 2023 00:45:18 -0800 (PST) Received: from p-infra-ksmg-sc-msk02 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id F1F25120002; Thu, 23 Nov 2023 11:45:15 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru F1F25120002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1700729115; bh=k/7vxiY5zeoTfQ1bw6Cwc7xvQr3MSHEmQlGxKNyL2pk=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:From; b=XY3DeP5sB2Q9aYHR9//a4sv7k57jPA0BYaKk3gVPw1I2i02N8NLP3VjHtRiDO12wa U9rizn6PXynLquIkV7Ub9FDKm4eUFMgQNs0UznUAi+zYtp5BzGDXZweVw5pbvPHmb3 5V0AShrc+q4v7wa95sQuK5jpBsHo9sPr5wo88nMwhOG2P7H0y4ATR0t35dv6InlaMO ftKs5Me4qHBqOfbbOD3cWmKRfGD9eN/4bO2EOKZfElgVIGuE5Sv3NXLf1TLDcX8Oa6 UXK1mKHpZeYys4gGYhlfwYZmZt/R6v23wYJi4PizpKhAGKgW5iV5mHN1NXZCxn6Zon NinIm6kkbsNWg== 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; Thu, 23 Nov 2023 11:45:15 +0300 (MSK) Received: from localhost (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.40; Thu, 23 Nov 2023 11:45:15 +0300 Date: Thu, 23 Nov 2023 11:45:10 +0300 From: Dmitry Rokosov To: Shakeel Butt CC: , , , , , , , , , , , , Subject: Re: [PATCH v2 1/2] mm: memcg: print out cgroup name in the memcg tracepoints Message-ID: <20231123084510.wwnkjyrrbp5vltkg@CAB-WSD-L081021> References: <20231122100156.6568-1-ddrokosov@salutedevices.com> <20231122100156.6568-2-ddrokosov@salutedevices.com> <20231123072126.jpukmc6rqmzckdw2@google.com> <20231123080334.5owfpg7zl4nzeh4t@CAB-WSD-L081021> <20231123081547.7fbxd4ts3qohrioq@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20231123081547.7fbxd4ts3qohrioq@google.com> User-Agent: NeoMutt/20220415 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: 181552 [Nov 23 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: 3 0.3.3 e5c6a18a9a9bff0226d530c5b790210c0bd117c8, {Track_E25351}, {Tracking_from_domain_doesnt_match_to}, 100.64.160.123:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;127.0.0.199:7.1.2;salutedevices.com:7.1.1;p-i-exch-sc-m01.sberdevices.ru:5.0.1,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/23 06:37:00 #22507858 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 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]); Thu, 23 Nov 2023 00:45:50 -0800 (PST) On Thu, Nov 23, 2023 at 08:15:47AM +0000, Shakeel Butt wrote: > On Thu, Nov 23, 2023 at 11:03:34AM +0300, Dmitry Rokosov wrote: > [...] > > > > + cgroup_name(memcg->css.cgroup, > > > > + __entry->name, > > > > + sizeof(__entry->name)); > > > > > > Any reason not to use cgroup_ino? cgroup_name may conflict and be > > > ambiguous. > > > > I actually didn't consider it, as the cgroup name serves as a clear tag > > for filtering the appropriate cgroup in the entire trace file. However, > > you are correct that there might be conflicts with cgroup names. > > Therefore, it might be better to display both tags: ino and name. What > > do you think on this? > > > > I can see putting cgroup name can avoid pre or post processing, so > putting both are fine. Though keep in mind that cgroup_name acquires a > lock which may impact the applications running on the system. Are you talking about kernfs_rename_lock? Yes, it's acquired each time... Unfortunatelly, I don't know a way to save cgroup_name one time somehow... -- Thank you, Dmitry