Message ID | 20230709-dyndbg-filename-v2-0-fd83beef0925@weissschuh.net |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4641074vqx; Sun, 9 Jul 2023 14:48:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlF3gjvo9FMsXOoAvhm3yO3ILI6PKKCzguRtNa6fazyUw2jdfurwMmRURO7OPunYxWdCSHup X-Received: by 2002:a17:902:e887:b0:1b8:b442:aa97 with SMTP id w7-20020a170902e88700b001b8b442aa97mr10980828plg.54.1688939329734; Sun, 09 Jul 2023 14:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688939329; cv=none; d=google.com; s=arc-20160816; b=NmZVXjmPvZLS1UqRvqHLY+QHIowVfssa5QFrgWj1QChNatITHmUeZX72mUqYhGaOaK L2St6KogcIxVuF4lpMWPqUJEh2Z0Ex2TizwviZmJbK8id6jE+qigu1TdT48s/iT8ysI7 XOSSpfMoeyPsV1iQ7ks7aGpZAm2s9V+tj9a6JWPCKpntzY7Sl3s9t4+r4e1i2shGsHQ5 C2/DJVA4yo2v1oa7BQHIxAMEH2SoK8Qw4T8AOoX+Ykfof81bLg0QtQMdiPJ1c6VTcQsk QbNsah/PCssweiRtKgJ0Yp9sap4VQrDNpf7GlEcFP0qiZTIymKwfvJASG8EZS83Dx0Fc AtrA== 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:from:dkim-signature; bh=2hKNTWm2ebS5aweTs3CUhdZHWoKbEpBGGTiUexjrg5Q=; fh=wXcZQlffSzV2rFzu9yvBJZxeeF3pBCyVS0GsP2GQFT0=; b=nJ1Ud+h4d6mgGJYDHecg+tgECy+DvZw/0Iyu7OuPVB86S9x1M4o0jH1ALJJE2AupRS XnO0demTtNe37gZrfI4dNq4K+mBqmzUiOA+ixP4TME0LSzOrnKFeTj9wHfk7qodAJLoz y+Zb7j0/LSVupoo/aA5LOT0O+7/BC7XoaCLod09VhnX4UR1AZAs+YA9pYhv83cg3SlNz HsGF/PKzU1tjZcpqk6lvPm+KbPRyuMLLYhkr5ihDp+uazi9dEh9BCOUIiMGjasYlFlQi wLeAeiFogWn4jkLyPxVMcElZPFwX3O6eqFNMm+1jYyPoL1XXelpRtRlp8xizJOCv/AlX e8BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=O2A5I6f2; 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 n3-20020a17090a928300b0025c1af5672fsi6039350pjo.112.2023.07.09.14.48.30; Sun, 09 Jul 2023 14:48:49 -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=@weissschuh.net header.s=mail header.b=O2A5I6f2; 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 S229805AbjGIVSJ (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Sun, 9 Jul 2023 17:18:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjGIVSG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 9 Jul 2023 17:18:06 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69E1511B; Sun, 9 Jul 2023 14:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1688937482; bh=No8xXIKam1ZdBL258zzIwMmAiWCgXDsDDSVQxysmNX0=; h=From:Subject:Date:To:Cc:From; b=O2A5I6f2wRamvOLu2hvMMPuKyHTQ8FNh/CW+2mxmbU4JvXyYtg52hy5zKQEc5t4xJ txFwLQQPCEnZDFk/INTT5eHpv7/vVZnXyw1LuQIh3OIrO/aoRIBTAoihCN9Uh6i/JG A3T+6yVEh3hdIErDC+t+A6NKdY5PsGZT2flM2dWI= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net> Subject: [PATCH v2 0/3] dyndbg: add source file name to prefix Date: Sun, 09 Jul 2023 23:17:57 +0200 Message-Id: <20230709-dyndbg-filename-v2-0-fd83beef0925@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAAUkq2QC/3WNyw6CMBAAf4X0bE27YARP/ofh0MdCN8FiuoASw r9buXucSSazCcZEyOJWbCLhQkxjzACnQrhgYo+SfGYBCkADlNKv0dtedjRgNE+UClDV18YbrKz IlTWM0iYTXchdnIchy1fCjj7H5tFmDsTTmNbjuuif/T9YtFTS2a6+VKVSjdH3NxIzuzCHc8RJt Pu+fwF6OXq/yAAAAA== To: Jason Baron <jbaron@akamai.com>, Jim Cromie <jim.cromie@gmail.com>, Jonathan Corbet <corbet@lwn.net>, Luis Chamberlain <mcgrof@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> 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.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688937480; l=1116; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=No8xXIKam1ZdBL258zzIwMmAiWCgXDsDDSVQxysmNX0=; b=UQKSy2QcmBDcMOt15jIfaOgs/ujS8NzocTchVsGuNvvvn1SR8oRrM2o814pvUMPG8h8JTn8GE cJ7HBcfPMm6CnmA2USTy9mZurgdI0ufPlfk+11gXQ3veJoJRODkH3DQ 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,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: INBOX X-GMAIL-THRID: 1770979451684718545 X-GMAIL-MSGID: 1770981246464195115 |
Series |
dyndbg: add source file name to prefix
|
|
Message
Thomas Weißschuh
July 9, 2023, 9:17 p.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>
---
Changes in v2:
- Apply Acks from Jason and Jim
- Add Greg and Luis to recipients to pick up the patches
- Link to v1: https://lore.kernel.org/r/20221223-dyndbg-filename-v1-0-cbf8543009a1@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: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
change-id: 20221223-dyndbg-filename-02e0879dae4b
Best regards,