From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 B804637165 for ; Sun, 7 Apr 2024 13:44:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712497450; cv=none; b=Yxc9weesfHkA8tpHf5m8HkabZ/gk4+RJHhVb60+NOJVFa0XEgCMcly+nVvmNctILeUmzxYv0rdrqLA0LE+vfPiLkItZBhE4Kz5GYVHxaHGhPC/kbtlQ6TsmOnl4XLjQFE8imUtwABjGIJ6Su7JMBU1TiwwrxS0dRrLtuhY8SLD4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712497450; c=relaxed/simple; bh=VdrEm2AMUievje1IBtVIWuqaTv59oFX4wo7oe1qYON4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NZK4O1T91VhQXBm+ZhoQZOmfvd46s5f5NZqs0atvUZpWAhrujYHLypbJt64Im5TE+7pU2cMBg/fOQPMJhcNNr/Pz0aYs9Fh0PflA53GYcezLt/aoyPOSVQ505XP0K67j64E28U0AjkcQp7eHl70FY6sXaB9AKa7gceA2JnyhZ+k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bGRBbKpp; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bGRBbKpp" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-516d04fc04bso5125924e87.2 for ; Sun, 07 Apr 2024 06:44:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712497447; x=1713102247; darn=lists.linux.dev; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=vMqdQCAzDlHOX8MsoDGfkIgox0Bxd5XntMdzXg60cqY=; b=bGRBbKpplN5Rwu3GLd0F36CfOI8qd7LIWUNwKGeFsx6P7pF8mejGE0OEUlwowoDY2d bmA/lCCsmSJBmcuTD1ob0MMRVjx2vPZWSZB5lmMk7CkTEZveLixmapSpP6xnXDX2mqSO PR5jTnp3+YPXPAKJ9hN9c5w7ZhgwOsC+AJmErROzhsPlWoSj2B98iiLJOpJkd1jnGctf FCaD9hOQ6NbPZBGD1UnOyb0iB9NeYHp5PaFJVKzlNdOWREI+e/Axnu72FXkHbv77WHqi z3J6rak158WKI1GyHocFcdwR3tAD1kUQoyJPX/YCKzbJvBaHCoKu5iShRqVwi0I2j97O goWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712497447; x=1713102247; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vMqdQCAzDlHOX8MsoDGfkIgox0Bxd5XntMdzXg60cqY=; b=QWSquEkfLPrlXnOnlw/UXtahJryZuLD3jVVaBT5bAeyXF1qVB9av80OZUwKwqEmtrC dNthjW2sSqsUjW6qlYXlS49DuIsSdSnj7mH1nEEBd8NpBK6MmGIG85XbAy3cEwIIcSqo z/41WLABgzhupB0aJ7vPGxUZaMCFgXRvZl2HvF+2XSpnL5CPiKHgqHvS8UcH5LnPKYux cY7S7Hrd6slEXjsoK8IDwecFMEDQtAKz0X3kMu9RvbuP45cM3zFvO8YAQBa6qW36zyne fusGGKQtxrWjC6IZlOXrvxONOccC8NfPNdk8IhSP7THw4zZxNqzcquGD5Repye2bLewZ 72yg== X-Forwarded-Encrypted: i=1; AJvYcCVm1Lz4rwmjLIdk2hPARjGtOLHu1/OGK7pc6LuRa/YyfL2I/0C4JsOAYWKq1Cd//8qnxPOQtTpqCNXwBXOeYWaoFCvwocw= X-Gm-Message-State: AOJu0YyGuT0k2Pbgj/+Y7itiGP4Pw1jQfXmHFvt6Wb/qmBGCDPgCcE6d LRSaS3ujQkYwPWXFXEYvoQ5ua4gMyvHqWIZYRAdUn47xRHnTyFFX X-Google-Smtp-Source: AGHT+IE1tiO7siqzwDY0v+GklkSmpzuhad4k1luOgBNgpb3uenlVhwlfg4Y/viQAF8R6/S24mcdO8A== X-Received: by 2002:a19:ee19:0:b0:516:cc2f:41d4 with SMTP id g25-20020a19ee19000000b00516cc2f41d4mr5209382lfb.25.1712497446573; Sun, 07 Apr 2024 06:44:06 -0700 (PDT) Received: from ?IPV6:2001:678:a5c:1202:2659:d6e4:5d55:b864? (soda.int.kasm.eu. [2001:678:a5c:1202:2659:d6e4:5d55:b864]) by smtp.gmail.com with ESMTPSA id n5-20020a056512310500b00516cd482c44sm799770lfb.198.2024.04.07.06.44.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Apr 2024 06:44:06 -0700 (PDT) Message-ID: Date: Sun, 7 Apr 2024 15:44:03 +0200 Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 13/37] lib: add allocation tagging support for memory allocation profiling To: Kent Overstreet Cc: Suren Baghdasaryan , akpm@linux-foundation.org, mhocko@suse.com, vbabka@suse.cz, 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, "Peter Zijlstra (Intel)" , 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 Chancellor , dennis@kernel.org, jhubbard@nvidia.com, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, David Howells , 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, songmuchun@bytedance.com, jbaron@akamai.com, aliceryhl@google.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: <6b8149f3-80e6-413c-abcb-1925ecda9d8c@gmail.com> <76nf3dl4cqptqv5oh54njnp4rizot7bej32fufjjtreizzcw3w@rkbjbgujk6pk> Content-Language: en-US, sv-SE From: Klara Modin In-Reply-To: <76nf3dl4cqptqv5oh54njnp4rizot7bej32fufjjtreizzcw3w@rkbjbgujk6pk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024-04-06 23:47, Kent Overstreet wrote: > On Fri, Apr 05, 2024 at 03:54:45PM +0200, Klara Modin wrote: >> Hi, >> >> On 2024-03-21 17:36, Suren Baghdasaryan wrote: >>> Introduce CONFIG_MEM_ALLOC_PROFILING which provides definitions to easily >>> instrument memory allocators. It registers an "alloc_tags" codetag type >>> with /proc/allocinfo interface to output allocation tag information when >>> the feature is enabled. >>> CONFIG_MEM_ALLOC_PROFILING_DEBUG is provided for debugging the memory >>> allocation profiling instrumentation. >>> Memory allocation profiling can be enabled or disabled at runtime using >>> /proc/sys/vm/mem_profiling sysctl when CONFIG_MEM_ALLOC_PROFILING_DEBUG=n. >>> CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT enables memory allocation >>> profiling by default. >>> >>> Signed-off-by: Suren Baghdasaryan >>> Co-developed-by: Kent Overstreet >>> Signed-off-by: Kent Overstreet >> >> With this commit (9e2dcefa791e9d14006b360fba3455510fd3325d in >> next-20240404), randconfig with KCONFIG_SEED=0xE6264236 fails to build >> with the attached error. The following patch fixes the build error for me, >> but I don't know if it's correct. > > Looks good - if you sound out an official patch I'll ack it. > I gave it a try and sent out a patch [1]. This is my first time doing that and it's likely not without mistakes. 1. https://lore.kernel.org/lkml/20240407133252.173636-1-klarasmodin@gmail.com/T/#u