CVS commit: src/share/man/man4
Module Name:src Committed By: mrg Date: Sun Oct 22 02:23:04 UTC 2023 Modified Files: src/share/man/man4: drm.4 Log Message: use "including formerly ATI" for radeon, AMD released many of the cards that radeon(4) supports. add Rafal Boni to the authors. bump date. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/share/man/man4/drm.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/drm.4 diff -u src/share/man/man4/drm.4:1.20 src/share/man/man4/drm.4:1.21 --- src/share/man/man4/drm.4:1.20 Wed Oct 18 10:50:42 2023 +++ src/share/man/man4/drm.4 Sun Oct 22 02:23:04 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: drm.4,v 1.20 2023/10/18 10:50:42 riastradh Exp $ +.\" $NetBSD: drm.4,v 1.21 2023/10/22 02:23:04 mrg Exp $ .\" .\" Copyright (c) 2007, 2013 Thomas Klausner .\" All rights reserved. @@ -23,7 +23,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd October 17, 2023 +.Dd October 21, 2023 .Dt DRM 4 .Os .Sh NAME @@ -120,7 +120,7 @@ graphics devices. .It radeon Older .Tn AMD -.Pq formerly Tn ATI +.Pq including formerly Tn ATI Radeon graphics devices. .It viadrmums Po legacy Tn UMS Pc .Tn VIA @@ -217,6 +217,7 @@ port was contributed by: .An Anonymous , .An Nia Alarie , .An Eric Anholt , +.An Rafal Boni , .An Taylor R Campbell , .An Mihai Chelaru , .An David Brownlee ,
CVS commit: src/share/man/man4
Module Name:src Committed By: mrg Date: Sun Oct 22 02:23:04 UTC 2023 Modified Files: src/share/man/man4: drm.4 Log Message: use "including formerly ATI" for radeon, AMD released many of the cards that radeon(4) supports. add Rafal Boni to the authors. bump date. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/share/man/man4/drm.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc
Module Name:src Committed By: mrg Date: Sun Oct 22 00:09:20 UTC 2023 Modified Files: src/external/gpl3/gcc: README.gcc12 Log Message: note as being equally function on riscv32. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gcc/README.gcc12 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/README.gcc12 diff -u src/external/gpl3/gcc/README.gcc12:1.19 src/external/gpl3/gcc/README.gcc12:1.20 --- src/external/gpl3/gcc/README.gcc12:1.19 Sun Oct 15 07:03:17 2023 +++ src/external/gpl3/gcc/README.gcc12 Sun Oct 22 00:09:20 2023 @@ -1,4 +1,4 @@ -$NetBSD: README.gcc12,v 1.19 2023/10/15 07:03:17 skrll Exp $ +$NetBSD: README.gcc12,v 1.20 2023/10/22 00:09:20 mrg Exp $ new stuff: @@ -65,11 +65,12 @@ sparc y y y y n[21] y y y ? sparc64 y b y y n[16] y y ? ? vax y y y y n[23] n n[24,25] ? ? x86_64 y y y y y[13] y y y ? -riscv32 y y y y b y ? ? ? +riscv32 y y y y b y n[2] ? ? riscv64 y y y y b y y y ? - --- -- --- --- architecture tools kernels libgcc native-gcc/sani make release runs atf +[2]: riscv32 kernels are not really implemented yet, not GCC 12 issue. [3]: GENERIC.SKI boots just as well as GCC 10. [4]: rs6000 has a new generator for rs6000-builtins.cc and rs6000-builtins.h rs6000-vecdefines.h [7]: fails to build kernels:
CVS commit: src/external/gpl3/gcc
Module Name:src Committed By: mrg Date: Sun Oct 22 00:09:20 UTC 2023 Modified Files: src/external/gpl3/gcc: README.gcc12 Log Message: note as being equally function on riscv32. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gcc/README.gcc12 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common
Module Name:src Committed By: mrg Date: Sun Oct 22 00:08:50 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_asm.h Log Message: enable NO_EXEC_STACK_DIRECTIVE on netbsd. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_asm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common
Module Name:src Committed By: mrg Date: Sun Oct 22 00:08:50 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_asm.h Log Message: enable NO_EXEC_STACK_DIRECTIVE on netbsd. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_asm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_asm.h diff -u src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_asm.h:1.3 src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_asm.h:1.4 --- src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_asm.h:1.3 Sun Jul 30 05:51:42 2023 +++ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_asm.h Sun Oct 22 00:08:50 2023 @@ -59,7 +59,8 @@ #endif #if defined(__ELF__) && (defined(__GNU__) || defined(__FreeBSD__) || \ - defined(__Fuchsia__) || defined(__linux__)) + defined(__Fuchsia__) || defined(__linux__) || \ + defined(__NetBSD__)) // clang-format off #define NO_EXEC_STACK_DIRECTIVE .section .note.GNU-stack,"",%progbits // clang-format on
CVS commit: src/usr.sbin/vnconfig
Module Name:src Committed By: gdt Date: Sat Oct 21 23:42:03 UTC 2023 Modified Files: src/usr.sbin/vnconfig: vnconfig.8 Log Message: vnconfig.8: Don't mention ciphertext After all, this is not cgd(4). To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/usr.sbin/vnconfig/vnconfig.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.sbin/vnconfig
Module Name:src Committed By: gdt Date: Sat Oct 21 23:42:03 UTC 2023 Modified Files: src/usr.sbin/vnconfig: vnconfig.8 Log Message: vnconfig.8: Don't mention ciphertext After all, this is not cgd(4). To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/usr.sbin/vnconfig/vnconfig.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.sbin/vnconfig/vnconfig.8 diff -u src/usr.sbin/vnconfig/vnconfig.8:1.49 src/usr.sbin/vnconfig/vnconfig.8:1.50 --- src/usr.sbin/vnconfig/vnconfig.8:1.49 Sat Oct 21 23:38:26 2023 +++ src/usr.sbin/vnconfig/vnconfig.8 Sat Oct 21 23:42:03 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: vnconfig.8,v 1.49 2023/10/21 23:38:26 gdt Exp $ +.\" $NetBSD: vnconfig.8,v 1.50 2023/10/21 23:42:03 gdt Exp $ .\" .\" Copyright (c) 1997 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -110,8 +110,8 @@ accesses separated in time, this is gene This bypassing behavior results in not updating the modification timestamp of the file. Also, file contents read through the filesystem (and thus the -filesystem's caching layer) may not be the correct values of -ciphertext, so caution is in order for backups. +filesystem's caching layer) may not be the contents written via this +interface, so caution is in order for backups. The .Fl i option may be useful if it is necessary to avoid inconsistent caching.
CVS commit: src/usr.sbin/vnconfig
Module Name:src Committed By: gdt Date: Sat Oct 21 23:38:26 UTC 2023 Modified Files: src/usr.sbin/vnconfig: vnconfig.8 Log Message: vnconfig: Improve recent caching edit to man page Explain that typical usage patterns don't run into consistency issues. Xref the -i flag. Leave ambiguous the nature of cache inconsistency, because I don't undersstand it and it's best not to make it a defined interface anyway. I am unclear on whether a buffer cache read before a vnd session might persist after a vnd is configured/used/unconfigured, and whether a buffer cache write might be delayed until after a vnd configure/write. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/usr.sbin/vnconfig/vnconfig.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.sbin/vnconfig/vnconfig.8 diff -u src/usr.sbin/vnconfig/vnconfig.8:1.48 src/usr.sbin/vnconfig/vnconfig.8:1.49 --- src/usr.sbin/vnconfig/vnconfig.8:1.48 Fri Oct 20 13:04:21 2023 +++ src/usr.sbin/vnconfig/vnconfig.8 Sat Oct 21 23:38:26 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: vnconfig.8,v 1.48 2023/10/20 13:04:21 wiz Exp $ +.\" $NetBSD: vnconfig.8,v 1.49 2023/10/21 23:38:26 gdt Exp $ .\" .\" Copyright (c) 1997 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -100,12 +100,21 @@ The is a special file of raw partition or name of vnode disk like .Pa vnd0 . .Pp -By default, accesses to the file bypass normal mechanisms. -This behavior results in not updating the modification timestamp -of the file. -Also, file contents read through the filesystem may not be the -correct values of ciphertext, which can lead to corrupted backups of -the backing file. +By default, accesses to the file bypass normal mechanisms and thus +do not read from or fill the filesystem cache. +Because the typical approach is to access the file only via +.Xr vnd 4 , +or at least to have regular accesses and +.Xr vnd 4 +accesses separated in time, this is generally not problematic. +This bypassing behavior results in not updating the modification +timestamp of the file. +Also, file contents read through the filesystem (and thus the +filesystem's caching layer) may not be the correct values of +ciphertext, so caution is in order for backups. +The +.Fl i +option may be useful if it is necessary to avoid inconsistent caching. .Pp Options indicate an action to be performed: .Bl -tag -width indent
CVS commit: src/usr.sbin/vnconfig
Module Name:src Committed By: gdt Date: Sat Oct 21 23:38:26 UTC 2023 Modified Files: src/usr.sbin/vnconfig: vnconfig.8 Log Message: vnconfig: Improve recent caching edit to man page Explain that typical usage patterns don't run into consistency issues. Xref the -i flag. Leave ambiguous the nature of cache inconsistency, because I don't undersstand it and it's best not to make it a defined interface anyway. I am unclear on whether a buffer cache read before a vnd session might persist after a vnd is configured/used/unconfigured, and whether a buffer cache write might be delayed until after a vnd configure/write. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/usr.sbin/vnconfig/vnconfig.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ic
Module Name:src Committed By: skrll Date: Sat Oct 21 14:49:12 UTC 2023 Modified Files: src/sys/dev/ic: dwc_eqos.c Log Message: Trailing whitespace To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/dev/ic/dwc_eqos.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ic
Module Name:src Committed By: skrll Date: Sat Oct 21 14:49:12 UTC 2023 Modified Files: src/sys/dev/ic: dwc_eqos.c Log Message: Trailing whitespace To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/dev/ic/dwc_eqos.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/ic/dwc_eqos.c diff -u src/sys/dev/ic/dwc_eqos.c:1.21 src/sys/dev/ic/dwc_eqos.c:1.22 --- src/sys/dev/ic/dwc_eqos.c:1.21 Fri Oct 20 13:29:51 2023 +++ src/sys/dev/ic/dwc_eqos.c Sat Oct 21 14:49:12 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: dwc_eqos.c,v 1.21 2023/10/20 13:29:51 msaitoh Exp $ */ +/* $NetBSD: dwc_eqos.c,v 1.22 2023/10/21 14:49:12 skrll Exp $ */ /*- * Copyright (c) 2022 Jared McNeill @@ -38,7 +38,7 @@ #include "opt_net_mpsafe.h" #include -__KERNEL_RCSID(0, "$NetBSD: dwc_eqos.c,v 1.21 2023/10/20 13:29:51 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dwc_eqos.c,v 1.22 2023/10/21 14:49:12 skrll Exp $"); #include #include @@ -1390,7 +1390,7 @@ eqos_attach(struct eqos_softc *sc) aprint_error(": EQOS version 0x%02xx not supported\n", snpsver); return ENXIO; - } + } if (sc->sc_csr_clock < 2000) { aprint_error(": CSR clock too low\n");
CVS commit: [netbsd-10] src/doc
Module Name:src Committed By: martin Date: Sat Oct 21 13:01:00 UTC 2023 Modified Files: src/doc [netbsd-10]: CHANGES-10.0 Log Message: Ticket #433 To generate a diff of this commit: cvs rdiff -u -r1.1.2.144 -r1.1.2.145 src/doc/CHANGES-10.0 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-10.0 diff -u src/doc/CHANGES-10.0:1.1.2.144 src/doc/CHANGES-10.0:1.1.2.145 --- src/doc/CHANGES-10.0:1.1.2.144 Fri Oct 20 18:37:28 2023 +++ src/doc/CHANGES-10.0 Sat Oct 21 13:01:00 2023 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-10.0,v 1.1.2.144 2023/10/20 18:37:28 martin Exp $ +# $NetBSD: CHANGES-10.0,v 1.1.2.145 2023/10/21 13:01:00 martin Exp $ A complete list of changes from the initial NetBSD 10.0 branch on 2022-12-16 until the 10.0 release: @@ -12639,3 +12639,10 @@ sys/arch/x86/x86/genfb_machdep.c 1.23 ( Allow building kernels with acpi(4) but no framebuffer devices. [bouyer, ticket #432] +sys/arch/x86/pci/pci_machdep.c (apply patch) +sys/arch/x86/x86/genfb_machdep.c (apply patch) + + Fix build of XEN kernels with genfb(4). + Fixes fallout from ticket #432. + [bouyer, ticket #433] +
CVS commit: [netbsd-10] src/doc
Module Name:src Committed By: martin Date: Sat Oct 21 13:01:00 UTC 2023 Modified Files: src/doc [netbsd-10]: CHANGES-10.0 Log Message: Ticket #433 To generate a diff of this commit: cvs rdiff -u -r1.1.2.144 -r1.1.2.145 src/doc/CHANGES-10.0 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-10] src/sys/arch/x86
Module Name:src Committed By: martin Date: Sat Oct 21 12:59:25 UTC 2023 Modified Files: src/sys/arch/x86/pci [netbsd-10]: pci_machdep.c src/sys/arch/x86/x86 [netbsd-10]: genfb_machdep.c Log Message: Apply patch, requested by bouyer in ticket #433: sys/arch/x86/pci/pci_machdep.c (apply patch) sys/arch/x86/x86/genfb_machdep.c(apply patch) Fix build of XEN kernels with genfb(4) To generate a diff of this commit: cvs rdiff -u -r1.93.4.3 -r1.93.4.4 src/sys/arch/x86/pci/pci_machdep.c cvs rdiff -u -r1.19.4.3 -r1.19.4.4 src/sys/arch/x86/x86/genfb_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/x86/pci/pci_machdep.c diff -u src/sys/arch/x86/pci/pci_machdep.c:1.93.4.3 src/sys/arch/x86/pci/pci_machdep.c:1.93.4.4 --- src/sys/arch/x86/pci/pci_machdep.c:1.93.4.3 Wed Oct 18 16:53:03 2023 +++ src/sys/arch/x86/pci/pci_machdep.c Sat Oct 21 12:59:25 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: pci_machdep.c,v 1.93.4.3 2023/10/18 16:53:03 martin Exp $ */ +/* $NetBSD: pci_machdep.c,v 1.93.4.4 2023/10/21 12:59:25 martin Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -73,7 +73,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.93.4.3 2023/10/18 16:53:03 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.93.4.4 2023/10/21 12:59:25 martin Exp $"); #include #include @@ -1058,13 +1058,13 @@ static bool x86_genfb_setmode(struct genfb_softc *sc, int newmode) { #if NGENFB > 0 -# if NACPICA > 0 && defined(VGA_POST) +# if NACPICA > 0 && defined(VGA_POST) && !defined(XENPV) static int curmode = WSDISPLAYIO_MODE_EMUL; # endif switch (newmode) { case WSDISPLAYIO_MODE_EMUL: -# if NACPICA > 0 && defined(VGA_POST) +# if NACPICA > 0 && defined(VGA_POST) && !defined(XENPV) if (curmode != newmode) { if (vga_posth != NULL && acpi_md_vesa_modenum != 0) { vga_post_set_vbe(vga_posth, @@ -1075,7 +1075,7 @@ x86_genfb_setmode(struct genfb_softc *sc break; } -# if NACPICA > 0 && defined(VGA_POST) +# if NACPICA > 0 && defined(VGA_POST) && !defined(XENPV) curmode = newmode; # endif #endif @@ -1094,7 +1094,7 @@ x86_genfb_resume(device_t dev, const pmf #if NGENFB > 0 struct pci_genfb_softc *psc = device_private(dev); -#if NACPICA > 0 && defined(VGA_POST) +#if NACPICA > 0 && defined(VGA_POST) && !defined(XENPV) if (vga_posth != NULL && acpi_md_vbios_reset == 2) { vga_post_call(vga_posth); if (acpi_md_vesa_modenum != 0) Index: src/sys/arch/x86/x86/genfb_machdep.c diff -u src/sys/arch/x86/x86/genfb_machdep.c:1.19.4.3 src/sys/arch/x86/x86/genfb_machdep.c:1.19.4.4 --- src/sys/arch/x86/x86/genfb_machdep.c:1.19.4.3 Fri Oct 20 18:35:54 2023 +++ src/sys/arch/x86/x86/genfb_machdep.c Sat Oct 21 12:59:25 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: genfb_machdep.c,v 1.19.4.3 2023/10/20 18:35:54 martin Exp $ */ +/* $NetBSD: genfb_machdep.c,v 1.19.4.4 2023/10/21 12:59:25 martin Exp $ */ /*- * Copyright (c) 2009 Jared D. McNeill @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: genfb_machdep.c,v 1.19.4.3 2023/10/20 18:35:54 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: genfb_machdep.c,v 1.19.4.4 2023/10/21 12:59:25 martin Exp $"); #include #include @@ -137,7 +137,7 @@ x86_genfb_init(void) return 0; } -#if NACPICA > 0 +#if NACPICA > 0 && !defined(XENPV) acpi_md_vesa_modenum = fbinfo->vbemode; #endif
CVS commit: [netbsd-10] src/sys/arch/x86
Module Name:src Committed By: martin Date: Sat Oct 21 12:59:25 UTC 2023 Modified Files: src/sys/arch/x86/pci [netbsd-10]: pci_machdep.c src/sys/arch/x86/x86 [netbsd-10]: genfb_machdep.c Log Message: Apply patch, requested by bouyer in ticket #433: sys/arch/x86/pci/pci_machdep.c (apply patch) sys/arch/x86/x86/genfb_machdep.c(apply patch) Fix build of XEN kernels with genfb(4) To generate a diff of this commit: cvs rdiff -u -r1.93.4.3 -r1.93.4.4 src/sys/arch/x86/pci/pci_machdep.c cvs rdiff -u -r1.19.4.3 -r1.19.4.4 src/sys/arch/x86/x86/genfb_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/doc
Module Name:src Committed By: nia Date: Sat Oct 21 09:57:40 UTC 2023 Modified Files: src/doc: CHANGES Log Message: Typos and wording. To generate a diff of this commit: cvs rdiff -u -r1.3010 -r1.3011 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES diff -u src/doc/CHANGES:1.3010 src/doc/CHANGES:1.3011 --- src/doc/CHANGES:1.3010 Sat Oct 21 08:52:43 2023 +++ src/doc/CHANGES Sat Oct 21 09:57:40 2023 @@ -1,4 +1,4 @@ -# LIST OF CHANGES FROM LAST RELEASE: <$Revision: 1.3010 $> +# LIST OF CHANGES FROM LAST RELEASE: <$Revision: 1.3011 $> # # # [Note: This file does not mention every change made to the NetBSD source tree. @@ -245,8 +245,8 @@ Changes from NetBSD 10.0 to NetBSD 11.0: uhid(4): Improve hid matching to allow better recognition of collections. [nat 20231017] xen: Support genfb(4) as a console device for dom0, necessary for - graphical console on EFI-ony hardware. [bouyer 20231017] - lagg(4): Copy MTU of lagg to a interface added to lagg + graphical console on EFI-only hardware. [bouyer 20231017] + lagg(4): Copy the MTU of lagg to interfaces added to lagg [yamaguchi 20231018] dhcpcd: Import version 10.0.4. [roy 20231019] eqos(4): Add support for Intel Elkhart Lake internal Ethernet devices.
CVS commit: src/doc
Module Name:src Committed By: nia Date: Sat Oct 21 09:57:40 UTC 2023 Modified Files: src/doc: CHANGES Log Message: Typos and wording. To generate a diff of this commit: cvs rdiff -u -r1.3010 -r1.3011 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/doc
Module Name:src Committed By: nia Date: Sat Oct 21 08:52:43 UTC 2023 Modified Files: src/doc: CHANGES Log Message: Add a bunch of changes from the past 2 months that stood out to me. To generate a diff of this commit: cvs rdiff -u -r1.3009 -r1.3010 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES diff -u src/doc/CHANGES:1.3009 src/doc/CHANGES:1.3010 --- src/doc/CHANGES:1.3009 Fri Oct 20 16:07:16 2023 +++ src/doc/CHANGES Sat Oct 21 08:52:43 2023 @@ -1,4 +1,4 @@ -# LIST OF CHANGES FROM LAST RELEASE: <$Revision: 1.3009 $> +# LIST OF CHANGES FROM LAST RELEASE: <$Revision: 1.3010 $> # # # [Note: This file does not mention every change made to the NetBSD source tree. @@ -221,12 +221,34 @@ Changes from NetBSD 10.0 to NetBSD 11.0: acpi(4): Updated ACPICA to 20230628. [christos 20230901] sqlite3(1): Import 3.34.0. [christos 20230904] namecache: Tune the namecache for 32-bit systems [ad 20230909] + mips: Add initial support for n64 userland to gprof(1). + [rin 20230914] tzcode: Updated to 2023c. [christos 20230916] + raidctl(8): Implement command-line configuration of simple RAID sets. + [oster 20230921] + rc.conf(5): Add support for npf_rules to override the default + rules file for npf(7). [abs 20231005] igc(4): Add initial support to Intel I225/I226 series Ethernet devices. [knakahara, rin, msaitoh 20231006] less: Updated to version 643. [simonb 20231006] gcc.old: Initial import of major vax toolchain fix by Kalvis Duckmanton. [rin 20231007] + ddb(4): Add some simple show commands: condvar, selinfo, sleepq + [ad 20231007] + mips: Add fma(3) to libm. [he 20231008] + heimdal: Disable sqlite3 credential cache (SCC), remove sqlite3 + dependency. [riastradh 20231011] + pipe(2): Improve performance, reduce lock contention. [ad 20231013] + vax: Reduce the object size of the malloc(3) code by converting + to rbtree, also improve performance and locking. + [ad 20231013] + uhid(4): Improve hid matching to allow better recognition of + collections. [nat 20231017] + xen: Support genfb(4) as a console device for dom0, necessary for + graphical console on EFI-ony hardware. [bouyer 20231017] + lagg(4): Copy MTU of lagg to a interface added to lagg + [yamaguchi 20231018] dhcpcd: Import version 10.0.4. [roy 20231019] eqos(4): Add support for Intel Elkhart Lake internal Ethernet devices. [msaitoh 20231019] + top(1): Add network in & out bytes to the top display. [mrg 20231021]
CVS commit: src/doc
Module Name:src Committed By: nia Date: Sat Oct 21 08:52:43 UTC 2023 Modified Files: src/doc: CHANGES Log Message: Add a bunch of changes from the past 2 months that stood out to me. To generate a diff of this commit: cvs rdiff -u -r1.3009 -r1.3010 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/bsd/top/dist/machine
Module Name:src Committed By: mrg Date: Sat Oct 21 06:30:23 UTC 2023 Modified Files: src/external/bsd/top/dist/machine: m_netbsd.c Log Message: top: add network in & out bytes to the top display. inspired by the macos top(1). the first value displayed is the total in/out bytes since boot, but each update is the amount since the prior update. the new fetching code heavily based upon netstat/if.c. old version: Swap: 128G Total, 128G Free / Pools: 13G Used new version: Swap: 128G Total, 128G Free / Pools: 13G Used, / Network: 26M In, 804K Out update the list of people who have contributed to m_netbsd.c. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/external/bsd/top/dist/machine/m_netbsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/bsd/top/dist/machine
Module Name:src Committed By: mrg Date: Sat Oct 21 06:30:23 UTC 2023 Modified Files: src/external/bsd/top/dist/machine: m_netbsd.c Log Message: top: add network in & out bytes to the top display. inspired by the macos top(1). the first value displayed is the total in/out bytes since boot, but each update is the amount since the prior update. the new fetching code heavily based upon netstat/if.c. old version: Swap: 128G Total, 128G Free / Pools: 13G Used new version: Swap: 128G Total, 128G Free / Pools: 13G Used, / Network: 26M In, 804K Out update the list of people who have contributed to m_netbsd.c. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/external/bsd/top/dist/machine/m_netbsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/bsd/top/dist/machine/m_netbsd.c diff -u src/external/bsd/top/dist/machine/m_netbsd.c:1.26 src/external/bsd/top/dist/machine/m_netbsd.c:1.27 --- src/external/bsd/top/dist/machine/m_netbsd.c:1.26 Fri Jul 15 06:39:06 2022 +++ src/external/bsd/top/dist/machine/m_netbsd.c Sat Oct 21 06:30:23 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: m_netbsd.c,v 1.26 2022/07/15 06:39:06 mrg Exp $ */ +/* $NetBSD: m_netbsd.c,v 1.27 2023/10/21 06:30:23 mrg Exp $ */ /* * top - a top users display for Unix @@ -20,6 +20,14 @@ * and should work for: * NetBSD-2.0 (when released) * - + * NetBSD-4.0 updates from Christos Zoulas. + * NetBSD-5.0 updates from Andrew Doran, Mindaugas Rasiukevicius and + * Christos Zoulas. + * NetBSD-6.0 updates from matthew green, Christos Zoulas, and + * Mindaugas Rasiukevicius. + * NetBSD-8 updates from Leonardo Taccari. + * NetBSD-10 updates from Christos Zoulas and matthew green. + * * top does not need to be installed setuid or setgid with this module. * * LIBS: -lkvm @@ -37,12 +45,12 @@ * Andrew Doran * * - * $Id: m_netbsd.c,v 1.26 2022/07/15 06:39:06 mrg Exp $ + * $Id: m_netbsd.c,v 1.27 2023/10/21 06:30:23 mrg Exp $ */ #include #ifndef lint -__RCSID("$NetBSD: m_netbsd.c,v 1.26 2022/07/15 06:39:06 mrg Exp $"); +__RCSID("$NetBSD: m_netbsd.c,v 1.27 2023/10/21 06:30:23 mrg Exp $"); #endif #include @@ -50,6 +58,9 @@ __RCSID("$NetBSD: m_netbsd.c,v 1.26 2022 #include #include #include +#include + +#include #include @@ -166,9 +177,10 @@ const char *memorynames[] = { NULL }; -long swap_stats[6]; +long swap_stats[9]; const char *swapnames[] = { "K Total, ", "K Used, ", "K Free ", " Pools: ", "K Used, ", + " Network: ", "K In, ", "K Out, ", NULL }; @@ -445,11 +457,60 @@ format_header(char *uname_field) return(header); } +static void +get_network_kilobytes(long *kb_in, long *kb_out) +{ + struct if_msghdr *ifm; + int mib[6] = { CTL_NET, AF_ROUTE, 0, 0, NET_RT_IFLIST, 0 }; + struct rt_msghdr *rtm; + struct if_data *ifd = NULL; + static char *buf = NULL; + static size_t olen; + char *next, *lim; + size_t len; + static uint64_t last_bytes_in; + static uint64_t last_bytes_out; + uint64_t cur_bytes_in = 0; + uint64_t cur_bytes_out = 0; + + if (sysctl(mib, 6, NULL, , NULL, 0) == -1) + err(1, "sysctl"); + if (len > olen) { + free(buf); + if ((buf = malloc(len)) == NULL) + err(1, NULL); + olen = len; + } + if (sysctl(mib, 6, buf, , NULL, 0) == -1) + err(1, "sysctl"); + + lim = buf + len; + for (next = buf; next < lim; next += rtm->rtm_msglen) { + rtm = (struct rt_msghdr *)next; + if (rtm->rtm_version != RTM_VERSION) + continue; + switch (rtm->rtm_type) { + case RTM_IFINFO: + ifm = (struct if_msghdr *)next; + ifd = >ifm_data; + + cur_bytes_in += ifd->ifi_ibytes; + cur_bytes_out += ifd->ifi_obytes; + break; + } + } + + *kb_in = (cur_bytes_in - last_bytes_in) / 1024; + *kb_out = (cur_bytes_out - last_bytes_out) / 1024; + last_bytes_in = cur_bytes_in; + last_bytes_out = cur_bytes_out; +} + void get_system_info(struct system_info *si) { size_t ssize; - int mib[2]; + int mib[6]; struct uvmexp_sysctl uvmexp; struct swapent *sep; u_int64_t totalsize, totalinuse; @@ -531,8 +592,10 @@ get_system_info(struct system_info *si) swap_stats[4] = pagetok(uvmexp.poolpages); + get_network_kilobytes(_stats[6], _stats[7]); + memory_stats[6] = -1; - swap_stats[3] = swap_stats[5] = -1; + swap_stats[3] = swap_stats[5] = swap_stats[8] = -1; /* set arrays and strings */ si->cpustates = cpu_states;