Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2415149rbb; Wed, 28 Feb 2024 00:36:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW240vUpAaGh0JK6n8dCbxx8QbYuhNACaQMJWdCmTR6u3j1c3nSpb0TB5VXfOh//Eu3+gDUM5KYkrgUW+s22p/cZAV2nYdai9ENB4gIfQ== X-Google-Smtp-Source: AGHT+IGBSQYbB6A/NktlL9P/Hml+lcuO70tx/tVoK926iAqxkIh4hMhWR2JHpPC31pzKPD4nI/Ky X-Received: by 2002:a05:6358:76a5:b0:17b:7a2a:5cfa with SMTP id e37-20020a05635876a500b0017b7a2a5cfamr15172210rwg.2.1709109402919; Wed, 28 Feb 2024 00:36:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709109402; cv=pass; d=google.com; s=arc-20160816; b=DPeEsES+0vuhLXhWYncoavDLTSsMnnXsOHuH/A9U4GTkqqP/a1+w4lzOO3eSzpu2YZ IuG/UiZ/y1lLiyL5VTbLkoI1ke09a35TfFm6nyZSuUfzUAROC4MdWjoNS4MIEx4af4wK GTWmr3PIoStnMco3+J0C3J3jp3v8C5ewT9OcElrQh/GGDia1T+57icwxU6TFg09rPvtW pbPo8Mog3BZim9EN2tqXqV6IxFzSzXVOBU14dEADFk0sEq/IsAwTR2JHQZXJDVCkkNLd o2+7yoPF0t06LMPQ1nIhhxlY946TrdPiuywf+0dmgYbyBSf5tn76NVCoxkK/PYwg8rTe vE5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=+HoIz2Qi98NBEh6aNkVpIyLsbtr/CQMlELkE74c1McU=; fh=AROQU2KCH7NyZd+GSF5Ja6si3COSfc75C77I0os5n1k=; b=CCYLiQTJkWajHWy5gA0hE5kG06UC7GVo1qPKpqRCochoG3A99a/wobpaAU6+z20YLR tuG1AHguvcpCMs08hsFzwBnyd+tZ7V3qdSXAvEk/hqChlIleXAluS34Loe8JQzxD5M2B KrzOACOkn0P4dSEk+gobE40E0KzoyoJNh3utIs8nnoPQv0sUrkwfyZ4t9cR1UxzET9KI zPi2Va2+WXWzF6AXf0QDn+/nnu88CfFZr25RaFk58CtdShVs0jTte9F5WhYx7fg4kO5e QCWscdFm/kuVb7p7NmmkPqxszQ48ZJK5x+RjTklL7HCEa27gpHudkjo2eCUEePgfNTfQ ZO7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=NTHWxN9u; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=NTHWxN9u; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-84672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84672-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i33-20020a632221000000b005c6b59c91bbsi6971633pgi.654.2024.02.28.00.36.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 00:36:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=NTHWxN9u; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=NTHWxN9u; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-84672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84672-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 05AC2B21A47 for ; Wed, 28 Feb 2024 08:29:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E24B2D05C; Wed, 28 Feb 2024 08:29:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="NTHWxN9u"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="Kz7eaScw"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="NTHWxN9u"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="Kz7eaScw" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C843A2C85D; Wed, 28 Feb 2024 08:29:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108948; cv=none; b=eIAeC3k4+45qi57OEq9xN8rZzBHrAfJyWMA0lLYlJBojrAL5EgTJ7FJu9AVhLMGUK1krZ2/z6eZwqtoxGRqKDteMjoxXVBW1kKWOChurFQhoasfngZcivSw9A68SSMze5Y+NmNUJMnaPeiCeJmuQjH/0ziBcBmm7tNyXshd5e9o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108948; c=relaxed/simple; bh=GYCBTtrme1/vyEnFSZ2rmTOFHZ+wZlEBanSJsTMPw7k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qzvTWWEKkadSSN2la7glksoFtxMDGRZKWpa0TaqXJ/K5WJXwU8sAa+QFPuD65QRjSv3qlFE92SwUkgpk6Iek+ETGWulnmYrkzGoh6fxX62iFI3Mf9AlndtVIzsHUkbH9F8lSVjWt7fFDU72oH6aOv2DEP9oIQ3ceNRw6AjofDcI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=NTHWxN9u; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=Kz7eaScw; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=NTHWxN9u; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=Kz7eaScw; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id A0BAA2262E; Wed, 28 Feb 2024 08:29:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1709108944; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+HoIz2Qi98NBEh6aNkVpIyLsbtr/CQMlELkE74c1McU=; b=NTHWxN9ulO5ErLuP4gcTOYnNmaQsCFQdtc5+CSvK1qSM6duhZPY03zDynWgiAr3Ps+/FqA I9d3Yq0J2sd+xQ93Bbt0VKJTHIHPgz9OCriSsPTHC/y6cg9TM45uXq8YWl7oELJG+97edo 3NypH+V4B9bZ7Ul0xa2a80i+Xl0ZdXw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1709108944; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+HoIz2Qi98NBEh6aNkVpIyLsbtr/CQMlELkE74c1McU=; b=Kz7eaScwzxbvWjw0SaPKEc7jGN/VEKGTH5sed6LnSIGKuhRPu/OyQw33mkVFtMRAcWoR62 lF6+/G+iqvDQN5DQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1709108944; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+HoIz2Qi98NBEh6aNkVpIyLsbtr/CQMlELkE74c1McU=; b=NTHWxN9ulO5ErLuP4gcTOYnNmaQsCFQdtc5+CSvK1qSM6duhZPY03zDynWgiAr3Ps+/FqA I9d3Yq0J2sd+xQ93Bbt0VKJTHIHPgz9OCriSsPTHC/y6cg9TM45uXq8YWl7oELJG+97edo 3NypH+V4B9bZ7Ul0xa2a80i+Xl0ZdXw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1709108944; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+HoIz2Qi98NBEh6aNkVpIyLsbtr/CQMlELkE74c1McU=; b=Kz7eaScwzxbvWjw0SaPKEc7jGN/VEKGTH5sed6LnSIGKuhRPu/OyQw33mkVFtMRAcWoR62 lF6+/G+iqvDQN5DQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 1430F13A58; Wed, 28 Feb 2024 08:29:04 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id IqSSBNDu3mWDHQAAD6G6ig (envelope-from ); Wed, 28 Feb 2024 08:29:04 +0000 Message-ID: <1287d17e-9f9e-49a4-8db7-cf3bbbb15d02@suse.cz> Date: Wed, 28 Feb 2024 09:29:03 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 14/36] lib: add allocation tagging support for memory allocation profiling Content-Language: en-US To: Suren Baghdasaryan , akpm@linux-foundation.org Cc: kent.overstreet@linux.dev, mhocko@suse.com, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, penguin-kernel@i-love.sakura.ne.jp, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, david@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, dennis@kernel.org, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, keescook@chromium.org, ndesaulniers@google.com, vvvvvv@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, shakeelb@google.com, songmuchun@bytedance.com, jbaron@akamai.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org References: <20240221194052.927623-1-surenb@google.com> <20240221194052.927623-15-surenb@google.com> From: Vlastimil Babka In-Reply-To: <20240221194052.927623-15-surenb@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=NTHWxN9u; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=Kz7eaScw X-Spamd-Result: default: False [-2.41 / 50.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; XM_UA_NO_VERSION(0.01)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[suse.cz:+]; MX_GOOD(-0.01)[]; RCPT_COUNT_GT_50(0.00)[74]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; BAYES_HAM(-2.11)[95.70%]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; RCVD_DKIM_ARC_DNSWL_HI(-1.00)[]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DNSWL_BLOCKED(0.00)[2a07:de40:b281:104:10:150:64:97:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; FREEMAIL_CC(0.00)[linux.dev,suse.com,cmpxchg.org,suse.de,stgolabs.net,infradead.org,oracle.com,i-love.sakura.ne.jp,lwn.net,manifault.com,redhat.com,arm.com,kernel.org,arndb.de,linutronix.de,linux.intel.com,kernel.dk,soleen.com,google.com,gmail.com,chromium.org,linuxfoundation.org,linaro.org,goodmis.org,linux.com,lge.com,bytedance.com,akamai.com,android.com,vger.kernel.org,lists.linux.dev,kvack.org,googlegroups.com]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[]; RCVD_IN_DNSWL_HI(-0.50)[2a07:de40:b281:106:10:150:64:167:received] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Queue-Id: A0BAA2262E X-Spam-Level: X-Spam-Score: -2.41 X-Spam-Flag: NO On 2/21/24 20:40, Suren Baghdasaryan wrote: > > +static inline void alloc_tag_sub(union codetag_ref *ref, size_t bytes) > +{ > + __alloc_tag_sub(ref, bytes); > +} > + > +static inline void alloc_tag_sub_noalloc(union codetag_ref *ref, size_t bytes) > +{ > + __alloc_tag_sub(ref, bytes); > +} > + Nit: just notice these are now the same and maybe you could just drop both wrappers and rename __alloc_tag_sub to alloc_tag_sub?