Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5175298rwb; Mon, 31 Jul 2023 20:23:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlE2v81qRnOPpTXYi1TM5F4r63HYMOz955oBb3+3Dys2jLSCDbqqp9b6ZlslfVIZgdoVP/7X X-Received: by 2002:a17:902:b093:b0:1b8:4e00:96b with SMTP id p19-20020a170902b09300b001b84e00096bmr11464027plr.9.1690860185943; Mon, 31 Jul 2023 20:23:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690860185; cv=none; d=google.com; s=arc-20160816; b=TpAldqJvfM/JwkW35xhhaDrwRPoIGzN+R6efMcRvt9zKMk5GCGHHxrPSEsB91lU2qz D9rt62AaWKc2DZU7+hHotKxzPviSXDP9mtLAgNDXDfwdpKO4ksYQTBQPY8xfiIM0W3b7 +MFCSxbbvh+bFNWN2QkUCdwITjFhZQEyKZPp8ich93CWGYmWrAh/zP6rKhewrsfS/tDX I7crIhmVsqjhUGsaUa5zgcEI361NCx5ZBRY8dgo391st1tEZTGQuyag6XQGwtHK78zWm 28CXHLZVTRmOFLB3hu7Jp35RtlbWy8hfJtForbl/6Wg7g/H9rJLYHeJNajJPLTSt+axK ozhQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=MP2euZ1/bYt7+LKLF3fgf3327kK4Vb5V0mFS4V5o00Q=; fh=H4slxXfDEFQZIsBs3bM9RUdy5yo1+Bv0zzhA7sZGrcQ=; b=EFQiCOd2o6Le0skbi18bekWZmSqDRYtdCdNC3j87wQr2Q1h//JpftwDB8SMwfgWZ3T orDjRD97GIvHbOgDm34NQbdwO+Lj9zRV7mSEnvaUUaqAjJjRlVo1KlOz42csX2XchYH8 9qtBxBKwuk1Ckzyi2vJ/DoDZQFYQ40P6d1xDLU5AL3u0nv+JQc3Kxa52ZYWhrIEIqwQM d9/zQVHqxg3wrQPGHwTG9NVBzsPkGVuwpYxZvSnLm+LvD7XL25y7I8QMtRSHq+KMHzxV k+U6PofNW1lDyRdOYNZ77xm/oQKfyCRRPAO6akUuBPD5hm/2OqsDzh4xvFCb6F4Vm/l3 vntg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ermuXP4T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020a170902c40700b001b9d2010b27si199080plk.119.2023.07.31.20.22.54; Mon, 31 Jul 2023 20:23:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ermuXP4T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230264AbjHACxE (ORCPT + 99 others); Mon, 31 Jul 2023 22:53:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231873AbjHACxB (ORCPT ); Mon, 31 Jul 2023 22:53:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12A981981 for ; Mon, 31 Jul 2023 19:53:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A528261375 for ; Tue, 1 Aug 2023 02:53:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2D79C433C7; Tue, 1 Aug 2023 02:52:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690858380; bh=XcSi2fRJmzOTE7kbjFWduXKD2IOr2CcrRDOP0d+XB3U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ermuXP4TzbEIoP6HVCvunAJRX6wX39KTyEc/JSZDVZ0IDn0FuzR1R9e05X4pAw9Gi 04QSRn/ikxukC5fqya9UhIgopkmXR6EreQieXZ1LEgWQHGWHTf4kgQmpHxn7Fk2Qlp zz0dl/cqnTygEo2ouoUUBbsPm1szil0aKaUdHT5lt7+VaMIH52Krj5L0laW99SUfji rhSaieTxKTV5P40aU2ROlYIIDOz/YSnZoZPudGCOZEToffKpN2Qy7xaBdAw7feJM9y Nf4UjAw5dDv/rXxK/6FocwPvR8/REuer9AcBWdeV5FXjJH1MxuJiVkisWeqzMISwtu b0kSixTNgUiNA== Date: Mon, 31 Jul 2023 19:52:58 -0700 From: Jakub Kicinski To: Breno Leitao Cc: rdunlap@infradead.org, benjamin.poirier@gmail.com, "David S. Miller" , Eric Dumazet , Paolo Abeni , leit@meta.com, netdev@vger.kernel.org (open list:NETWORKING DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: Re: [PATCH net-next v2] netconsole: Enable compile time configuration Message-ID: <20230731195258.16b3a53d@kernel.org> In-Reply-To: <20230731083542.3665886-1-leitao@debian.org> References: <20230731083542.3665886-1-leitao@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 31 Jul 2023 01:35:41 -0700 Breno Leitao wrote: > +config NETCONSOLE_EXTENDED_LOG > + bool "Set kernel extended message as default" > + depends on NETCONSOLE > + default n > + help > + Set extended log support for netconsole message. If this option is > + set, log messages are transmitted with extended metadata header in a > + format similar to /dev/kmsg. See > + for details. > + > +config NETCONSOLE_PREPEND_RELEASE > + bool "Prepend kernel release version in the message" ... by default > + depends on NETCONSOLE_EXTENDED_LOG > + default n > + help > + Set kernel release to be prepended to each netconsole message by > + default. If this option is set, the kernel release is prepended into > + the first field of every netconsole message, so, the netconsole > + server/peer can easily identify what kernel release is logging each > + message. See for > + details. I had to look at the code to see what this does, exactly. I think you either need to make similar changes to make_netconsole_target() so that instances created via sysfs have the same default. Or rewrite the help message to talk about forcing kernel command line arguments, rather than setting defaults. -- pw-bot: cr