From owner-svn-src-head@freebsd.org Fri Oct 18 14:09:51 2019 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4304C151CDD; Fri, 18 Oct 2019 14:09:51 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46vnwY6yBgz4cG7; Fri, 18 Oct 2019 14:09:49 +0000 (UTC) (envelope-from ohartmann@walstatt.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1571407784; bh=qD3Ney4IWa72pK/yNPS6Y9dLOZR8QnflAIyMDKgrSjE=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References; b=iKHlm0NjYhMc5XsMLUEHZ5+4gQOuxLJy0tkiq+4ZB+4ZbVy0Qz9rSr/mMR/FKFEl6 XJvi0iNRNgLCRDFdg5BHq3OJ9O8S1SA+xvdVrBbI5Anz1O0PqxmML3WDaqIjwrncG9 UwY/03PeUQBaTnOL6TkZYlD4taduRRF66ZKZNttc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from hermann.fritz.box ([91.65.85.161]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MWzk3-1iWBGb2lS5-00XJcm; Fri, 18 Oct 2019 16:09:44 +0200 Date: Fri, 18 Oct 2019 16:09:35 +0200 From: "Hartmann, O." To: Gary Jennejohn Cc: "Hartmann, O." , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Conrad Meyer Subject: Re: svn commit: r353700 - in head: share/man/man4 sys/amd64/conf sys/conf sys/gdb sys/i386/conf sys/kern sys/net sys/sys Message-ID: <20191018160935.7dda61c4@hermann.fritz.box> In-Reply-To: <20191018140045.31d269b0@ernst.home> References: <201910172133.x9HLX1kl071044@repo.freebsd.org> <20191018122104.389ffb7a@hermann.fritz.box> <20191018140045.31d269b0@ernst.home> Organization: walstatt.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/QDD9BZgeMM6.TJkOIciNb32"; protocol="application/pgp-signature" X-Provags-ID: V03:K1:pDvxVK6+nX2U3ubIPzzQBsmu4n6s5mhIimCutNr1CKsOeNsQ3rR 92EBXRh4wA8aUNc4vucuslcU9o8cTlibnWjqJo03UkBalO6MWL97RrfzcSnEsVM6taYIgrR 1ONcsN1BIwZzgJbqm9DRv36Ss/5iqDHSPWIJFdZfKJKyDbFT0gjYva77VZpXM2KcG6PT6xv qnhOsNC11k16m1EwWmh8Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Kq25soeZzGE=:RCjuy53WoPW7bYMxpTzYfC BmmXc4+gPr/WtYo45UFFurabbWWBKeZFxQN35jtfNdxPdpQAmaVIfYkIgLFabSwvnklVvrWiw 5g4PG+LFXlKPjAUhM1VdyKnDn9C/jv0B37VAauO2Q1tLhNzibPQnIdz1aDPCJUkeHU9bpl3jJ 4lLrZW8Im3wQX2VZ/ifw7ATi6pFYcDqKx+GFklrAEsfGUtbGlHbcltNwMiikMjyN8U9WvJQzB NeJZzOmAHgUlhYC1xj56IQQGKpO+XNz37Y7w3cD+4mkA4TyQK3BjzifL+70NvZtuaJAmvjF4x BclvYOIaj7zeHPyskC5qFtEPJXL0Nyx0GbPPq7U0tj7Ne7E6F6hPiYyQwv8Nwi8Caq7aVs3GX IL9klPSiY9UKI0e89+jMO3DXuq0mlNeXnsnJu+KVSLn8FTAycuRaSDTKmq90MumRQo2z/o8n8 zhtZJVFG90JwiiRuIYFYz2dHVBBN5R8IqDJkl9cFl+mz8qKmHR9p6EfQLpt8sP9KvT0BGciYf 9qU+eThTgOI7zKCb71NADeCJDl/b3gyIcHTMPBp9axqxSE5v1xdqKPr8Bdz0VQUUmaIuCdXrC zkYhD86ln+DPlKvPhUVNa5jQVy0SzfNZKFuPAClGsUrk5iDdJmKN1C6qBqb54ahxnO1IdAcum F04wzbeZ1whLew7WyTcAdCE2CcG8PIJg/oDRjpKthSzT+JM0OjTsuphGEeIsCPwEJnrjMwlU3 9Q5FzS4im4BlbpW+sUdLWOiBPnT02ZaLKTN6cXKlY/aLNPRzCitRS57ctGYoCVJMv1MUjVrmS malKWRLdemKiezSLEoQ3bwyCBqkKnxs7N+aNivdUwEdqPsT0v2LulU8S7IyapBy9IEzLAB/2H nZ6YTsjdiKvOPABCcHCliKtq5rRT6A6PpwTnrYPgc404LbP3/QDTe9JM8amlh/+FhRgBVnF+n eoe3JiusZIlJeKVKF8+/nnTuB3MuD+uxkQh6BIOSrEFlNHZkuwMO5k2c9zGe92l2gakO1z9v+ HkNs86VABYG/B97+m60LIbGm90Dt27fbmNjzy3mCMMAytpYYrcYsmEAr/LlvtcXGDq2GHbhjv TtsCccQMlFR4qmFOQzFD8c88LZXPIq2R0q/Kt3IxOD2PIqz+lV9/rqSJdbo092ex8V7iCxr7N YZt0/t1ThoY4zgfjWQy0tJEO4fcgZ1ZCm/st4ZHsmQU+bJ+2eqvg8VsYVO9hZJQi5FxuepDOM O6aZY5c1J8HmAkItANRhgPtOupAnh1eRjRjydRoWSil5hk4/tDZ6VfcBe/Xk= X-Rspamd-Queue-Id: 46vnwY6yBgz4cG7 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=iKHlm0Nj; dmarc=none; spf=none (mx1.freebsd.org: domain of ohartmann@walstatt.org has no SPF policy when checking 212.227.15.15) smtp.mailfrom=ohartmann@walstatt.org X-Spamd-Result: default: False [-5.62 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[walstatt.org]; RCPT_COUNT_FIVE(0.00)[6]; HAS_ORG_HEADER(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmx.net:+]; RCVD_IN_DNSWL_NONE(0.00)[15.15.227.212.list.dnswl.org : 127.0.3.0]; R_SPF_NA(0.00)[]; SIGNED_PGP(-2.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-1.22)[ip: (-6.73), ipnet: 212.227.0.0/16(-1.34), asn: 8560(2.00), country: DE(-0.01)]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[161.85.65.91.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2019 14:09:51 -0000 --Sig_/QDD9BZgeMM6.TJkOIciNb32 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 18 Oct 2019 14:00:45 +0200 Gary Jennejohn wrote: > On Fri, 18 Oct 2019 12:21:04 +0200 > "Hartmann, O." wrote: >=20 > > On Thu, 17 Oct 2019 21:33:01 +0000 (UTC) > > Conrad Meyer wrote: > > =20 > > > Author: cem > > > Date: Thu Oct 17 21:33:01 2019 > > > New Revision: 353700 > > > URL: https://svnweb.freebsd.org/changeset/base/353700 > > >=20 > > > Log: > > > Implement NetGDB(4) > > > =20 > > > NetGDB(4) is a component of a system using a panic-time network > > > stack to remotely debug crashed FreeBSD kernels over the network, > > > instead of traditional serial interfaces. > > > =20 > > > There are three pieces in the complete NetGDB system. > > > =20 > > > First, a dedicated proxy server must be running to accept > > > connections from both NetGDB and gdb(1), and pass bidirectional > > > traffic between the two protocols. > > > =20 > > > Second, the NetGDB client is activated much like ordinary 'gdb' > > > and similarly to 'netdump' in ddb(4) after a panic. Like other > > > debugnet(4) clients (netdump(4)), the network interface on the > > > route to the proxy server must be online and support debugnet(4). > > > =20 > > > Finally, the remote (k)gdb(1) uses 'target remote > > > :' (like any other TCP remote) to connect to the > > > proxy server.=20 > > > The NetGDB v1 protocol speaks the literal GDB remote serial > > > protocol, and uses a 1:1 relationship between GDB packets and > > > sequences of debugnet packets (fragmented by MTU). There is no > > > encryption utilized to keep debugging sessions private, so this is > > > only appropriate for local segments or trusted networks. > > > =20 > > > Submitted by: John Reimer > > > (earlier version) Discussed some with: emaste, markj > > > Relnotes: sure > > > Differential Revision: https://reviews.freebsd.org/D21568 > > >=20 > > > Added: > > > head/share/man/man4/netgdb.4 (contents, props changed) > > > head/sys/gdb/netgdb.c (contents, props changed) > > > head/sys/gdb/netgdb.h (contents, props changed) > > > Modified: > > > head/share/man/man4/Makefile > > > head/share/man/man4/ddb.4 > > > head/sys/amd64/conf/GENERIC > > > head/sys/conf/NOTES > > > head/sys/conf/files > > > head/sys/conf/options > > > head/sys/gdb/gdb.h > > > head/sys/gdb/gdb_int.h > > > head/sys/gdb/gdb_main.c > > > head/sys/gdb/gdb_packet.c > > > head/sys/i386/conf/GENERIC > > > head/sys/kern/subr_kdb.c > > > head/sys/net/debugnet.c > > > head/sys/net/debugnet.h > > > head/sys/net/debugnet_inet.c > > > head/sys/net/debugnet_int.h > > > head/sys/sys/kdb.h > > > head/sys/sys/param.h > > >=20 > > > Modified: head/share/man/man4/Makefile > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > > --- head/share/man/man4/Makefile Thu Oct 17 21:25:50 > > > 2019 (r353699) +++ head/share/man/man4/Makefile Thu > > > Oct 17 21:33:01 2019 (r353700) @@ -307,6 +307,7 @@ MAN=3D > > > aac.4 \ net80211.4 \ > > > netdump.4 \ > > > netfpga10g_nf10bmac.4 \ > > > + netgdb.4 \ > > > netgraph.4 \ > > > netintro.4 \ > > > netmap.4 \ > > > =20 > > [...] > >=20 > >=20 > > Having "nooptions NETGDB # netgdb(4) client support" > > defined in my kernel config file, buildkernel fails with the error > > shown below. > >=20 > > [...] > > --- debugnet.o --- > > /usr/src/sys/net/debugnet.c:662:4: error: implicit declaration of > > function 'db_printf' is invalid in C99 > > [-Werror,-Wimplicit-function-declaration] db_printf("%s: Could not > > get route for that server.\n", ^ /usr/src/sys/net/debugnet.c:662:4: > > note: did you mean 'if_printf'? /usr/src/sys/net/if_var.h:679:5: > > note: 'if_printf' declared here int if_printf(struct ifnet *, > > const char *, ...) __printflike(2, 3); ^ > > 1 error generated. =20 >=20 > And I also had to add "nooptions NETDUMP" to get the kernel to compile > and link. >=20 I already had "nooptions NETDUMP" defined. --Sig_/QDD9BZgeMM6.TJkOIciNb32 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCXanHnwAKCRA4N1ZZPba5 RwkDAQDr3BPxOYQ9wVWEHJSdoh9FaZwUL3Da8rq95ilniToCsQEAn41jhqLtxHGy x8/mBqkoANW/I60IdMtYlrRYQt1NAg8= =3ZbB -----END PGP SIGNATURE----- --Sig_/QDD9BZgeMM6.TJkOIciNb32--