--- - branch: netbsd-8 date: Thu Nov 2 21:29:53 UTC 2017 files: - new: 1.4.8.1 old: '1.4' path: src/share/man/man9/kernhist.9 pathrev: src/share/man/man9/kernhist.9@1.4.8.1 type: modified - new: 1.38.8.1 old: '1.38' path: src/sys/arch/acorn26/acorn26/pmap.c pathrev: src/sys/arch/acorn26/acorn26/pmap.c@1.38.8.1 type: modified - new: 1.103.10.1 old: '1.103' path: src/sys/arch/arm/arm32/fault.c pathrev: src/sys/arch/arm/arm32/fault.c@1.103.10.1 type: modified - new: 1.349.2.1 old: '1.349' path: src/sys/arch/arm/arm32/pmap.c pathrev: src/sys/arch/arm/arm32/pmap.c@1.349.2.1 type: modified - new: 1.5.10.2 old: 1.5.10.1 path: src/sys/arch/arm/broadcom/bcm2835_bsc.c pathrev: src/sys/arch/arm/broadcom/bcm2835_bsc.c@1.5.10.2 type: modified - new: 1.19.2.1 old: '1.19' path: src/sys/arch/arm/omap/if_cpsw.c pathrev: src/sys/arch/arm/omap/if_cpsw.c@1.19.2.1 type: modified - new: 1.6.8.1 old: '1.6' path: src/sys/arch/arm/omap/tiotg.c pathrev: src/sys/arch/arm/omap/tiotg.c@1.6.8.1 type: modified - new: 1.2.8.1 old: '1.2' path: src/sys/arch/evbarm/conf/RPI2_INSTALL pathrev: src/sys/arch/evbarm/conf/RPI2_INSTALL@1.2.8.1 type: modified - new: 1.97.8.1 old: '1.97' path: src/sys/dev/ic/sl811hs.c pathrev: src/sys/dev/ic/sl811hs.c@1.97.8.1 type: modified - new: 1.254.8.2 old: 1.254.8.1 path: src/sys/dev/usb/ehci.c pathrev: src/sys/dev/usb/ehci.c@1.254.8.2 type: modified - new: 1.82.6.1 old: '1.82' path: src/sys/dev/usb/if_axe.c pathrev: src/sys/dev/usb/if_axe.c@1.82.6.1 type: modified - new: 1.17.10.1 old: '1.17' path: src/sys/dev/usb/motg.c pathrev: src/sys/dev/usb/motg.c@1.17.10.1 type: modified - new: 1.273.6.1 old: '1.273' path: src/sys/dev/usb/ohci.c pathrev: src/sys/dev/usb/ohci.c@1.273.6.1 type: modified - new: 1.118.8.1 old: '1.118' path: src/sys/dev/usb/ucom.c pathrev: src/sys/dev/usb/ucom.c@1.118.8.1 type: modified - new: 1.275.2.2 old: 1.275.2.1 path: src/sys/dev/usb/uhci.c pathrev: src/sys/dev/usb/uhci.c@1.275.2.2 type: modified - new: 1.136.2.1 old: '1.136' path: src/sys/dev/usb/uhub.c pathrev: src/sys/dev/usb/uhub.c@1.136.2.1 type: modified - new: 1.158.4.1 old: '1.158' path: src/sys/dev/usb/umass.c pathrev: src/sys/dev/usb/umass.c@1.158.4.1 type: modified - new: 1.99.10.1 old: '1.99' path: src/sys/dev/usb/umass_quirks.c pathrev: src/sys/dev/usb/umass_quirks.c@1.99.10.1 type: modified - new: 1.54.8.1 old: '1.54' path: src/sys/dev/usb/umass_scsipi.c pathrev: src/sys/dev/usb/umass_scsipi.c@1.54.8.1 type: modified - new: 1.165.6.2 old: 1.165.6.1 path: src/sys/dev/usb/usb.c pathrev: src/sys/dev/usb/usb.c@1.165.6.2 type: modified - new: 1.69.2.1 old: '1.69' path: src/sys/dev/usb/usb_mem.c pathrev: src/sys/dev/usb/usb_mem.c@1.69.2.1 type: modified - new: 1.220.2.1 old: '1.220' path: src/sys/dev/usb/usb_subr.c pathrev: src/sys/dev/usb/usb_subr.c@1.220.2.1 type: modified - new: 1.173.2.1 old: '1.173' path: src/sys/dev/usb/usbdi.c pathrev: src/sys/dev/usb/usbdi.c@1.173.2.1 type: modified - new: 1.66.2.1 old: '1.66' path: src/sys/dev/usb/usbdi_util.c pathrev: src/sys/dev/usb/usbdi_util.c@1.66.2.1 type: modified - new: 1.2.14.1 old: '1.2' path: src/sys/dev/usb/usbroothub.c pathrev: src/sys/dev/usb/usbroothub.c@1.2.14.1 type: modified - new: 1.72.2.2 old: 1.72.2.1 path: src/sys/dev/usb/xhci.c pathrev: src/sys/dev/usb/xhci.c@1.72.2.2 type: modified - new: 1.33.10.1 old: '1.33' path: src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c pathrev: src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c@1.33.10.1 type: modified - new: 1.14.8.1 old: '1.14' path: src/sys/kern/kern_history.c pathrev: src/sys/kern/kern_history.c@1.14.8.1 type: modified - new: 1.73.10.1 old: '1.73' path: src/sys/kern/kern_xxx.c pathrev: src/sys/kern/kern_xxx.c@1.73.10.1 type: modified - new: 1.273.2.1 old: '1.273' path: src/sys/kern/vfs_bio.c pathrev: src/sys/kern/vfs_bio.c@1.273.2.1 type: modified - new: 1.68.6.3 old: 1.68.6.2 path: src/sys/miscfs/genfs/genfs_io.c pathrev: src/sys/miscfs/genfs/genfs_io.c@1.68.6.3 type: modified - new: 1.18.8.2 old: 1.18.8.1 path: src/sys/sys/kernhist.h pathrev: src/sys/sys/kernhist.h@1.18.8.2 type: modified - new: 1.62.8.1 old: '1.62' path: src/sys/ufs/ffs/ffs_balloc.c pathrev: src/sys/ufs/ffs/ffs_balloc.c@1.62.8.1 type: modified - new: 1.359.4.2 old: 1.359.4.1 path: src/sys/ufs/lfs/lfs_vfsops.c pathrev: src/sys/ufs/lfs/lfs_vfsops.c@1.359.4.2 type: modified - new: 1.19.2.2 old: 1.19.2.1 path: src/sys/ufs/lfs/ulfs_inode.c pathrev: src/sys/ufs/lfs/ulfs_inode.c@1.19.2.2 type: modified - new: 1.48.4.2 old: 1.48.4.1 path: src/sys/ufs/lfs/ulfs_vnops.c pathrev: src/sys/ufs/lfs/ulfs_vnops.c@1.48.4.2 type: modified - new: 1.101.2.1 old: '1.101' path: src/sys/ufs/ufs/ufs_inode.c pathrev: src/sys/ufs/ufs/ufs_inode.c@1.101.2.1 type: modified - new: 1.237.4.1 old: '1.237' path: src/sys/ufs/ufs/ufs_vnops.c pathrev: src/sys/ufs/ufs/ufs_vnops.c@1.237.4.1 type: modified - new: 1.107.32.1 old: '1.107' path: src/sys/uvm/uvm_amap.c pathrev: src/sys/uvm/uvm_amap.c@1.107.32.1 type: modified - new: 1.63.22.1 old: '1.63' path: src/sys/uvm/uvm_anon.c pathrev: src/sys/uvm/uvm_anon.c@1.63.22.1 type: modified - new: 1.125.2.1 old: '1.125' path: src/sys/uvm/uvm_aobj.c pathrev: src/sys/uvm/uvm_aobj.c@1.125.2.1 type: modified - new: 1.90.2.1 old: '1.90' path: src/sys/uvm/uvm_bio.c pathrev: src/sys/uvm/uvm_bio.c@1.90.2.1 type: modified - new: 1.65.8.1 old: '1.65' path: src/sys/uvm/uvm_device.c pathrev: src/sys/uvm/uvm_device.c@1.65.8.1 type: modified - new: 1.199.6.2 old: 1.199.6.1 path: src/sys/uvm/uvm_fault.c pathrev: src/sys/uvm/uvm_fault.c@1.199.6.2 type: modified - new: 1.143.2.1 old: '1.143' path: src/sys/uvm/uvm_km.c pathrev: src/sys/uvm/uvm_km.c@1.143.2.1 type: modified - new: 1.84.6.1 old: '1.84' path: src/sys/uvm/uvm_loan.c pathrev: src/sys/uvm/uvm_loan.c@1.84.6.1 type: modified - new: 1.351.2.2 old: 1.351.2.1 path: src/sys/uvm/uvm_map.c pathrev: src/sys/uvm/uvm_map.c@1.351.2.2 type: modified - new: 1.193.2.1 old: '1.193' path: src/sys/uvm/uvm_page.c pathrev: src/sys/uvm/uvm_page.c@1.193.2.1 type: modified - new: 1.110.22.1 old: '1.110' path: src/sys/uvm/uvm_pager.c pathrev: src/sys/uvm/uvm_pager.c@1.110.22.1 type: modified - new: 1.108.22.1 old: '1.108' path: src/sys/uvm/uvm_pdaemon.c pathrev: src/sys/uvm/uvm_pdaemon.c@1.108.22.1 type: modified - new: 1.174.10.1 old: '1.174' path: src/sys/uvm/uvm_swap.c pathrev: src/sys/uvm/uvm_swap.c@1.174.10.1 type: modified - new: 1.102.10.1 old: '1.102' path: src/sys/uvm/uvm_vnode.c pathrev: src/sys/uvm/uvm_vnode.c@1.102.10.1 type: modified - new: 1.34.2.1 old: '1.34' path: src/sys/uvm/pmap/pmap.c pathrev: src/sys/uvm/pmap/pmap.c@1.34.2.1 type: modified - new: 1.21.2.1 old: '1.21' path: src/sys/uvm/pmap/pmap_tlb.c pathrev: src/sys/uvm/pmap/pmap_tlb.c@1.21.2.1 type: modified - new: 1.216.6.2 old: 1.216.6.1 path: src/usr.bin/vmstat/vmstat.c pathrev: src/usr.bin/vmstat/vmstat.c@1.216.6.2 type: modified id: 20171102T212953Z.aaced0524f6aa93b1f41c690ede143e7ef16383b log: "Pull up following revision(s) (requested by pgoyette in ticket #335):\n\tshare/man/man9/kernhist.9: 1.5-1.8\n\tsys/arch/acorn26/acorn26/pmap.c: 1.39\n\tsys/arch/arm/arm32/fault.c: 1.105 via patch\n\tsys/arch/arm/arm32/pmap.c: 1.350, 1.359\n\tsys/arch/arm/broadcom/bcm2835_bsc.c: 1.7\n\tsys/arch/arm/omap/if_cpsw.c: 1.20\n\tsys/arch/arm/omap/tiotg.c: 1.7\n\tsys/arch/evbarm/conf/RPI2_INSTALL: 1.3\n\tsys/dev/ic/sl811hs.c: 1.98\n\tsys/dev/usb/ehci.c: 1.256\n\tsys/dev/usb/if_axe.c: 1.83\n\tsys/dev/usb/motg.c: 1.18\n\tsys/dev/usb/ohci.c: 1.274\n\tsys/dev/usb/ucom.c: 1.119\n\tsys/dev/usb/uhci.c: 1.277\n\tsys/dev/usb/uhub.c: 1.137\n\tsys/dev/usb/umass.c: 1.160-1.162\n\tsys/dev/usb/umass_quirks.c: 1.100\n\tsys/dev/usb/umass_scsipi.c: 1.55\n\tsys/dev/usb/usb.c: 1.168\n\tsys/dev/usb/usb_mem.c: 1.70\n\tsys/dev/usb/usb_subr.c: 1.221\n\tsys/dev/usb/usbdi.c: 1.175\n\tsys/dev/usb/usbdi_util.c: 1.67-1.70\n\tsys/dev/usb/usbroothub.c: 1.3\n\tsys/dev/usb/xhci.c: 1.75\n\tsys/external/bsd/drm2/dist/drm/i915/i915_gem.c: 1.34\n\tsys/kern/kern_history.c: 1.15\n\tsys/kern/kern_xxx.c: 1.74\n\tsys/kern/vfs_bio.c: 1.275-1.276\n\tsys/miscfs/genfs/genfs_io.c: 1.71\n\tsys/sys/kernhist.h: 1.21\n\tsys/ufs/ffs/ffs_balloc.c: 1.63\n\tsys/ufs/lfs/lfs_vfsops.c: 1.361\n\tsys/ufs/lfs/ulfs_inode.c: 1.21\n\tsys/ufs/lfs/ulfs_vnops.c: 1.52\n\tsys/ufs/ufs/ufs_inode.c: 1.102\n\tsys/ufs/ufs/ufs_vnops.c: 1.239\n\tsys/uvm/pmap/pmap.c: 1.37-1.39\n\tsys/uvm/pmap/pmap_tlb.c: 1.22\n\tsys/uvm/uvm_amap.c: 1.108\n\tsys/uvm/uvm_anon.c: 1.64\n\tsys/uvm/uvm_aobj.c: 1.126\n\tsys/uvm/uvm_bio.c: 1.91\n\tsys/uvm/uvm_device.c: 1.66\n\tsys/uvm/uvm_fault.c: 1.201\n\tsys/uvm/uvm_km.c: 1.144\n\tsys/uvm/uvm_loan.c: 1.85\n\tsys/uvm/uvm_map.c: 1.353\n\tsys/uvm/uvm_page.c: 1.194\n\tsys/uvm/uvm_pager.c: 1.111\n\tsys/uvm/uvm_pdaemon.c: 1.109\n\tsys/uvm/uvm_swap.c: 1.175\n\tsys/uvm/uvm_vnode.c: 1.103\n\tusr.bin/vmstat/vmstat.c: 1.219\nReorder to test for null before null deref in debug code\n--\nReorder to test for null before null deref in debug code\n--\nKNF\n--\nNo need for '\\n' in UVMHIST_LOG\n--\nnormalise a BIOHIST log message\n--\nUpdate the kernhist(9) kernel history code to address issues identified\nin PR kern/52639, as well as some general cleaning-up...\n(As proposed on tech-kern@ with additional changes and enhancements.)\nDetails of changes:\n* All history arguments are now stored as uintmax_t values[1], both in\n the kernel and in the structures used for exporting the history data\n to userland via sysctl(9). This avoids problems on some architectures\n where passing a 64-bit (or larger) value to printf(3) can cause it to\n process the value as multiple arguments. (This can be particularly\n \ problematic when printf()'s format string is not a literal, since in\n that case the compiler cannot know how large each argument should be.)\n* Update the data structures used for exporting kernel history data to\n include a version number as well as the length of history arguments.\n* All [2] existing users of kernhist(9) have had their format strings\n updated. Each format specifier now includes an explicit length\n modifier 'j' to refer to numeric values of the size of uintmax_t.\n* All [2] existing users of kernhist(9) have had their format strings\n updated to replace uses of \"%p\" with \"%#jx\", and the pointer\n \ arguments are now cast to (uintptr_t) before being subsequently cast\n to (uintmax_t). This is needed to avoid compiler warnings about\n casting \"pointer to integer of a different size.\"\n* All [2] existing users of kernhist(9) have had instances of \"%s\" or\n \"%c\" format strings replaced with numeric formats; several instances\n of mis-match between format string and argument list have been fixed.\n* vmstat(1) has been modified to handle the new size of arguments in the\n history data as exported by sysctl(9).\n* vmstat(1) now provides a warning message if the history requested with\n the -u option does not exist (previously, this condition was silently\n ignored, with only a single blank line being printed).\n* vmstat(1) now checks the version and argument length included in the\n data exported via sysctl(9) and exits if they do not match the values\n \ with which vmstat was built.\n* The kernhist(9) man-page has been updated to note the additional\n requirements imposed on the format strings, along with several other\n minor changes and enhancements.\n[1] It would have been possible to use an explicit length (for example,\n uint64_t) for the history arguments. \ But that would require another\n \"rototill\" of all the users in the future when we add support for an\n architecture that supports a larger size. Also, the printf(3)\nformat\n specifiers for explicitly-sized values, such as \"%\"PRIu64, are much\n more verbose (and less aesthetically appealing, IMHO) than simply\n \ using \"%ju\".\n[2] I've tried very hard to find \"all [the] existing users of\nkernhist(9)\"\n but it is possible that I've missed some of them. I would be glad\nto\n update any stragglers that anyone identifies.\n--\nFor some reason this single kernel seems to have outgrown its declared\nsize as a result of the kernhist(9) changes. Bump the size.\nXXX The amount of increase may be excessive - anyone with more detailed\nXXX knowledge please feel free to further adjust the value\nappropriately.\n--\nMisssed one cast of pointer --> uintptr_t in previous kernhist(9) commit\n--\nAnd yet another one. :(\n--\nUse correct mark-up for NetBSD version.\n--\nMore improvements in grammar and readability.\n--\nRemove a stray '\"' (obvious typo) and add a couple of casts that are\nprobably needed.\n--\nAnd replace an instance of \"%p\" conversion with \"%#jx\"\n--\nWhitespace fix. Give Bl tag table a width. Fix Xr.\n" module: src subject: 'CVS commit: [netbsd-8] src' unixtime: '1509658193' user: snj