Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp616781ybt; Wed, 17 Jun 2020 09:28:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwB+cX5o7kc1hI8RTKUXJmV26DtOFq8nSf7L0Q56wkyaQ+xFpgvifDZ82b9gQ4EyuFKvQ1 X-Received: by 2002:a17:906:5c0a:: with SMTP id e10mr8503851ejq.389.1592411295403; Wed, 17 Jun 2020 09:28:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592411295; cv=none; d=google.com; s=arc-20160816; b=v3fWAsSGzt3f4oHXoni1/EyZ+AlZ/c42AHmto2f4ZESFgXFcwJFLBsyY883xqzLUA0 imD9rslwg0W/RmSlizau/WAtcpXZ+dwTk3Q0YHsTj7cUzJ/GRWjobk2d+22K727tB56R 4ipAbePp/y949+wSDJpAww9htQM+M4SuxZhYE6RJUYg8z926SMN5BXJoMX9eC/jz8+78 hHZTjKvtGpgKr5zkEucN9xQijK/Ed6lfNZzZDiB368tHfd3M6iAXalgktVYsIIrIpx29 NS8XHI9B1crL7XHrEOHn5iQYH/HXsmc8sXdz1nFjBkz5T5oPmxdlQQjfkOo9L58td+dz LuzA== 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=OF6R1SHPsfonqhF4iNCswBqcEZ9HOq+844eZauNFZmVxLmdkhbJqn+ebfZY5AkCGjy tdKS0VFKMtngNdLe4jfdlTF46jM3yNmmxBjoBuXtpvbO7oDrn8PR+S4LOGrfOnDX3Bpl zz82HlL8C0tLwX9EDeb0b6vj7tZlpdoRpwUnLxeJyyhgQW6SWFp/6/FnzMU3DYQURoMI lDCOmUioRu7AER1NeEYhVNCnh64Uq6E1S0b1YyxRsFz9L9J15vOswdLOSPHGmODnBYVH DTv+EYbOpjk6QIygNxnyCS5AYAEcvUgcFRbgjjNib/KhLOMWObdCVWtNedQiw+yfqZh5 myig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GAhdcyuL; 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 gh22si174089ejb.481.2020.06.17.09.27.51; Wed, 17 Jun 2020 09:28:15 -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=GAhdcyuL; 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 S1726915AbgFQQZ7 (ORCPT + 99 others); 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-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-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