Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp935853lqj; Mon, 3 Jun 2024 05:43:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWuFVMsshbOcHZcxbNKifsNWiYnoYio+tUbKHnuL6kscqCH5ktr46y0q+GBqZu8obh0VwpIbPEK956gx7zrix4/e3el96kPKPi0kfE82A== X-Google-Smtp-Source: AGHT+IHtqg1lebqwQUemPJGyzLkgzDTT+kU4vQ6aJSIyK/xJcEXu6hTDP04HcDQ+ocM6lvUo5zKq X-Received: by 2002:a50:9509:0:b0:578:69cb:1efc with SMTP id 4fb4d7f45d1cf-57a363479b7mr7818260a12.9.1717418592277; Mon, 03 Jun 2024 05:43:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717418592; cv=pass; d=google.com; s=arc-20160816; b=D8gE+B6U9xo0JXPl6IsAsDRqYEJOf0R6yCa18vrBvGF52441ErOub4s8bJZaK5+UaT 3a8BAp+z+Y4YcNojQ1KiUiKFEIv39ec8Jty4vNrlM70j2qBCt2FjfuO9izvcwTxCeIHE 4wTwmN07WlmTN789FXCTekGms5ko2I9ui6puK1SqDtLm3nwoiUFW9IQvJEowhXg/7jXq Uk5nCzdKpt6CY6qYVH3m8sHAns4nJIGN//q+EnyQFHfczP5UPKFXgJHrj/7DJ0FyeHpG brznH318ZiuPslukQkyawnd41sQWkhF+ScZTGkGr2VbCfxZ/Ztl+iU/6ut+FKSEkucRA vfQQ== 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=hyw7FeH5zXqqRiWwpndpSm83YNiACzGxeYh4iQDnAcg=; fh=WTNGmpFf0A1gFb86dMLl9On0z9VYmWNVN0nxYF9BP9U=; b=M6zv7vzCt5lQtbooK/QMjvKZZAvsIn/0GYPyM9ulcMgA7jfcOF87raIDAVaLFWXYeE eSzTHox8cOe3ovjV8FqgclJ3UoC2spHrEZTkLZ6HRfgEKNZI1JY+HyAluTT1OztE47vt Fn/7jMBAGiXTsF3jPMaE6l0V3+DiQs96h0zOgwEQMS1OOso3i8zkNDVY4/PKqlzLyloQ qpyQ362n0DcLZbDWYt4zCEPp8l/q+dDqOOT68iZdJi3AD5d18ml9tsf/zvDPnzHK09Qd HiwLUZo+uH57ooXspFneTCbu1MHk0fFzkZ0HMig4bZYAE48yyLJAmR2io3qJgrpJ5/2S mJ+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=dRUKEDrH; 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-199123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199123-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31ba66aasi3909840a12.163.2024.06.03.05.43.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 05:43:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=dRUKEDrH; 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-199123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199123-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 7E9631F2645B for ; Mon, 3 Jun 2024 12:43:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E28B12C47D; Mon, 3 Jun 2024 12:43:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="dRUKEDrH" Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (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 F01C177105 for ; Mon, 3 Jun 2024 12:42:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717418580; cv=none; b=uSgMAmYPcTRqOgx7ftPpmQ4SkK9+YRD2z9Y/Y02JaVAr/0GJSS6wLueb9qx88F04Z4guR9dBXO3mSbOKLmOoGVbOBDKXK0FaK6Rt0bVBrcCdIew79NXJ7ObFOQVOEEp02SXHtQVXbgAbKHqmWx9PJmbQljq1xgd+awjgLRIjFg4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717418580; c=relaxed/simple; bh=hyw7FeH5zXqqRiWwpndpSm83YNiACzGxeYh4iQDnAcg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=l0vz7QsHDUkZawHahG/xeTGFhhTWwNf8WCcLTKM8LEJ4DafPVPlB4JtGe39DjLdV6aKJMAYcT+xsNQ98axeGCgiOWUY3prQXkZ+N5dnKxWLmaM/g+44N49J5EteOZy30XTK8eCsi2F9wYLWVeZJvfjbRfO1v5oyiXlwnQaGZGJI= 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=dRUKEDrH; arc=none smtp.client-ip=209.85.208.177 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-lj1-f177.google.com with SMTP id 38308e7fff4ca-2e95a74d51fso64299491fa.2 for ; Mon, 03 Jun 2024 05:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1717418575; x=1718023375; 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=hyw7FeH5zXqqRiWwpndpSm83YNiACzGxeYh4iQDnAcg=; b=dRUKEDrH18KKqvNnix+v6zWrZ0N/TbSPxz48S3e2naiFWT+YfyYsY6E9yxuiuAT2Ni CL1mPOAPFN5oCIIxg2ocOijU/IHCZMSjrnv232oqfBtmkrpbwojpXX0SmOEeiYe3vxqn 6ZuZHrJx0+21ZPTFFaU7GhWApTGVGnx+vxKZQydRWEcRYtmjKjtSpLQfvMPJLBX4kyOx MnRTDYZNHsmx7NFq68TjIYlk+JSykWO0f0DXeyn2Za2cc0YHzaxoScOqhzR2g7OIyj6o CCQuptNQ+BRBvnLmYxT0+AfK79Q/R8cHzkEs2eTnNTJ0tV8lalPPlWl4vQ9A6rqILHz+ l68A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717418575; x=1718023375; 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=hyw7FeH5zXqqRiWwpndpSm83YNiACzGxeYh4iQDnAcg=; b=HbHgMV2wN6GuhE3lGkSQii66w2MpZcpWfQ7pZqzmktnMZyTeHFWqVjmZaGypeNdDTF o/DCYOcqzK+ZbszxqITOT2jIuYStnHuq45Zoi+UtIKKFGw/uqF3tgPZyzF8cm3FTBS/s 1bBJsMhG7C2UusnJn1ZeIHGahMxCLM4UTjV3KBtIIeIWC5L0E+p267KnfWDcKP1k4XJQ cavfpaE/JIfGhPp99dtz7gveqZs+lq/otUmemoqvy4nn7LhQ/zrwqv1LabSWaQGTiVgw EQq9FMigYOeS/SosP+qNe9lnI/DaFggq0lirol8/SeMh9ACgZPnmdL+sSvTHWHoawgAU RgVg== X-Forwarded-Encrypted: i=1; AJvYcCXkx833g5qsK6BfECDkAoeQI2F+MgP/geaMAWvNSDSA75uz9WipVNxBU3kPXahvSEAGBL/sW61g+p8GscY9+QnpEvHuxAKJNyNo3ijM X-Gm-Message-State: AOJu0Ywqpv8p7mUB/5LarnbvPphkWigY/lkU2uHXY7Ty470j4YtEVtaf wNu+9Wf7bed9dmrvkunYSh6tNYrQgJLvMq0+dlEnmx0o/O78l3l1tHRmQ+C92or181f4nFBLi6J u X-Received: by 2002:a2e:2a43:0:b0:2de:8697:e08b with SMTP id 38308e7fff4ca-2ea9515426amr64684751fa.26.1717418575172; Mon, 03 Jun 2024 05:42:55 -0700 (PDT) Received: from pathway.suse.cz ([176.114.240.50]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c1a77baebcsm8365156a91.53.2024.06.03.05.42.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 05:42:54 -0700 (PDT) Date: Mon, 3 Jun 2024 14:42:44 +0200 From: Petr Mladek To: "gxxa03070307@gmail.com" Cc: "john.ogness" , rostedt , senozhatsky , linux-kernel , fengqi , =?utf-8?B?6auY57+U?= Subject: Re: [PATCH] printk: Increase PRINTK_PREFIX_MAX and the buf size in print_caller. Message-ID: References: <20240527091929.316471-1-gxxa03070307@gmail.com> <87y17tktze.fsf@jogness.linutronix.de> <1717404421510.qmo40jy5kubcunlrdknzajsf@android.mail.163.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: <1717404421510.qmo40jy5kubcunlrdknzajsf@android.mail.163.com> On Mon 2024-06-03 16:47:01, gxxa03070307@gmail.com wrote: > I need to populate the temporary variable "caller" in "print_caller" func with the additional information. And it's no use defining a buf in out-of-tree patch. > In out-of-tree patch, I can only add hooks (special cases), I can't change anything else, because it needs to be consistent with mainline linux. > caller buf in mainline linux is it better to make the buf bigger and leave some space? I do not understand. Why the buffer size has to be consistent with mainline linux? Really, it does not make much sense to upstream just this part of your out-of-tree patch? Best Regards, Petr