Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp288173lql; Mon, 11 Mar 2024 02:43:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbHRWdAejSp8vwIHyzB8UnwvAXda2hezf8hd2nIN6bJjIH6kkt/oL+uuR2RRnX1GjoYYBKckjsDwjlikusXIIVI+4YD/+BeBJxRO1RJA== X-Google-Smtp-Source: AGHT+IE/2BRIl4BeAVeAPA9+sdUjN0oknoxE9qM4Bd727cWG0NNlZjIaM6YJjj2C6h3RaSgInKLs X-Received: by 2002:a05:6a00:939a:b0:6e6:2dc9:dcbc with SMTP id ka26-20020a056a00939a00b006e62dc9dcbcmr9793520pfb.10.1710150216009; Mon, 11 Mar 2024 02:43:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710150215; cv=pass; d=google.com; s=arc-20160816; b=ebX01c+ZqMXTQ/QTaucwoRfM4iDPWSpIspVn4f2+4JIfH0FX69Ncvy1gTOEvnd+puD xQiFJUqeOX6sy/NKNYjtDw6tvcUE0I7NPqwj+GS6e8+ixf/y1piwkC+GjmaU53iYM1lz BP6okK4Dbm1StrVc4zZgphv1ogVARvBN+U9xBITAz2f6GhJaQ7rLn3yqFJ7SWSL4SzG3 9bPDGjSOvbtz76s7fRU7KwY2EQjpOq+TJOJW0KCh0awsYYeYxi0VDd3GdEfxoMNIfVzg 2nXdYQLabpgh8+GEZoitXY2Nchxyhsmv/xs8rIFo+tRXh8DB7wgINJeXreVfiP75364I 48JA== 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; bh=OSyrdXqp3jtgY6jvF/E2QaWM25cbVZ+h2KPhZvu2LP4=; fh=WFVLx/Pd0C0rYBHgGfR5SnRSDLyoTThPYP9wFSlq/ic=; b=tGUKwkobKbuEKm7tjzdwxfRecx7Jj9fr8j40aNn1xvSUVf2SEAieyykzQ10wxeQydS laJh7NIV+brDCVhOlHszeDPvR5vsa4NLyCrhTa7B1nI2cVS8i3bpMdWaNSBE62uhHLCm A9aovp8QvMKi1dKx+2nPrk9nBSHo+SI5r50Mp4YwOhD1aLSE8EEZTMgunWLmXIyNxh82 4hgVUELv448YBWLLhVOx/aOjIptLYtd7ManbOnUB9QX1oLNqlT/YvQHPWOqFHX4fXyo8 +l9k7SyczDV8q7YNdRlftq9PAJkavhtwAvoqp7142TZHraluFn/+7GXuBDZZpSB0yPOk 1Waw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-98640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98640-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 21-20020a631355000000b005cf8b79f90csi4525642pgt.501.2024.03.11.02.43.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 02:43:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98640-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; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-98640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98640-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 5FF61B20B54 for ; Mon, 11 Mar 2024 09:43:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04C961A5A2; Mon, 11 Mar 2024 09:43:21 +0000 (UTC) Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.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 BAA2317578; Mon, 11 Mar 2024 09:43:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710150200; cv=none; b=I1LoDMYP03jvHGgzOCRDHHx9rW+qybloOsKw0fkCuGECudYgioHddSIRhEeAKiQsQD8ck0SYJqYSY30jnsGUrWK4or44TLOpqdCPV1ZLnITZepu+RAQr9WD2pDADF8Mq3TyulHyPY/2wNBIUXkdxu2JxbIwqRRU37CrUMOR2ZNM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710150200; c=relaxed/simple; bh=ntKFM4IAn00AoGiPHpx0tEZsUtien5xXsLMyxO2C2Qs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ELhbYIuhN0zVzpl+QZDRLu/zmHcaSyrDDlv2LHca8EseDoHNVQ7YRfF7F/GPBkQ7aGp3PDwemr82d4TNtObF7+8YirVdwjkVFVnEVj2mPQIRTWO75uYKDQUp2RIHYOl2w7OVDMdhIqvp/lJHWZjsyUWqHGHWNAHMltiG7PyYJko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a45fd0a0980so199977366b.2; Mon, 11 Mar 2024 02:43:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710150197; x=1710754997; 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=OSyrdXqp3jtgY6jvF/E2QaWM25cbVZ+h2KPhZvu2LP4=; b=PrkKnFMJVgYdhjtK2G5h/bmOY4USE1QDuXnPi3Ki6FOkGHL99EM7B8IBg/ZftzliOg zA4DDNMRkWU4RszCZh86YgGykiGuuUO5qf9g3fJ7ytZJEXqCQcudV/UmphTNiaLvTYZf tCTr0+qPnV67B/53ENiCkrZDD1z7TwTY8MKrBwabFs+QAMsEPMoxgEibMxNql4VOa+Gn TWjh70/RG8ugUCAar2tVEyxA6NvH+YYWeNVmtGuLBF7oL4ABzPdCvj64Zugannyxecfl Bu2uhH0PWHpV3tXsPpzRBngGp2ukkWsircg4TszeqfykigoZaAgC6NxjHjO622jbXSIb QouQ== X-Forwarded-Encrypted: i=1; AJvYcCUA1HPwMwo+2hZ17aeq4qX+Gy/qXWwc+W6qC6VT4kIgQvon8r6TFPCZ9oo0mNOGJ5FiSXPYq3Q2yVLWeyx0Wlz2NPGHsa4RzNruAg5+S5MmadPdlSJy/lJr2nWURv3AKvgG3kw1ON5RfNE4A4xR6nF1Ea8RgtTgIk3MtIECWJiQ X-Gm-Message-State: AOJu0YxSoguUXit123BKrePJLS2VpsVyNaSVZkH88YSw62+5VDrs8c4B NO6W/EikBGQWT0biMY8L4s2ZH0TT3qqIsOhFcUmyqnSVhuLsN9Jj X-Received: by 2002:a17:907:97d0:b0:a46:2c70:2226 with SMTP id js16-20020a17090797d000b00a462c702226mr1178381ejc.56.1710150196726; Mon, 11 Mar 2024 02:43:16 -0700 (PDT) Received: from gmail.com (fwdproxy-lla-009.fbsv.net. [2a03:2880:30ff:9::face:b00c]) by smtp.gmail.com with ESMTPSA id se13-20020a170906ce4d00b00a45a8c4edb4sm2676520ejb.48.2024.03.11.02.43.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 02:43:16 -0700 (PDT) Date: Mon, 11 Mar 2024 02:43:12 -0700 From: Breno Leitao To: Matthew Wood Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v4] net: netconsole: Add continuation line prefix to userdata messages Message-ID: References: <20240308002525.248672-1-thepacketgeek@gmail.com> 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: <20240308002525.248672-1-thepacketgeek@gmail.com> On Thu, Mar 07, 2024 at 04:25:24PM -0800, Matthew Wood wrote: > Add a space (' ') prefix to every userdata line to match docs for > dev-kmsg. To account for this extra character in each userdata entry, > reduce userdata entry names (directory name) from 54 characters to 53. > > According to the dev-kmsg docs, a space is used for subsequent lines to > mark them as continuation lines. > > > A line starting with ' ', is a continuation line, adding > > key/value pairs to the log message, which provide the machine > > readable context of the message, for reliable processing in > > userspace. > > Testing for this patch:: > > cd /sys/kernel/config/netconsole && mkdir cmdline0 > cd cmdline0 > mkdir userdata/test && echo "hello" > userdata/test/value > mkdir userdata/test2 && echo "hello2" > userdata/test2/value > echo "message" > /dev/kmsg > > Outputs:: > > 6.8.0-rc5-virtme,12,493,231373579,-;message > test=hello > test2=hello2 > > And I confirmed all testing works as expected from the original patchset > > Fixes: df03f830d099 ("net: netconsole: cache userdata formatted string in netconsole_target") > Signed-off-by: Matthew Wood Reviewed-by: Breno Leitao