Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp936620lqt; Tue, 19 Mar 2024 08:09:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVpjZC9odOvXmkEOsba+pqJz9GCzqDIPuXALC9nRwqlENYDiWigHsYct7THd7r+iHD4AM9bi6FNY4T5npPuw65CoArgo6bI42688y2z7w== X-Google-Smtp-Source: AGHT+IF2No/8WRCyhziF5rKlbSpmB5T3e6TDucgxel69DtH0AgrcpgnF55EA6fqb0iRT6oo39TZk X-Received: by 2002:a05:6402:2789:b0:568:c309:f7f5 with SMTP id b9-20020a056402278900b00568c309f7f5mr6268255ede.6.1710860969874; Tue, 19 Mar 2024 08:09:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710860969; cv=pass; d=google.com; s=arc-20160816; b=F1WEcCUXLb7GhLaBKK143FPfNG0Fx4s4voEY5TQDFIVy0c6anqoo8x72Xgv3VtKOPC w0ZAfISbHuKqP1w+tvlvTEulEPPq1f93cKnXbikrEqcz8v9hzH5ImUBcSMY7hNTtztKk TFDwmGqOc2891Pcig9O7isuca3FV8uHlam6PTyYA6KGwzvOiLRijHo0uAZ8/vkaZg2QM dXisgWvRvh2KPuuI2Orjg4F3chBPcALdZ5JK3d+CMwknmmd86svxlAjXsN386TpyCzt1 3qn3sDOFIhKw47ykrnp6Ui2pX/RBbKgeo7OlFnN2e59jTPfDIt1udtK/PmvyW9246xxW JKHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8vVW1HzP6IOcVuRYdPUYojDY6rzYnYjkQOqlmjORT00=; fh=eSuymq0jaj4mViRv+IAtSTbOFyasGYwiBSSlYXJwhec=; b=UVEj2iuYmFyZCpJ4LtGV+j31naMW115arhCHqMAQtZwKxRDrS4El9CbRO+M12HVxzJ gA5ehO49h931KY09PyNVXBL5ZyQ6qazmFu2e/RD4IdhbNBPbLJw7cRp2A/fVIiHKUfar Hk1bJazFSwOMsmY1338Gq1PFzmee3Smtw4pQNfn8pfuxmQnQ2JobtCZrLc5mt/4OB3Xt mL00j2C0akdSecd+nbbQWfLN4iGoYC1mji6FLYSvBotmMOEJTpbQYx/0T632Xterlswi zQZ3CUUQSlSm4esNJz+2mgT8+bBrQbxPfBBt/4Kiv/TMMyeIgeAnD2Y9HCqYrK0QX5jb FsdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=DizG0a9m; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-107691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w7-20020a056402268700b00568c3f8665csi3257183edd.125.2024.03.19.08.09.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 08:09:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=DizG0a9m; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-107691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 90F661F23215 for ; Tue, 19 Mar 2024 15:09:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52057657DC; Tue, 19 Mar 2024 15:09:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="DizG0a9m" Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 4337C657C7 for ; Tue, 19 Mar 2024 15:09:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710860944; cv=none; b=b8ulvYsiw4s0BJaV5lnFhUoWRoBiqVb61xQFdto3UFaB1VEb+xcr6O4IqpgCC4zWOWbYXtKZiLt5RoSlRrIuuUx23ian8GtZkTevrBHUGsuo29DJ7Lb/bA/8lX2NLaQpp0Nc7X0o2QXQACyOafdq0+hO5vxkemk9SQv/VY40Oyg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710860944; c=relaxed/simple; bh=AduthGbtQ503NWc/iPovz6pKbBm8npo69sGP7oQmalc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oQcZbEU84hjCDfWLCnSr2oXqeHD1l0EwL3lAS/YkNwt+nPe0+OfttFU6WqDp4cNEmO5kwSZC+S0yyhmxtIpczi1wctaSby13IVEXQf5GNwsECQYp04TfN1xXIkXSDtqwLr0M92Sv4zEG/Baknp3L37El3jNNr1XUN9Jm1MECxRo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=DizG0a9m; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-56ba6c83805so254656a12.0 for ; Tue, 19 Mar 2024 08:09:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1710860940; x=1711465740; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=8vVW1HzP6IOcVuRYdPUYojDY6rzYnYjkQOqlmjORT00=; b=DizG0a9mRs2JYkrg7/n/6oZ7h0KsYJtZDVNmIjG1y2muDmfjm69wWeqfGQKECndFay mDqR5a6vgZGdr3cr1FLB3ONUqH2ct1wP3xtZB+F0CkEDhOW1ioLOYyNZ5NAvmMab7e+7 YnFjgAim086t6DnN7ApNjZpXiaJmkc/JYtocW5VjhxulmuNPTNB1XkvO+I2jMjVejeXc HFBt7UuXEwoHVeheGPaFRXP4+CQJVtliiGRM5zbBG3a3j8ovy/lcqTWGkLfyPSDrMnAm iox0tVRbms2FEL2dseEslYJjTRyup3aYJNfhG8Q7q3PAM2iUJPWKnvKAElejpV4t/Xsh HUtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710860940; x=1711465740; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8vVW1HzP6IOcVuRYdPUYojDY6rzYnYjkQOqlmjORT00=; b=Apz6vRM45zk90D0BJQZiaRuUOIBE4ZC8SAQO7JGtDoKXx5U7qc9ULx3rHKq8GrgYTr WksGMgxtp/O44eN1ZowRg8qzeykId3rVLeGlKxR/F3u9Bpps3Y8A9a3ljFTIlOQVHRUf b2Yv8flnxdBAcGIPpHANgLvmoxhjrvRIHu7zaSRMM+WU4LrEZhm7Wz5l1Rjq3RHN76UU mlqtde/OfGb03dgjXYZgietIU7elTWFBVCvomB1bfGp/ZaWWaJnAZdXEGhxHv5eyY/TB 40DWbv5XBh1kMJQtUsusGn+Z50yUjE3qUHTSrspuANCTlPsv4Kw0e4zrkoVMEAJGedYx OGaw== X-Forwarded-Encrypted: i=1; AJvYcCUgkvyR/O/a/87cYlyMh56LtLAqNp7EKeJ3NoBc1eNmIf8BraG0s3Z64dZqsZUE9VtwLSckMpOrZgtlP09DBLxfsaxGbohVJ3fSE/hI X-Gm-Message-State: AOJu0YxHly343B4cQPcdR5dJdiMzoGbbgrK9AM/FuiOrgy6qvPXfZ7T6 YZrg8r+YYxnMpFLvL9ULsyzcykBZrYoG0mI46nJ3hkBSik7i36fDToaONgi8qkxp1Ev4tnLs02z M X-Received: by 2002:a17:906:3105:b0:a46:13a9:b78e with SMTP id 5-20020a170906310500b00a4613a9b78emr10602241ejx.2.1710860940584; Tue, 19 Mar 2024 08:09:00 -0700 (PDT) Received: from alley (nat2.prg.suse.com. [195.250.132.146]) by smtp.gmail.com with ESMTPSA id d15-20020a170906344f00b00a46e07cd1fcsm809541ejb.133.2024.03.19.08.08.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 08:09:00 -0700 (PDT) Date: Tue, 19 Mar 2024 16:08:58 +0100 From: Petr Mladek To: Geert Uytterhoeven Cc: Chris Down , Greg Kroah-Hartman , Andy Shevchenko , Jessica Yu , Steven Rostedt , John Ogness , Sergey Senozhatsky , Jason Baron , Jim Cromie , Ilya Dryomov , Xiubo Li , Jeff Layton , linux-kernel@vger.kernel.org, ceph-devel@vger.kernel.org Subject: Re: [PATCH 0/4] printk_index: Fix false positives Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed 2024-02-28 15:00:01, Geert Uytterhoeven wrote: > Hi all, > > When printk-indexing is enabled, each printk() invocation emits a > pi_entry structure, containing the format string and other information > related to its location in the kernel sources. This is even true when > the printk() is protected by an always-false check, as is typically the > case for debug messages: while the actual code to print the message is > optimized out by the compiler, the pi_entry structure is still emitted. > Hence when debugging is disabled, this leads to the inclusion in the > index of lots of printk formats that cannot be emitted by the current > kernel. > > This series fixes that for the common debug helpers under include/. > It reduces the size of an arm64 defconfig kernel with > CONFIG_PRINTK_INDEX=y by ca. 1.5 MiB, or 28% of the overhead of > enabling CONFIG_PRINTK_INDEX=y. > > Notes: > - netdev_(v)dbg() and netif_(v)dbg() are not affected, as > net{dev,if}_printk() do not implement printk-indexing, except > for the single global internal instance of __netdev_printk(). > - This series fixes only debug code in global header files under > include/. There are more cases to fix in subsystem-specific header > files and in sources files. > > Thanks for your comments! > > Geert Uytterhoeven (4): > printk: Let no_printk() use _printk() > dev_printk: Add and use dev_no_printk() > dyndbg: Use *no_printk() helpers > ceph: Use no_printk() helper > > include/linux/ceph/ceph_debug.h | 18 +++++++----------- > include/linux/dev_printk.h | 25 +++++++++++++------------ > include/linux/dynamic_debug.h | 4 ++-- > include/linux/printk.h | 2 +- > 4 files changed, 23 insertions(+), 26 deletions(-) The whole series looks good to me: Reviewed-by: Petr Mladek I am going take it via printk tree for 6.10. I am sorry that I haven't looked at it in time before the merge window for 6.9. I have been snowed under various tasks. The changes are not complicated. But they also are not critical to be pushed an expedite way. Best Regards, Petr