Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1325425ybh; Sun, 19 Jul 2020 16:11:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydrn1STZUZ/1KdqKuDL8RqlMpNzra6mcmwG6am7Utmm0b2XDxNDGrElK1Cr1LGDN41U6aF X-Received: by 2002:aa7:d285:: with SMTP id w5mr19698750edq.174.1595200310359; Sun, 19 Jul 2020 16:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595200310; cv=none; d=google.com; s=arc-20160816; b=ucqou1birXVuV6lBZBXdYasdAuHc0xvMiTBQXMx4m58oW4e83CSNkJ5j0HQylddYfz 6pYHfjYA2wKtHrrLl11NFh+jlkONKs+J5xAcKPgKMfzIJYyk25U94FmxmS+1Kq6Re14Y 8t8qxSpp6Po8roKIVz+5OEUlw0aHRgcTaxKpbfDPx0VvR4GHEOT7jOHidYeh+3aJsuOj aHFYQTWxmzW+HT4hpdMJWaRd17hEBpi9qJzKuRb1B0g1iprFDOHyUot8sJejOMJrHZ1+ B0JWFEmdLgU0CKTaDpf6J+UuDZh4Pj6C5ag2Q2wOzhu2eX5cCtOfSWFSPmg3bpsM4kZ1 guJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1agMer8C/ub57ZSY/mSuYbhra637qhXpKJjyRETn6zE=; b=LZh+g+9g3ZxyjoUAzbhEoTuxNwzzl9d0RmlB/wPD61jTNE2YKyatK5ruuOax+NTRs2 QgKc+IH/Nkn0wEsLQ7y4LCn1DIhb3Wnf+QnAaUQi8f8cWnpmYG66IpYSBnMJKV2OM7Hd RqOGjKAu7MdUJ8yt3Qzhzsdhaz8SaVuRtz21F7TkjVYDS8XJ46YuQwq6dAQqAn5/Xfw2 SBdxNIJxIPZVnom95s0UnKyFY+yVnOM5HEjNn6H+5WVYGFnYr8u7/L3n6Bh5JY7TgKW5 DuprXkXx2Q6iHjQovROjQtYe/T2v0HbVct6VrmRCiS4ij9dMEexQGILQSrn9hWgxlsQF ONWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="f1x/QZGk"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e13si9782327ejc.215.2020.07.19.16.11.27; Sun, 19 Jul 2020 16:11:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="f1x/QZGk"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726646AbgGSXLQ (ORCPT + 99 others); Sun, 19 Jul 2020 19:11:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726126AbgGSXLQ (ORCPT ); Sun, 19 Jul 2020 19:11:16 -0400 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DACDC0619D2; Sun, 19 Jul 2020 16:11:16 -0700 (PDT) Received: by mail-ot1-x343.google.com with SMTP id g37so10804266otb.9; Sun, 19 Jul 2020 16:11:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1agMer8C/ub57ZSY/mSuYbhra637qhXpKJjyRETn6zE=; b=f1x/QZGkGcdsjwpRmzjC9RXuw1lT22F1tFLsRLZzRyEUEBRVv0zEYPQbz6J48vgJaI gzK6MrGEInbJ5vI0JAVzKPW9ISr31RCNDTRdZmHfJTMIZBZsmAK+30aeg7+H0Ol6Jg/M eUW/H9ZeLDXo9GYPP5DT8RgietudLwIyxtxJSrL0pNxC2zyTVcvoc1QXU7eXF8tlwQs5 Q5KQ3vD1jHEjjZgRtL9uA59TPUWEK6cDRQFqtYuDO7MD4XMBpY4iNkbzWY5vX3/roXRI eLMwMkHDdFWjli+fuvNtJPzcZi+XvHZglFE2c2AAv47IFBhavZwzwQ6mNyDPYjxGLNfO 2Ebg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1agMer8C/ub57ZSY/mSuYbhra637qhXpKJjyRETn6zE=; b=r291ethUwD+nx69ZABBy4miL7hiafLR1vJXGao2biByLFhS77yG1Cpt3q4JQjXbBTw xHUzt9iqSJ+B2I/zEJgMr+2JfcR0AiT0M1kk5oDsgvYEBOyHrLXd8aNmwZ1WY2hXxEFl JBOh+8CFhZsoInRcYXr2BFo7lMMcbPDuF3Rsw0DnFsaX0zpNDLOiZYCBJ2lI08aehDNy yaHEbvG2ETZhGszu7soMGoHHNDBUIU3BPOLI/s9nCVPf9BN1+3ezZRoTk1ZdG/pt0a0k j6tv08uHFKDgMgAGXhbR/BD44Z73gyrR+jV7MZ9tZE91I2rGRBvDDi9EtSq+Ti9dIqK2 nO7g== X-Gm-Message-State: AOAM5320EPnI8V24AwWJND/6rp2VxIfG8PN5IFAYrNkqazUOHTwdwCsi y1TsoV1RpDdSobuzxEfT+JE= X-Received: by 2002:a05:6830:1613:: with SMTP id g19mr17016071otr.303.1595200275567; Sun, 19 Jul 2020 16:11:15 -0700 (PDT) Received: from frodo.hsd1.co.comcast.net ([2601:284:8204:6ba0::5e16]) by smtp.googlemail.com with ESMTPSA id q19sm2394680ooi.14.2020.07.19.16.11.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jul 2020 16:11:15 -0700 (PDT) From: Jim Cromie To: jbaron@akamai.com, linux-kernel@vger.kernel.org, akpm@linuxfoundation.org, gregkh@linuxfoundation.org Cc: linux@rasmusvillemoes.dk, Jim Cromie , Jonathan Corbet , Orson Zhai , Andrew Morton , Will Deacon , Petr Mladek , linux-doc@vger.kernel.org Subject: [PATCH v5 01/18] dyndbg-docs: eschew file /full/path query in docs Date: Sun, 19 Jul 2020 17:10:41 -0600 Message-Id: <20200719231058.1586423-2-jim.cromie@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200719231058.1586423-1-jim.cromie@gmail.com> References: <20200719231058.1586423-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Regarding: commit 2b6783191da7 ("dynamic_debug: add trim_prefix() to provide source-root relative paths") commit a73619a845d5 ("kbuild: use -fmacro-prefix-map to make __FILE__ a relative path") 2nd commit broke dynamic-debug's "file $fullpath" query form, but nobody noticed because 1st commit had trimmed prefixes from control-file output, so the click-copy-pasting of fullpaths into new queries had ceased; that query form became unused. Removing the function is cleanest, but it could be useful in old-compiler corner cases, where __FILE__ still has /full/path, and it safely does nothing otherwize. So instead, quietly deprecate "file /full/path" query form, by removing all /full/paths examples in the docs. I skipped adding a back-compat note. Signed-off-by: Jim Cromie --- .../admin-guide/dynamic-debug-howto.rst | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Documentation/admin-guide/dynamic-debug-howto.rst b/Documentation/admin-guide/dynamic-debug-howto.rst index 1012bd9305e9..57108f64afc8 100644 --- a/Documentation/admin-guide/dynamic-debug-howto.rst +++ b/Documentation/admin-guide/dynamic-debug-howto.rst @@ -70,10 +70,10 @@ statements via:: nullarbor:~ # cat /dynamic_debug/control # filename:lineno [module]function flags format - /usr/src/packages/BUILD/sgi-enhancednfs-1.4/default/net/sunrpc/svc_rdma.c:323 [svcxprt_rdma]svc_rdma_cleanup =_ "SVCRDMA Module Removed, deregister RPC RDMA transport\012" - /usr/src/packages/BUILD/sgi-enhancednfs-1.4/default/net/sunrpc/svc_rdma.c:341 [svcxprt_rdma]svc_rdma_init =_ "\011max_inline : %d\012" - /usr/src/packages/BUILD/sgi-enhancednfs-1.4/default/net/sunrpc/svc_rdma.c:340 [svcxprt_rdma]svc_rdma_init =_ "\011sq_depth : %d\012" - /usr/src/packages/BUILD/sgi-enhancednfs-1.4/default/net/sunrpc/svc_rdma.c:338 [svcxprt_rdma]svc_rdma_init =_ "\011max_requests : %d\012" + net/sunrpc/svc_rdma.c:323 [svcxprt_rdma]svc_rdma_cleanup =_ "SVCRDMA Module Removed, deregister RPC RDMA transport\012" + net/sunrpc/svc_rdma.c:341 [svcxprt_rdma]svc_rdma_init =_ "\011max_inline : %d\012" + net/sunrpc/svc_rdma.c:340 [svcxprt_rdma]svc_rdma_init =_ "\011sq_depth : %d\012" + net/sunrpc/svc_rdma.c:338 [svcxprt_rdma]svc_rdma_init =_ "\011max_requests : %d\012" ... @@ -93,7 +93,7 @@ the debug statement callsites with any non-default flags:: nullarbor:~ # awk '$3 != "=_"' /dynamic_debug/control # filename:lineno [module]function flags format - /usr/src/packages/BUILD/sgi-enhancednfs-1.4/default/net/sunrpc/svcsock.c:1603 [sunrpc]svc_send p "svc_process: st_sendto returned %d\012" + net/sunrpc/svcsock.c:1603 [sunrpc]svc_send p "svc_process: st_sendto returned %d\012" Command Language Reference ========================== @@ -166,13 +166,12 @@ func func svc_tcp_accept file - The given string is compared against either the full pathname, the - src-root relative pathname, or the basename of the source file of - each callsite. Examples:: + The given string is compared against either the src-root relative + pathname, or the basename of the source file of each callsite. + Examples:: file svcsock.c - file kernel/freezer.c - file /usr/src/packages/BUILD/sgi-enhancednfs-1.4/default/net/sunrpc/svcsock.c + file kernel/freezer.c # ie column 1 of control file module The given string is compared against the module name -- 2.26.2