Message ID | 20221223-dyndbg-filename-v1-0-cbf8543009a1@weissschuh.net |
---|---|
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 s9csp1965764wrn; Sun, 29 Jan 2023 18:03:44 -0800 (PST) X-Google-Smtp-Source: AK7set8Gr3dc9SivXepCB35j3u/p0jWmqKdpI1yqgMyDDurk78+qtKCjb9AikETk1c6hbPPd2Oon X-Received: by 2002:a05:6a21:33aa:b0:ac:82ff:9f9e with SMTP id yy42-20020a056a2133aa00b000ac82ff9f9emr8992983pzb.22.1675044224248; Sun, 29 Jan 2023 18:03:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675044224; cv=none; d=google.com; s=arc-20160816; b=E5mlaL4OYkzTvJgBD/PkUqH0faemupwq7yX3rs4temHOTQ8MEWuct7J0TdQ8lMNyor 1w423HdWzLl6O1dNMqUjL++CtGYrF4ic070Fc0e5pz1wLofgpFm9rgjf7pDL/J8s1yFw fwpzTZwcH2j2LWi+b1B4mKmdKkTmJtzwSfgI2aeH2KxZ8nofj0hHNvV+xV2Vidwz+0Y/ F3UVqlPoSgae/6wgu4fJwFKU1pIqyZFtnhpXATzwDp+sLTrbWgbAkv0B8X16fj0hVcie 3L9+FDHHixDvAYHk+9/QU31eVnFarHWMex/SjceLtvn3FCHrwajAroHZKvYRWV/PNwk1 HqAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:dkim-signature:from; bh=zbrt7b1bAEoDzb0i/AjJrxtE62XNLARqW+mebyrzFhY=; b=dmK4iwhxsfKJVBti1QGbpmsAbWAhFUYq0j6PGmhCVW1SmAfh7mnvZ0PnkJqahZKK52 3FaMMdvdXfEAT9ylgwTr1geJTVV3lHSsef+IlFUXdDXk909K/qL1doxG2TXjVGRrK+JN HufuOqND9s8ad2Q21ngsRiXwekKPhKnwovYUzBq6wSp4J0t1O3Xc7OdAW2QUXT9+9k38 ZuM9oYuS4UPs1UCwfFhpP212z24wkl46KHF/JhhLwrGt8/bd1C2D80gfrkhsllMqyauj GhoxZmxSkhYvF2E40rAJ/4O0ncn6O6NTegHzMq+6nr/utRLGR7DtXIk7ZSaOd+r/ZbIZ 6a6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b="W/4ieVOY"; 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 iz19-20020a170902ef9300b0019295a19dc8si11014743plb.468.2023.01.29.18.03.32; Sun, 29 Jan 2023 18:03:44 -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="W/4ieVOY"; 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 S235362AbjA3CBe (ORCPT <rfc822;n2h9z4@gmail.com> + 99 others); Sun, 29 Jan 2023 21:01:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235334AbjA3CB2 (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 E4A791CAC1; Sun, 29 Jan 2023 18:01:23 -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=1675044081; bh=SX4V673ceoT4XtSrmLtU1UuFNvbRxYXwSU5r9qNQ3VI=; h=From:Subject:Date:To:Cc:From; b=W/4ieVOYaPImUfOqdsoV99olzrDA97bNunmNIQsUaud4a+v/daLKbE5Wf13om/acN 7OkSqJA31En1Zm6iuTC8UGcBhVtZjJq6TqvlWIRaommr8ysA7qMOyIzjhDlGBfeizE 5XMOBMnq+9bv1MtEU76bV40xdeQkecqRwJrRGpy4= Subject: [PATCH 0/3] dyndbg: add source file name to prefix Date: Mon, 30 Jan 2023 02:01:17 +0000 Message-Id: <20221223-dyndbg-filename-v1-0-cbf8543009a1@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAO0k12MC/x2NzQrCMBAGX6Xs2UC6Ffx5FfGwab62C3GVBEUpf fcuHmdgmJUaqqLRtVup4qNNn+bQHzoaF7EZQbMzcWTumYeQf5bTHCYtMHkgREY8ny5ZcEzkVZK GkKrYuHhn71Jcviom/f43t/u27fWMbht2AAAA 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=903; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=SX4V673ceoT4XtSrmLtU1UuFNvbRxYXwSU5r9qNQ3VI=; b=gK5lX3gXfyVvJBcvul7L1wQ7lURATlRcyrtsELPwsPVMgaK1SUHuNMQOwqbbx3Inh9pzRH38v7mf SmMQxH7gAH1hg/rf9FoOdR3WdluHwY95s2Wblw9F341lsQw91d1p 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?1756411172564788150?= X-GMAIL-MSGID: =?utf-8?q?1756411172564788150?= |
Series |
dyndbg: add source file name to prefix
|
|
Message
Thomas Weißschuh
Jan. 30, 2023, 2:01 a.m. UTC
Currently dyndbg has no facility to print the source file name of a
debug statement.
Without the source file the line number is of limited use.
Also the dyndbg control file uses the filename as the primary index, so
having it in the logmessage makes the relation clearer.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (3):
dyndbg: constify opt_array
dyndbg: increase PREFIX_SIZE to 128
dyndbg: add source filename to prefix
Documentation/admin-guide/dynamic-debug-howto.rst | 5 +++--
include/linux/dynamic_debug.h | 4 +++-
lib/dynamic_debug.c | 8 ++++++--
3 files changed, 12 insertions(+), 5 deletions(-)
---
base-commit: 6d796c50f84ca79f1722bb131799e5a5710c4700
change-id: 20221223-dyndbg-filename-02e0879dae4b
Best regards,
Comments
Hi Jim, did you get a chance to look at this yet? Thanks, Thomas On Mon, Jan 30, 2023 at 02:01:17AM +0000, Thomas Weißschuh wrote: > Currently dyndbg has no facility to print the source file name of a > debug statement. > Without the source file the line number is of limited use. > Also the dyndbg control file uses the filename as the primary index, so > having it in the logmessage makes the relation clearer. > > Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> > --- > Thomas Weißschuh (3): > dyndbg: constify opt_array > dyndbg: increase PREFIX_SIZE to 128 > dyndbg: add source filename to prefix > > Documentation/admin-guide/dynamic-debug-howto.rst | 5 +++-- > include/linux/dynamic_debug.h | 4 +++- > lib/dynamic_debug.c | 8 ++++++-- > 3 files changed, 12 insertions(+), 5 deletions(-) > --- > base-commit: 6d796c50f84ca79f1722bb131799e5a5710c4700 > change-id: 20221223-dyndbg-filename-02e0879dae4b > > Best regards, > -- > Thomas Weißschuh <linux@weissschuh.net> >
Hi Luis and Greg, it seems you are the ones picking up patches for dyndbg. Could you take a look at this series? It has Acks from both Jason and Jim. Thanks, Thomas On 2023-01-30 02:01:17+0000, Thomas Weißschuh wrote: > Currently dyndbg has no facility to print the source file name of a > debug statement. > Without the source file the line number is of limited use. > Also the dyndbg control file uses the filename as the primary index, so > having it in the logmessage makes the relation clearer. > > Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> > --- > Thomas Weißschuh (3): > dyndbg: constify opt_array > dyndbg: increase PREFIX_SIZE to 128 > dyndbg: add source filename to prefix > > Documentation/admin-guide/dynamic-debug-howto.rst | 5 +++-- > include/linux/dynamic_debug.h | 4 +++- > lib/dynamic_debug.c | 8 ++++++-- > 3 files changed, 12 insertions(+), 5 deletions(-) > --- > base-commit: 6d796c50f84ca79f1722bb131799e5a5710c4700 > change-id: 20221223-dyndbg-filename-02e0879dae4b > > Best regards, > -- > Thomas Weißschuh <linux@weissschuh.net> >
On Tue, Jun 27, 2023 at 04:30:56PM +0200, Thomas Weißschuh wrote: > Hi Luis and Greg, > > it seems you are the ones picking up patches for dyndbg. > > Could you take a look at this series? > It has Acks from both Jason and Jim. It's the middle of the merge window, we can't take anything new, sorry. Care to submit it after 6.5-rc1 is out? thanks, greg k-h
On 2023-06-27 16:47:26+0200, Greg Kroah-Hartman wrote: > On Tue, Jun 27, 2023 at 04:30:56PM +0200, Thomas Weißschuh wrote: > > Hi Luis and Greg, > > > > it seems you are the ones picking up patches for dyndbg. > > > > Could you take a look at this series? > > It has Acks from both Jason and Jim. > > It's the middle of the merge window, we can't take anything new, sorry. Just noticed this, too. Sorry for the noise. > Care to submit it after 6.5-rc1 is out? I'll ping again should it still apply cleanly to 6.5-rc1 othewise I'll resend. Thanks, Thomas
On Tue, Jun 27, 2023 at 04:57:35PM +0200, Thomas Weißschuh wrote: > On 2023-06-27 16:47:26+0200, Greg Kroah-Hartman wrote: > > On Tue, Jun 27, 2023 at 04:30:56PM +0200, Thomas Weißschuh wrote: > > > Hi Luis and Greg, > > > > > > it seems you are the ones picking up patches for dyndbg. > > > > > > Could you take a look at this series? > > > It has Acks from both Jason and Jim. > > > > It's the middle of the merge window, we can't take anything new, sorry. > > Just noticed this, too. Sorry for the noise. > > > Care to submit it after 6.5-rc1 is out? > > I'll ping again should it still apply cleanly to 6.5-rc1 > othewise I'll resend. Resend would be good as this is long gone from out inboxes...