Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27889813rwd; Tue, 4 Jul 2023 09:15:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlH4Aq4Hj2LDdcRP/K/wb4fC1cPN/C4t/1WRBjFOs+QYhiN9InxOl32/ms7U8Eag+RNMeYod X-Received: by 2002:aa7:9f44:0:b0:680:f6fe:8908 with SMTP id h4-20020aa79f44000000b00680f6fe8908mr10125257pfr.9.1688487309645; Tue, 04 Jul 2023 09:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688487309; cv=none; d=google.com; s=arc-20160816; b=W1CmXHiYifPfgrMInrdROY5ZJrVTBBlhY1dKUgKRQUWddwfb7HlO8O6+lGVFMc3wL1 kvO5sXO5iosoBaFT+HAvUEXsbd34dvOJl1sAtoHaNLPRMq7tFOPhstITKqH05DMBFLXo mlEfjLTdfPJdxnyBuhZAYVgTGDPxp7Pf/z4LJf//oyIJiNGMP6A1EEC/jvNShOHduCh0 FUJoxNogRZfhq/RzthHN5m4Ejm4o9TfimgiI1s59YEAWJpCnlnV0YCmzKKnivSfO2VEb 0kyCa0gxagWL+SrgbytIIvLt24SaLhTA8K4r2kaxvj2wLoypFWzCumylH+s/wMoVrBIJ Ak6w== 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=0Ob5s66nJUuWrzVmIgcpj6gX1pVOIG43sjp0smeuqRk=; fh=vdLlhiQP08kpQ5sBFYZf0ME+r5//rjvUVeE5aZtZ0xY=; b=iv0QEtmht6g7jCaDrNmr0ZzwzCsuEQGlc5rNfqdJkn6uBp+6dobPtmnUytyqc1SLyA MZmXB3yexJSC/s/ZzUerWkO6sNeoih6Jx2JTT2dUpWQXKNkzOvuGgNVtFB5rgVMn0GKH xin3PxbFHTL1oXAB8CPc1V44SWE7UUd2OYVx7HVjHXGMAD3C7Z0XPRK/d9cANfYXTtdx k/FZ1A7n+1I3bPc+L6Oiy9IK39CEuMk9vqcuv92T+zehYpw2w2ZNSx0/H0/k+e54exNv 0ukZWTVbhvRXnLp/t9nNhy/QAsmpN0zupkW5WfiDhcyvEvRSq7Qw3ZPUGfQyALE4GdXY /Krg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20221208.gappssmtp.com header.s=20221208 header.b=yTV0wkqS; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cd23-20020a056a00421700b0067de347ee12si14707671pfb.164.2023.07.04.09.14.50; Tue, 04 Jul 2023 09:15:09 -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=@networkplumber-org.20221208.gappssmtp.com header.s=20221208 header.b=yTV0wkqS; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230195AbjGDP6G (ORCPT + 99 others); Tue, 4 Jul 2023 11:58:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjGDP6F (ORCPT ); Tue, 4 Jul 2023 11:58:05 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DD7710C8 for ; Tue, 4 Jul 2023 08:58:04 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1b89cb535afso9730115ad.2 for ; Tue, 04 Jul 2023 08:58:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1688486283; x=1691078283; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=0Ob5s66nJUuWrzVmIgcpj6gX1pVOIG43sjp0smeuqRk=; b=yTV0wkqS1/NR8efXnnWnTnPtMe05KXibp8pqQ7qrGhZHkRhc5dFDtTt1lCQQEQyuUW I0U/A19V8OfYLMIIBS4YaW0/2gFPbGU0BJVz0OvlUm9rVRLOoIjQp7b8Q43bJwYYZRBc 4hlWlUDaF9uwG4nhXY1tcNXBM3ej6HAmBHkzUF0GfdyCZZksWEWNn5RK+53t6VS285dn xr6/wwYpfmDmkhzKyF/+rSnYOIhQ03zjUB+xLHxqihh+28KlRcg7flHvem2BLVKidv4X Rjif9fxwkS/VpS/NqXpaxy7SEOw/EIk2EWGItbyf6GCiUbw1wM+LDRgUTrJcMYOpEWkU HcXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688486283; x=1691078283; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0Ob5s66nJUuWrzVmIgcpj6gX1pVOIG43sjp0smeuqRk=; b=cvslM1d8R+FUBJ1aqKVMMgQHfFEsFFvBmCTV4kvvnuWg7POc7kjTcDFiT3GRfOLavK VNJoCEflMYDW8SWxfa0NQbgGDYwyN982yn3XtS9M3LigFjfELFiR+0Qn+oRd3gIm3bJs EWbOZ+GgIaGe01F+fnXoKQ9znUFbbU/vPUlQVkDkthZEQGyCm+pgaqMnSUJWarCYxNEL eGX/89tVB/LPSOHNVkwYVbHUP1Qu4CuuOybFCkKlDklstkGiVj5YCD4oWZgDRyE1mXvZ hkUcVqntmi7kFamTYoeI0qjixElWPQSmRwO0EaciKOmIz3OB+cD1Uzb8FmVPKdSLf0AT zhkA== X-Gm-Message-State: ABy/qLY0Pk8vz8sR0+wrqgHZQvR42ry7VrnnaTYFpMBB0Udn8W0iRULa yUzDs24wVxbNBVpkslWn3s1syA== X-Received: by 2002:a17:902:9696:b0:1b8:971c:b7b8 with SMTP id n22-20020a170902969600b001b8971cb7b8mr4827989plp.47.1688486283606; Tue, 04 Jul 2023 08:58:03 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id h6-20020a170902eec600b001ab2b4105ddsm9344591plb.60.2023.07.04.08.58.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 08:58:03 -0700 (PDT) Date: Tue, 4 Jul 2023 08:58:00 -0700 From: Stephen Hemminger To: Breno Leitao Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , sergey.senozhatsky@gmail.com, pmladek@suse.com, tj@kernel.or, Dave Jones , "open list:NETWORKING DRIVERS" , open list Subject: Re: [PATCH] netconsole: Append kernel version to message Message-ID: <20230704085800.38f05b56@hermes.local> In-Reply-To: References: <20230703154155.3460313-1-leitao@debian.org> <20230703113410.6352411d@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 4 Jul 2023 08:15:47 -0700 Breno Leitao wrote: > Hello Stephen, > > On Mon, Jul 03, 2023 at 11:34:10AM -0700, Stephen Hemminger wrote: > > On Mon, 3 Jul 2023 08:41:54 -0700 > > leitao@debian.org wrote: > > > > > +config NETCONSOLE_UNAME > > > + bool "Add the kernel version to netconsole lines" > > > + depends on NETCONSOLE > > > + default n > > > + help > > > + This option causes extended netcons messages to be prepended with > > > + kernel uname version. This can be useful for monitoring a large > > > + deployment of servers, so, you can easily map outputs to kernel > > > + versions. > > > > This should be runtime configured like other netconsole options. > > Not enabled at compile time. > > Do you mean I should add a new option to netconsole line? This is the > current line format today: > > [+][src-port]@[src-ip]/[],[tgt-port]@/[tgt-macaddr] > > If that is the case, I suppose I want to add something at the beginning > of format, that specify that uname should be sent. What about something > as? > > [u][+][src-port]@[src-ip]/[],[tgt-port]@/[tgt-macaddr] > > Thanks! Keep it as simple as possible. What ever program is reading udp socket knows where it is coming from. The uname is really not needed.