From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2D38C433DF for ; Wed, 17 Jun 2020 16:25:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B7CF6208D5 for ; Wed, 17 Jun 2020 16:25:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GAhdcyuL" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726899AbgFQQZ7 (ORCPT ); Wed, 17 Jun 2020 12:25:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726329AbgFQQZ6 (ORCPT ); Wed, 17 Jun 2020 12:25:58 -0400 Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDDB6C06174E; Wed, 17 Jun 2020 09:25:57 -0700 (PDT) Received: by mail-oi1-x244.google.com with SMTP id x202so2267635oix.11; Wed, 17 Jun 2020 09:25:57 -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=GAhdcyuLO4MtBinoRDqDmQ+c1qxYfXyf5bbwZHCyU2KK/WEVCFizQK2ocvbs1Mzm44 lpr8ru5wl/w/0BpNxAqBEH+GcgSL6F54htJzQ7D23e9lQkLL+frPZSF7CFVtPheA11mo 6eCQClZmZl7bIv5S3OWdEnyFMcCuwgNJTl6ITyTqtLqWYrbKgsJa5GjeKYE11P6yYLlI hykp+BkPwdiLOEESbFvO4noeUcDHj1sPNspfht3AKl3ccTiOHMLZoHaIDcqvwtj/1rD1 qISvcLG5WAHomcL0ghGc32uW9olwRlaBUJWc5BED4TbZAFWxVn3DH07NAHRaLpomVei9 fTIQ== 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=Nhk2bbl9ZYZ/D0utvgVmyuM0aJRG5H5/QaOHvNtUt2EARexDa9IEzOxZuq7g4TrO5H mdjernw5K9KTQZ07jJ0HR6JIVQGmUqgmcFEyCoWsk8sHlZX1bhe3qokpOWzi11ZxmdcF iTncgpShJLeyQg2xSQlhvOj7Lcbq0lZ5iXtyCzWSMBFpxboQy2oFrk+STj4V8A5tjlND xxB0kYGgR+gOBiCwoXejSZWoWTI/F+v8OqfPwDEXbkqgQYVSZrCKznlmZVqyfrVopibI Ybo0bxajzgdC41WVCHbO3NvtrotpztLfaCk8ewD/Ol0TQ8pMRkEqbZf5dLr2jWQRoh6K yGbg== X-Gm-Message-State: AOAM53326K2S7iM5qhdUzLsbZvUeXEH3ANjkqWHTOdkyuw/JThi5WAys 8lqrqB2VvZJDfHYNEJYvOAE= X-Google-Smtp-Source: ABdhPJzHaPpZLtZAuUTt1Yg11Lw9NyLBth9teZObNxvtLaSExaCwzC6BbA8qcvrffrCb2nbtWYbq7Q== X-Received: by 2002:aca:f141:: with SMTP id p62mr8268942oih.136.1592411157077; Wed, 17 Jun 2020 09:25:57 -0700 (PDT) Received: from frodo.hsd1.co.comcast.net ([2601:284:8204:6ba0::ae4b]) by smtp.googlemail.com with ESMTPSA id h7sm95877otk.48.2020.06.17.09.25.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jun 2020 09:25:56 -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 , Petr Mladek , Andrew Morton , Will Deacon , Orson Zhai , linux-doc@vger.kernel.org Subject: [PATCH v3 01/21] dyndbg-docs: eschew file /full/path query in docs Date: Wed, 17 Jun 2020 10:25:14 -0600 Message-Id: <20200617162536.611386-2-jim.cromie@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200617162536.611386-1-jim.cromie@gmail.com> References: <20200617162536.611386-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@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