From nobody Thu Jun 29 13:01:22 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QsJVV6R5zz4k5QN; Thu, 29 Jun 2023 13:01:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QsJVV5y3kz4HF2; Thu, 29 Jun 2023 13:01:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688043682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bGpapuCgq3bpcbBP3Bze7/NR68HA/Fsi7wLOSRSjKxI=; b=O+M6Iu6N0o5n71kuqAkJIIXevkidZpV/mbOp6ZF5OZmhC8qeonKEXBqEGYWO25yA2ZDhNN zfxj19MV7M5f8Hwgoe/zt41seVnvG3qcvoQcjGTQmDIbhlzc2SEEXCl1AHGXitjK36dtWY UZ0P/w7eA/dU/3o/BLWBmc1zw1G+kG9DkrUr4NG5juYKFcMKCnbgkRQeIlJm9ioNZaqtNR xZjyfhfhBRt4sTBkDidMItjoO1cDADJTm38Bu0DAwEpSCJQ+BXHZ2adksPgDV+9Hb3pafE yjbO1uMHW2HPni82gc4D5Ii8k89Qhc1yn13ZDAU5za74dqe8unB0TXLKH9XSvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688043682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bGpapuCgq3bpcbBP3Bze7/NR68HA/Fsi7wLOSRSjKxI=; b=dXfQzi0fJztYSJAng9pbkfvsc87LcOhysks/Mb+4hlJVEZccfas1GEOwrWR7Sm1SAEPNn1 OVf80ksexqD9p310tcmRQGcATkiYQ5AbZZC0Sf7ibS5MBP+IGAlJ16zoH2qkqgFHEZOR5T cWCXZcSc1P9T75mWPtrQ1T9a7BWQdgx6sH9OBXpkknk5zDoQx34hW1DRSBV6HkrdOsBHo+ KigEe3pb1QCtP/iHmb4wCSWBCWzPhLEOu+6vYXWbzTK08I6dTLdJ/LhC5xu4vLGaE1pX3E ALxS48ONfzaiQXwr25PR60gPoMDKn4dziW/aY7R4L8W57Zv3kIqDN41SP990jw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688043682; a=rsa-sha256; cv=none; b=gexNRNHZdoqBrRKRBBfNOuqFaV6yvPqqSBxXk504JY+56ZJhwR8xXqE1kk6fm7vw1YRYGZ cDlzAPOTo9zVlPPbbf1ek9ykvtptI0AZ6aHCoCeLl5IpZ/pCMdqF3VzrMaS8fPVtK1qCcX PH45rnbzLEHsVfJdTq29uGiGV7SDdweHwzmciI4Xlo9TCScu0Bz0ijeEd4vIVJadDWTssy sRkhk+wER/PKYltPc4Xk8nLdtBO8hao7QZi0dLTaW07qE2cmMmdm0oYlhgV3WFDG/CGNZr io1qdU3ludGPRFB0S2D2wOeMGfT6MvsXu+hoklWrhIm6fFpxbAcUbDq+Af+qfA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QsJVV50FKzHRN; Thu, 29 Jun 2023 13:01:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 35TD1MEa049084; Thu, 29 Jun 2023 13:01:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 35TD1MMC049083; Thu, 29 Jun 2023 13:01:22 GMT (envelope-from git) Date: Thu, 29 Jun 2023 13:01:22 GMT Message-Id: <202306291301.35TD1MMC049083@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Michael Tuexen Subject: git: 81b4bf08955a - main - man: improve man pages for dtrace_sctp and dtrace_tcp List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 81b4bf08955a86e51cbc7ff878e95ff5e86e5eee Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=81b4bf08955a86e51cbc7ff878e95ff5e86e5eee commit 81b4bf08955a86e51cbc7ff878e95ff5e86e5eee Author: Michael Tuexen AuthorDate: 2023-06-29 12:53:56 +0000 Commit: Michael Tuexen CommitDate: 2023-06-29 12:59:51 +0000 man: improve man pages for dtrace_sctp and dtrace_tcp Reviewed by: manpages MFC after: 3 days Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D40796 --- share/man/man4/dtrace_sctp.4 | 14 +++++++------- share/man/man4/dtrace_tcp.4 | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/share/man/man4/dtrace_sctp.4 b/share/man/man4/dtrace_sctp.4 index 7da53ca1f383..7f8490e97ab4 100644 --- a/share/man/man4/dtrace_sctp.4 +++ b/share/man/man4/dtrace_sctp.4 @@ -23,7 +23,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 22, 2018 +.Dd June 29, 2023 .Dt DTRACE_SCTP 4 .Os .Sh NAME @@ -150,20 +150,20 @@ A script that logs SCTP packets in real time: dtrace:::BEGIN { - printf(" %3s %15s:%-5s %15s:%-5s\n", "CPU", + printf(" %3s %15s:%-5s %15s:%-5s\\n", "CPU", "LADDR", "LPORT", "RADDR", "RPORT"); } sctp:::send { - printf(" %3d %16s:%-5d -> %16s:%-5d\n", cpu, + printf(" %3d %16s:%-5d -> %16s:%-5d\\n", cpu, args[2]->ip_saddr, args[4]->sctp_sport, args[2]->ip_daddr, args[4]->sctp_dport); } sctp:::receive { - printf(" %3d %16s:%-5d <- %16s:%-5d\n", cpu, + printf(" %3d %16s:%-5d <- %16s:%-5d\\n", cpu, args[2]->ip_daddr, args[4]->sctp_dport, args[2]->ip_saddr, args[4]->sctp_sport); } @@ -177,7 +177,7 @@ int last[int]; dtrace:::BEGIN { - printf(" %3s %12s %-25s %-25s\n", + printf(" %3s %12s %-25s %-25s\\n", "CPU", "DELTA(us)", "OLD", "NEW"); } @@ -185,7 +185,7 @@ sctp:::state-change / last[args[1]->cs_cid] / { this->elapsed = (timestamp - last[args[1]->cs_cid]) / 1000; - printf(" %3d %12d %-25s -> %-25s\n", cpu, this->elapsed, + printf(" %3d %12d %-25s -> %-25s\\n", cpu, this->elapsed, sctp_state_string[args[5]->sctps_state], sctp_state_string[args[3]->sctps_state]); last[args[1]->cs_cid] = timestamp; @@ -194,7 +194,7 @@ sctp:::state-change sctp:::state-change / last[args[1]->cs_cid] == 0 / { - printf(" %3d %12s %-25s -> %-25s\n", cpu, "-", + printf(" %3d %12s %-25s -> %-25s\\n", cpu, "-", sctp_state_string[args[5]->sctps_state], sctp_state_string[args[3]->sctps_state]); last[args[1]->cs_cid] = timestamp; diff --git a/share/man/man4/dtrace_tcp.4 b/share/man/man4/dtrace_tcp.4 index dbe3dd7ac099..5372b1a858f0 100644 --- a/share/man/man4/dtrace_tcp.4 +++ b/share/man/man4/dtrace_tcp.4 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 1, 2018 +.Dd June 29, 2023 .Dt DTRACE_TCP 4 .Os .Sh NAME @@ -317,7 +317,7 @@ tcp:::send printf("%s", args[4]->tcp_flags & TH_ACK ? "ACK|" : ""); printf("%s", args[4]->tcp_flags & TH_URG ? "URG|" : ""); printf("%s", args[4]->tcp_flags == 0 ? "null " : ""); - printf("\b)\\n"); + printf("\\b)\\n"); } tcp:::receive @@ -333,7 +333,7 @@ tcp:::receive printf("%s", args[4]->tcp_flags & TH_ACK ? "ACK|" : ""); printf("%s", args[4]->tcp_flags & TH_URG ? "URG|" : ""); printf("%s", args[4]->tcp_flags == 0 ? "null " : ""); - printf("\b)\\n"); + printf("\\b)\\n"); } .Ed The following script logs TCP connection state changes as they occur: