Message ID | 20221223-dyndbg-filename-v1-2-cbf8543009a1@weissschuh.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1965977wrn; Sun, 29 Jan 2023 18:04:22 -0800 (PST) X-Google-Smtp-Source: AK7set/wKbab60FsbdOeugfRuTEZNIqMEQ0RC7sVjDFw7mL5BLeFSSHd3WqQ9FoV0OcskQ9cQMqw X-Received: by 2002:a17:90b:3811:b0:22c:3eca:2bbc with SMTP id mq17-20020a17090b381100b0022c3eca2bbcmr12649749pjb.47.1675044261987; Sun, 29 Jan 2023 18:04:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675044261; cv=none; d=google.com; s=arc-20160816; b=d8pJKaKXx9LDgRwUR7+4aJhdhzQsLq+LBQOZIiQnoZZV0qDUwXtqKpTVEi76sva8Tu 0mHC+2uU8Vb3PtP7vhCNZL8jLrzrEOP6724XJ50CnveGXtqLEnSO6qY6Z43/6VZ7zsw7 0YK5Md84mRNmPdQRTGWmFD+tL7t+sdzgkIbt+QFOuPYJVe3ONnS1Csi/HiPaaq7/b6B0 E2sy6zhcf53kRVRP2qnciB9sWkl93tUzKhDTqWz3pp9FiuOgAKcThHybE9o9KH1o7GpC s2Tb7dnYIMKO19I0pUt24MJXn9Ph4uYtNKBm3j4cBFTw4X1UA+Mi7AnWuW2+gqBiTKme gYUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:dkim-signature :from; bh=2jzhL0pty+7ftzyaoWCiETDcKasgLLhH79PzAcBfDEE=; b=Kja6uoN7M5afMVWBljHfSUtBPBIm20bZ9Hzoc8xqfd4VIYSki1F8stRU/k8p9dnrr4 sL8YasdpeBAOs+3v/ckImuEh2OyK2Oe2rKYJnUYAKgCKVJ4Mx0TkkXbNfEPudUYRYU6Y iLZeeni1k8w3R70Ozzq8QCpqOarj/vHAjrBdsj9LAKBL2cxefpIwfze+rFl21bhq7RFA snjCoS3v5L3+sH8jtS2gxpGxxdoN/GUuO/DcJ4gKRv8V9bswy3wdZPZmO9bgTfjDRJHS YNhO+z5PvsWHR6mfl5GG2z0WE6mD90oW/vtlJ02jYq41rsMbtO3qgnMYe+4TGpIx2btq H4eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=YrqnAX5U; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020a17090aa00b00b0022c4ddf8413si9417454pjp.8.2023.01.29.18.04.09; Sun, 29 Jan 2023 18:04:21 -0800 (PST) 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=fail header.i=@weissschuh.net header.s=mail header.b=YrqnAX5U; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235393AbjA3CBm (ORCPT <rfc822;n2h9z4@gmail.com> + 99 others); Sun, 29 Jan 2023 21:01:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235343AbjA3CB2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 29 Jan 2023 21:01:28 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 054261C5BF; Sun, 29 Jan 2023 18:01:24 -0800 (PST) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net> DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1675044082; bh=4N4nvguOlNTE34sqbnvTE3IRMGoOqGvhLDtXDoYx+EQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=YrqnAX5UI6esPR0SyGBZgj+o2uTccq6DO7LWjru1yhYYkRw2qjvraL7kIgpoaxS18 iRlLy7/OVRQ6igFNUHpi2EZaMAMK0/CCA5EERWWefYvcX4ju/bTZlMouPIBroPKFLX nQ2vZViHjyl4mAmaybm/McooOk6ZCth5pc1VOnlg= Date: Mon, 30 Jan 2023 02:01:19 +0000 Subject: [PATCH 2/3] dyndbg: increase PREFIX_SIZE to 128 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20221223-dyndbg-filename-v1-2-cbf8543009a1@weissschuh.net> References: <20221223-dyndbg-filename-v1-0-cbf8543009a1@weissschuh.net> In-Reply-To: <20221223-dyndbg-filename-v1-0-cbf8543009a1@weissschuh.net> To: Jason Baron <jbaron@akamai.com>, Jim Cromie <jim.cromie@gmail.com>, Jonathan Corbet <corbet@lwn.net> Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, =?utf-8?q?Thoma?= =?utf-8?q?s_Wei=C3=9Fschuh?= <linux@weissschuh.net> X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1675044079; l=677; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=4N4nvguOlNTE34sqbnvTE3IRMGoOqGvhLDtXDoYx+EQ=; b=NoRY/Q6NrNgmOBCHx6uCF9rcwE3r5EsreIlcD5BTd3Z5nYv/tim0IL23AkIXmwgbt3F2tx2byg5h GIYvB9UsC/YNHv9kXuaD6Zn5mTO+1M3QxAGMdcJ0Ahz3EXePlA8x X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756411212026364896?= X-GMAIL-MSGID: =?utf-8?q?1756411212026364896?= |
Series |
dyndbg: add source file name to prefix
|
|
Commit Message
Thomas Weißschuh
Jan. 30, 2023, 2:01 a.m. UTC
A follow-up patch will add the possibility to print the filename as part
of the prefix.
Increase the maximum prefix size to accommodate this.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
lib/dynamic_debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 6915e088bed6..e96ea427d8af 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -808,7 +808,7 @@ const struct kernel_param_ops param_ops_dyndbg_classes = { }; EXPORT_SYMBOL(param_ops_dyndbg_classes); -#define PREFIX_SIZE 64 +#define PREFIX_SIZE 128 static int remaining(int wrote) {