The NetBSD Project

CVS log for src/sys/uvm/pmap/pmap_tlb.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / uvm / pmap

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.55 / (download) - annotate - [select for diffs], Mon Nov 7 07:28:04 2022 UTC (2 months, 3 weeks ago) by skrll
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.54: +5 -5 lines
Diff to previous 1.54 (colored)

Fix UVMHIST build

Revision 1.54 / (download) - annotate - [select for diffs], Wed Oct 26 07:35:20 2022 UTC (3 months ago) by skrll
Branch: MAIN
Changes since 1.53: +34 -2 lines
Diff to previous 1.53 (colored)

MI PMAP hardware page table walker support.

This is based on code given to me by Matt Thomas a long time ago with
many updates and bugs fixes from me.

Revision 1.53 / (download) - annotate - [select for diffs], Thu Oct 20 06:24:51 2022 UTC (3 months, 1 week ago) by skrll
Branch: MAIN
Changes since 1.52: +3 -2 lines
Diff to previous 1.52 (colored)

Add a KASSERT to check that tlb_asid_t is a large enough type.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Mar 4 08:11:48 2022 UTC (10 months, 3 weeks ago) by skrll
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.51: +2 -6 lines
Diff to previous 1.51 (colored)

Rmmove an incorrect KASSERT.

Revision 1.51 / (download) - annotate - [select for diffs], Sun Jan 2 16:03:30 2022 UTC (12 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

fix KASSERTMSG issue

Revision 1.50 / (download) - annotate - [select for diffs], Wed Dec 29 12:53:38 2021 UTC (13 months ago) by skrll
Branch: MAIN
Changes since 1.49: +2 -3 lines
Diff to previous 1.49 (colored)

Remove duplicate KASSERT

Revision 1.49 / (download) - annotate - [select for diffs], Wed Oct 27 06:54:15 2021 UTC (15 months ago) by simonb
Branch: MAIN
Changes since 1.48: +7 -7 lines
Diff to previous 1.48 (colored)

TAB police.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Oct 27 05:33:59 2021 UTC (15 months ago) by simonb
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

When adjusting the max ASID count, check if ti->ti_asid_max == 0 as
well.  This defaults to 0 for the non-PMAP_TLB_NUM_PIDS case, so would
skip the updated test.

Fix for port-pmax/56466 (which affects all MIPS).

ok srkll@

Revision 1.47 / (download) - annotate - [select for diffs], Fri Oct 8 07:17:32 2021 UTC (15 months, 3 weeks ago) by skrll
Branch: MAIN
Changes since 1.46: +5 -4 lines
Diff to previous 1.46 (colored)

Fix a logic botch to actually apply the ASID limit returned by
pmap_md_tlb_asid_max.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Oct 2 14:28:05 2021 UTC (15 months, 4 weeks ago) by skrll
Branch: MAIN
Changes since 1.45: +4 -4 lines
Diff to previous 1.45 (colored)

Pass the pmap in tlb_set_asid for the benefit of aarch64.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Sep 12 09:05:01 2021 UTC (16 months, 2 weeks ago) by skrll
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

comment whitespace

Revision 1.41.6.1 / (download) - annotate - [select for diffs], Thu May 13 00:47:33 2021 UTC (20 months, 2 weeks ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.41: +2 -4 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

Sync with HEAD.

Revision 1.44 / (download) - annotate - [select for diffs], Tue May 4 09:05:34 2021 UTC (20 months, 3 weeks ago) by skrll
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.43: +2 -4 lines
Diff to previous 1.43 (colored)

Always expose pmap_tlb_update_addr now that all current PMAP_HWPAGEWALKERs
(arm) users provide the required functions.

Revision 1.43 / (download) - annotate - [select for diffs], Sat May 1 14:00:57 2021 UTC (20 months, 4 weeks ago) by skrll
Branch: MAIN
Changes since 1.42: +4 -2 lines
Diff to previous 1.42 (colored)

Revert previous

Revision 1.42 / (download) - annotate - [select for diffs], Sat May 1 06:56:41 2021 UTC (21 months ago) by skrll
Branch: MAIN
Changes since 1.41: +2 -4 lines
Diff to previous 1.41 (colored)

Expose pmap_tlb_update_addr to the PMAP_HWPAGEWALKER platforms

Revision 1.41 / (download) - annotate - [select for diffs], Thu Sep 24 06:45:58 2020 UTC (2 years, 4 months ago) by skrll
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs
Branch point for: thorpej-i2c-spi-conf
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored)

Whitespace

Revision 1.40 / (download) - annotate - [select for diffs], Sat Aug 22 14:51:44 2020 UTC (2 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

Whitespace - line continutation alignment

Revision 1.39 / (download) - annotate - [select for diffs], Wed Aug 19 06:11:49 2020 UTC (2 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.38: +7 -7 lines
Diff to previous 1.38 (colored)

KNF.  Add some whitespace to the TLBINV_MAP macro and tlb_invalidate_op
enum.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Aug 19 06:08:27 2020 UTC (2 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.37: +3 -4 lines
Diff to previous 1.37 (colored)

Unwrap short line KASSERT

Revision 1.37 / (download) - annotate - [select for diffs], Wed Aug 19 06:07:03 2020 UTC (2 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

Fix inverted logic test in pmap_tlb_shootdown_process for if the victim
is onproc.

Revision 1.36 / (download) - annotate - [select for diffs], Tue Aug 11 06:54:14 2020 UTC (2 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored)

s/pmaphist/maphist/ for now

Revision 1.35 / (download) - annotate - [select for diffs], Tue Aug 11 06:09:44 2020 UTC (2 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.34: +14 -5 lines
Diff to previous 1.34 (colored)

More UVMHIST_LOG.  Remove some commented output printfs.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Aug 9 06:26:49 2020 UTC (2 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.33: +5 -6 lines
Diff to previous 1.33 (colored)

Don't kcpuset_clone every pmap_tlb_shootdown_bystanders.  Instead allocate
a kcpuset_t per cpu_info and use that.

Revision 1.28.4.3 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:46 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.28.4.2: +16 -15 lines
Diff to previous 1.28.4.2 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

Sync with HEAD

Revision 1.30.6.1 / (download) - annotate - [select for diffs], Mon Apr 20 11:29:14 2020 UTC (2 years, 9 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.30: +26 -24 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Sync with HEAD

Revision 1.33 / (download) - annotate - [select for diffs], Tue Apr 14 05:43:57 2020 UTC (2 years, 9 months ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

Fix UVMHIST bulid

Revision 1.28.4.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:22 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.28.4.1: +8 -7 lines
Diff to previous 1.28.4.1 (colored) to branchpoint 1.28 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.32 / (download) - annotate - [select for diffs], Sun Apr 12 15:36:18 2020 UTC (2 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.31: +19 -18 lines
Diff to previous 1.31 (colored)

Use UVMHIST_CALLARGS

Revision 1.31 / (download) - annotate - [select for diffs], Thu Apr 9 08:55:45 2020 UTC (2 years, 9 months ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20200411
Changes since 1.30: +10 -9 lines
Diff to previous 1.30 (colored)

Make a comment less MIPS specific

Revision 1.28.4.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:09:05 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.28: +8 -7 lines
Diff to previous 1.28 (colored)

Merge changes from current as of 20200406

Revision 1.30 / (download) - annotate - [select for diffs], Wed Dec 18 11:27:56 2019 UTC (3 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: bouyer-xenpvh
Changes since 1.29: +7 -6 lines
Diff to previous 1.29 (colored)

KNF

Revision 1.29 / (download) - annotate - [select for diffs], Tue Dec 17 13:25:50 2019 UTC (3 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Fix a UVMHIST_LOG format

Revision 1.28 / (download) - annotate - [select for diffs], Sun Feb 25 21:43:03 2018 UTC (4 years, 11 months ago) by jdolecek
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Changes since 1.27: +4 -3 lines
Diff to previous 1.27 (colored)

fix the DIAGNOSTIC function pmap_tlb_asid_count() to not expect
that TLBINFO_ASID_INUSE_P() returns just 0 or 1; the underlying
__BITMAP_ISSET() actually returns the matching bit nowadays, which
caused miscounting

fixes PR kern/53054 by Sevan Janiyan

Revision 1.27 / (download) - annotate - [select for diffs], Sun Feb 25 16:44:31 2018 UTC (4 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.26: +7 -3 lines
Diff to previous 1.26 (colored)

adjust KASSERT() triggered in PR port-cobalt/53054 to provide more info

Revision 1.26 / (download) - annotate - [select for diffs], Wed Feb 21 21:53:54 2018 UTC (4 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.25: +26 -23 lines
Diff to previous 1.25 (colored)

KERNEL_PID is > 0 on powerpc/ibm4xx, need to mask all bits <0,
KERNEL_PID> to avoid triggering KASSERT() checking allocated asid
is bigger than KERNEL_PID; adjust also TLBINFO_ASID_INITIAL_FREE()
accordingly

discussed with Nick

Revision 1.25 / (download) - annotate - [select for diffs], Mon Feb 19 22:01:15 2018 UTC (4 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.24: +28 -36 lines
Diff to previous 1.24 (colored)

convert to use actual __BITMAP_*() macros from <sys/bitops.h>, and make
it possible to override the ASID bitmap length; default to 256 ASIDs as before

XXX NFCI; compile tested only on evbpcc and evbmips, unfortunately didn't
find any combination of port using the MI pmap_tlb.c and working in QEMU

Revision 1.24 / (download) - annotate - [select for diffs], Mon Feb 19 21:40:45 2018 UTC (4 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.23: +9 -6 lines
Diff to previous 1.23 (colored)

a bit of DRY - add macro for initial free ASID count

Revision 1.23 / (download) - annotate - [select for diffs], Mon Feb 19 21:20:33 2018 UTC (4 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

make it possible to not use the icache evcnts

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:23 2017 UTC (5 years, 1 month ago) by jdolecek
Branch: tls-maxphys
Changes since 1.22.2.1: +1082 -0 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

update from HEAD

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Thu Nov 2 21:29:53 2017 UTC (5 years, 2 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.21: +21 -18 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Pull up following revision(s) (requested by pgoyette in ticket #335):
	share/man/man9/kernhist.9: 1.5-1.8
	sys/arch/acorn26/acorn26/pmap.c: 1.39
	sys/arch/arm/arm32/fault.c: 1.105 via patch
	sys/arch/arm/arm32/pmap.c: 1.350, 1.359
	sys/arch/arm/broadcom/bcm2835_bsc.c: 1.7
	sys/arch/arm/omap/if_cpsw.c: 1.20
	sys/arch/arm/omap/tiotg.c: 1.7
	sys/arch/evbarm/conf/RPI2_INSTALL: 1.3
	sys/dev/ic/sl811hs.c: 1.98
	sys/dev/usb/ehci.c: 1.256
	sys/dev/usb/if_axe.c: 1.83
	sys/dev/usb/motg.c: 1.18
	sys/dev/usb/ohci.c: 1.274
	sys/dev/usb/ucom.c: 1.119
	sys/dev/usb/uhci.c: 1.277
	sys/dev/usb/uhub.c: 1.137
	sys/dev/usb/umass.c: 1.160-1.162
	sys/dev/usb/umass_quirks.c: 1.100
	sys/dev/usb/umass_scsipi.c: 1.55
	sys/dev/usb/usb.c: 1.168
	sys/dev/usb/usb_mem.c: 1.70
	sys/dev/usb/usb_subr.c: 1.221
	sys/dev/usb/usbdi.c: 1.175
	sys/dev/usb/usbdi_util.c: 1.67-1.70
	sys/dev/usb/usbroothub.c: 1.3
	sys/dev/usb/xhci.c: 1.75
	sys/external/bsd/drm2/dist/drm/i915/i915_gem.c: 1.34
	sys/kern/kern_history.c: 1.15
	sys/kern/kern_xxx.c: 1.74
	sys/kern/vfs_bio.c: 1.275-1.276
	sys/miscfs/genfs/genfs_io.c: 1.71
	sys/sys/kernhist.h: 1.21
	sys/ufs/ffs/ffs_balloc.c: 1.63
	sys/ufs/lfs/lfs_vfsops.c: 1.361
	sys/ufs/lfs/ulfs_inode.c: 1.21
	sys/ufs/lfs/ulfs_vnops.c: 1.52
	sys/ufs/ufs/ufs_inode.c: 1.102
	sys/ufs/ufs/ufs_vnops.c: 1.239
	sys/uvm/pmap/pmap.c: 1.37-1.39
	sys/uvm/pmap/pmap_tlb.c: 1.22
	sys/uvm/uvm_amap.c: 1.108
	sys/uvm/uvm_anon.c: 1.64
	sys/uvm/uvm_aobj.c: 1.126
	sys/uvm/uvm_bio.c: 1.91
	sys/uvm/uvm_device.c: 1.66
	sys/uvm/uvm_fault.c: 1.201
	sys/uvm/uvm_km.c: 1.144
	sys/uvm/uvm_loan.c: 1.85
	sys/uvm/uvm_map.c: 1.353
	sys/uvm/uvm_page.c: 1.194
	sys/uvm/uvm_pager.c: 1.111
	sys/uvm/uvm_pdaemon.c: 1.109
	sys/uvm/uvm_swap.c: 1.175
	sys/uvm/uvm_vnode.c: 1.103
	usr.bin/vmstat/vmstat.c: 1.219
Reorder to test for null before null deref in debug code
--
Reorder to test for null before null deref in debug code
--
KNF
--
No need for '\n' in UVMHIST_LOG
--
normalise a BIOHIST log message
--
Update the kernhist(9) kernel history code to address issues identified
in PR kern/52639, as well as some general cleaning-up...
(As proposed on tech-kern@ with additional changes and enhancements.)
Details of changes:
* All history arguments are now stored as uintmax_t values[1], both in
   the kernel and in the structures used for exporting the history data
   to userland via sysctl(9).  This avoids problems on some architectures
   where passing a 64-bit (or larger) value to printf(3) can cause it to
   process the value as multiple arguments.  (This can be particularly
   problematic when printf()'s format string is not a literal, since in
   that case the compiler cannot know how large each argument should be.)
* Update the data structures used for exporting kernel history data to
   include a version number as well as the length of history arguments.
* All [2] existing users of kernhist(9) have had their format strings
   updated.  Each format specifier now includes an explicit length
   modifier 'j' to refer to numeric values of the size of uintmax_t.
* All [2] existing users of kernhist(9) have had their format strings
   updated to replace uses of "%p" with "%#jx", and the pointer
   arguments are now cast to (uintptr_t) before being subsequently cast
   to (uintmax_t).  This is needed to avoid compiler warnings about
   casting "pointer to integer of a different size."
* All [2] existing users of kernhist(9) have had instances of "%s" or
   "%c" format strings replaced with numeric formats; several instances
   of mis-match between format string and argument list have been fixed.
* vmstat(1) has been modified to handle the new size of arguments in the
   history data as exported by sysctl(9).
* vmstat(1) now provides a warning message if the history requested with
   the -u option does not exist (previously, this condition was silently
   ignored, with only a single blank line being printed).
* vmstat(1) now checks the version and argument length included in the
   data exported via sysctl(9) and exits if they do not match the values
   with which vmstat was built.
* The kernhist(9) man-page has been updated to note the additional
   requirements imposed on the format strings, along with several other
   minor changes and enhancements.
[1] It would have been possible to use an explicit length (for example,
     uint64_t) for the history arguments.  But that would require another
     "rototill" of all the users in the future when we add support for an
     architecture that supports a larger size.  Also, the printf(3)
format
     specifiers for explicitly-sized values, such as "%"PRIu64, are much
     more verbose (and less aesthetically appealing, IMHO) than simply
     using "%ju".
[2] I've tried very hard to find "all [the] existing users of
kernhist(9)"
     but it is possible that I've missed some of them.  I would be glad
to
     update any stragglers that anyone identifies.
--
For some reason this single kernel seems to have outgrown its declared
size as a result of the kernhist(9) changes.  Bump the size.
XXX The amount of increase may be excessive - anyone with more detailed
XXX knowledge please feel free to further adjust the value
appropriately.
--
Misssed one cast of pointer --> uintptr_t in previous kernhist(9) commit
--
And yet another one.  :(
--
Use correct mark-up for NetBSD version.
--
More improvements in grammar and readability.
--
Remove a stray '"' (obvious typo) and add a couple of casts that are
probably needed.
--
And replace an instance of "%p" conversion with "%#jx"
--
Whitespace fix. Give Bl tag table a width. Fix Xr.

Revision 1.22.2.1, Sat Oct 28 00:37:13 2017 UTC (5 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.22: +0 -1082 lines
FILE REMOVED

file pmap_tlb.c was added on branch tls-maxphys on 2017-12-03 11:39:23 +0000

Revision 1.22 / (download) - annotate - [select for diffs], Sat Oct 28 00:37:13 2017 UTC (5 years, 3 months ago) by pgoyette
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Branch point for: tls-maxphys
Changes since 1.21: +21 -18 lines
Diff to previous 1.21 (colored)

Update the kernhist(9) kernel history code to address issues identified
in PR kern/52639, as well as some general cleaning-up...

(As proposed on tech-kern@ with additional changes and enhancements.)

Details of changes:

* All history arguments are now stored as uintmax_t values[1], both in
  the kernel and in the structures used for exporting the history data
  to userland via sysctl(9).  This avoids problems on some architectures
  where passing a 64-bit (or larger) value to printf(3) can cause it to
  process the value as multiple arguments.  (This can be particularly
  problematic when printf()'s format string is not a literal, since in
  that case the compiler cannot know how large each argument should be.)

* Update the data structures used for exporting kernel history data to
  include a version number as well as the length of history arguments.

* All [2] existing users of kernhist(9) have had their format strings
  updated.  Each format specifier now includes an explicit length
  modifier 'j' to refer to numeric values of the size of uintmax_t.

* All [2] existing users of kernhist(9) have had their format strings
  updated to replace uses of "%p" with "%#jx", and the pointer
  arguments are now cast to (uintptr_t) before being subsequently cast
  to (uintmax_t).  This is needed to avoid compiler warnings about
  casting "pointer to integer of a different size."

* All [2] existing users of kernhist(9) have had instances of "%s" or
  "%c" format strings replaced with numeric formats; several instances
  of mis-match between format string and argument list have been fixed.

* vmstat(1) has been modified to handle the new size of arguments in the
  history data as exported by sysctl(9).

* vmstat(1) now provides a warning message if the history requested with
  the -u option does not exist (previously, this condition was silently
  ignored, with only a single blank line being printed).

* vmstat(1) now checks the version and argument length included in the
  data exported via sysctl(9) and exits if they do not match the values
  with which vmstat was built.

* The kernhist(9) man-page has been updated to note the additional
  requirements imposed on the format strings, along with several other
  minor changes and enhancements.

[1] It would have been possible to use an explicit length (for example,
    uint64_t) for the history arguments.  But that would require another
    "rototill" of all the users in the future when we add support for an
    architecture that supports a larger size.  Also, the printf(3) format
    specifiers for explicitly-sized values, such as "%"PRIu64, are much
    more verbose (and less aesthetically appealing, IMHO) than simply
    using "%ju".

[2] I've tried very hard to find "all [the] existing users of kernhist(9)"
    but it is possible that I've missed some of them.  I would be glad to
    update any stragglers that anyone identifies.

Revision 1.10.2.5 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:18 2017 UTC (5 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.10.2.4: +5 -5 lines
Diff to previous 1.10.2.4 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

Sync with HEAD

Revision 1.21 / (download) - annotate - [select for diffs], Fri May 26 06:40:47 2017 UTC (5 years, 8 months ago) by skrll
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base
Branch point for: netbsd-8
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Remove incorrect __diagused

Revision 1.20 / (download) - annotate - [select for diffs], Fri May 26 06:38:56 2017 UTC (5 years, 8 months ago) by skrll
Branch: MAIN
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

Use the define name PMAP_HWPAGEWALKER and not PMAP_TLB_HWPAGEWALKER

Revision 1.10.2.4 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:30 2016 UTC (6 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.10.2.3: +3 -3 lines
Diff to previous 1.10.2.3 (colored) to branchpoint 1.10 (colored)

Sync with HEAD

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:23 2016 UTC (6 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.17.2.1: +3 -3 lines
Diff to previous 1.17.2.1 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

Sync with HEAD

Revision 1.19 / (download) - annotate - [select for diffs], Sun Oct 9 14:51:50 2016 UTC (6 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

PR/51540: Henning Petersen: replace , with ;

Revision 1.10.2.3 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:12 2016 UTC (6 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.10.2.2: +126 -78 lines
Diff to previous 1.10.2.2 (colored) to branchpoint 1.10 (colored)

Sync with HEAD

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Tue Jul 26 03:24:24 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.17: +11 -7 lines
Diff to previous 1.17 (colored)

Sync with HEAD

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jul 23 20:06:25 2016 UTC (6 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, localcount-20160914
Changes since 1.17: +11 -7 lines
Diff to previous 1.17 (colored)

Lock the tlbinfo if it wasn't when doing a pmap_tlb_pai_check

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jul 14 15:50:31 2016 UTC (6 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-localcount-base
Branch point for: pgoyette-localcount
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Use KERNEL_PID instead of 0

Revision 1.16 / (download) - annotate - [select for diffs], Thu Jul 14 15:49:43 2016 UTC (6 years, 6 months ago) by skrll
Branch: MAIN
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

Fix some comments.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jul 14 04:51:47 2016 UTC (6 years, 6 months ago) by skrll
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Trailing whitespace

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jul 12 15:30:46 2016 UTC (6 years, 6 months ago) by skrll
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Fix typo for build check

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jul 11 16:06:09 2016 UTC (6 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.12: +118 -74 lines
Diff to previous 1.12 (colored)

Changes so that MIPS can use the common pmap.
Change/augment the virtual cache alias callbacks.

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:18 2015 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.10.2.1: +7 -6 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored)

Sync with HEAD

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jun 11 05:28:42 2015 UTC (7 years, 7 months ago) by matt
Branch: MAIN
CVS Tags: nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.11: +6 -5 lines
Diff to previous 1.11 (colored)

Don't call kcpuset_intersecting_p and then kcpuset_ffs_intersecting since
that the last will tell use what we need to know.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:31 2015 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Sync with HEAD

Revision 1.11 / (download) - annotate - [select for diffs], Sat Apr 18 16:58:31 2015 UTC (7 years, 9 months ago) by joerg
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

pmap_tlb_intersecting_active_p is not used in some combinations of
platform options as seen by recent ARM changes.

Revision 1.8.4.1 / (download) - annotate - [select for diffs], Sun Nov 9 16:05:25 2014 UTC (8 years, 2 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Pull up following revision(s) (requested by skrll in ticket #188):
	sys/arch/arm/include/arm32/pmap.h: revision 1.136
	sys/arch/arm/include/armreg.h: revision 1.100
	sys/arch/arm/cortex/gic.c: revision 1.11
	sys/arch/arm/arm32/db_interface.c: revision 1.54
	sys/arch/arm/include/armreg.h: revision 1.101
	sys/arch/arm/cortex/gic.c: revision 1.12
	sys/arch/arm/arm32/arm32_machdep.c: revision 1.107
	sys/arch/arm/arm/cpufunc_asm_armv7.S: revision 1.19
	sys/arch/arm/cortex/a9_mpsubr.S: revision 1.20
	sys/arch/evbarm/conf/BPI: revision 1.5
	sys/arch/arm/cortex/a9_mpsubr.S: revision 1.21
	sys/arch/arm/arm32/pmap.c: revision 1.306
	sys/arch/arm/arm32/db_machdep.c: revision 1.22
	sys/arch/arm/arm32/arm32_tlb.c: revision 1.3
	sys/arch/arm/arm/undefined.c: revision 1.55
	sys/arch/arm/cortex/a9_mpsubr.S: revision 1.22
	sys/arch/arm/arm32/pmap.c: revision 1.307
	sys/arch/arm/arm32/arm32_tlb.c: revision 1.4
	sys/arch/arm/cortex/a9_mpsubr.S: revision 1.23
	sys/arch/arm/arm32/arm32_tlb.c: revision 1.5
	sys/arch/evbarm/conf/BPI: revision 1.8
	sys/arch/arm/cortex/a9_mpsubr.S: revision 1.24
	sys/arch/arm/arm32/arm32_tlb.c: revision 1.6
	sys/arch/arm/arm32/arm32_tlb.c: revision 1.7
	sys/arch/evbarm/conf/CUBIETRUCK: revision 1.5
	sys/arch/arm/pic/pic.c: revision 1.23
	sys/arch/arm/pic/pic.c: revision 1.24
	sys/arch/arm/pic/picvar.h: revision 1.11
	sys/arch/arm/arm/cpufunc_asm_armv7.S: revision 1.20
	sys/arch/arm/mainbus/cpu_mainbus.c: revision 1.16
	sys/arch/arm/arm32/pmap.c: revision 1.298
	sys/arch/arm/arm/cpufunc_asm_arm11.S: revision 1.17
	sys/arch/arm/arm/cpufunc_asm_pj4b.S: revision 1.5
	sys/arch/arm/arm32/pmap.c: revision 1.310
	sys/arch/arm/arm32/pmap.c: revision 1.311
	sys/arch/arm/arm32/arm32_kvminit.c: revision 1.32
	sys/arch/arm/cortex/a9_mpsubr.S: revision 1.19
	sys/arch/arm/arm32/arm32_boot.c: revision 1.10
	sys/arch/arm/arm/ast.c: revision 1.25
	sys/arch/arm/include/armreg.h: revision 1.98
	sys/uvm/pmap/pmap_tlb.c: revision 1.10
	sys/arch/arm/arm32/arm32_boot.c: revision 1.8
	sys/arch/arm/arm32/arm32_boot.c: revision 1.9
	sys/arch/arm/arm/arm_machdep.c: revision 1.43
Various ARM MP fixes.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Oct 29 10:53:41 2014 UTC (8 years, 3 months ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

s/0/KERNEL_PID/ for correctness

Revision 1.9 / (download) - annotate - [select for diffs], Sat Oct 18 09:54:19 2014 UTC (8 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Minor comment update.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:19 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.1.2.2: +233 -94 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Sun May 18 17:46:22 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.1.4.1: +145 -57 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head

Revision 1.8 / (download) - annotate - [select for diffs], Thu Apr 3 14:46:25 2014 UTC (8 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Change cpu_tlb_info definition based on PMAP_TLB_MAX instead of MULTIPROCESSOR

Revision 1.7 / (download) - annotate - [select for diffs], Thu Apr 3 14:23:38 2014 UTC (8 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Compare ASIDs, not pmaps.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Apr 3 13:54:59 2014 UTC (8 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Make this compile on booke again.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Mar 30 15:26:15 2014 UTC (8 years, 10 months ago) by matt
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Changes since 1.4: +145 -57 lines
Diff to previous 1.4 (colored)

Allow this to handle H/W tlbs.  Some ARM allow for a cheap way to flush all
entries using an ASID from the TLB.  Add support for taking advantage of it.
Most ARMs don't have an easy way to find out what's in the TLB so make
record_asids can just say all ASIDs are in use.  Fix some off by 1 errors.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Mar 18 18:20:44 2014 UTC (8 years, 10 months ago) by riastradh
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Merge riastradh-drm2 to HEAD.

Revision 1.1.4.1 / (download) - annotate - [select for diffs], Wed Aug 28 23:59:38 2013 UTC (9 years, 5 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.1: +96 -45 lines
Diff to previous 1.1 (colored)

sync with head

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Tue Jul 23 21:07:38 2013 UTC (9 years, 6 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.2: +88 -39 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

sync with HEAD

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jul 17 23:15:20 2013 UTC (9 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1
Changes since 1.2: +88 -39 lines
Diff to previous 1.2 (colored)

Make this kcpuset_t instead of the private __cpuset_t
Add improvements for single TLB implementation (PPC, ARM).

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jul 2 09:35:48 2013 UTC (9 years, 7 months ago) by matt
Branch: MAIN
CVS Tags: riastradh-drm2-base
Branch point for: riastradh-drm2
Changes since 1.1: +11 -9 lines
Diff to previous 1.1 (colored)

Split tlb related stuff into pmap_tlb.h so that can be used for ASID mgmt
for non-soft TLB pmaps.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:23:03 2012 UTC (10 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.1.2.1: +891 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

sync with head

Revision 1.1.2.1, Wed Oct 3 00:51:47 2012 UTC (10 years, 3 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.1: +0 -891 lines
FILE REMOVED

file pmap_tlb.c was added on branch yamt-pagecache on 2012-10-30 17:23:03 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 3 00:51:47 2012 UTC (10 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, khorben-n900, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, rmind-smpnet

move from common/pmap/tlb -> uvm/pmap

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>