matt
fd2366536d
-fno-common broke kernhist since it used commons.
...
Add a KERNHIST_DEFINE which is define the kernel history.
Change UVM to deal with the new usage.
2012-07-30 23:56:48 +00:00
mrg
8169e46991
move and rename the uvm history code out of uvm_stat to "kernhist".
...
rename "UVMHIST" option to enable the uvm histories.
TODO:
- make UVMHIST properly depend upon KERNHIST
- enable dynamic registration of histories. this is mostly just
allocating something in a bitmap, and is only for viewing multiple
histories in a merged form.
tested on amd64 and sparc64.
2011-05-17 04:18:05 +00:00
rmind
c22a36981f
Replace "malloc" in comments, remove unnecessary header inclusions.
2011-04-23 18:14:12 +00:00
chuck
3ba477b154
udpate license clauses on my code to match the new-style BSD licenses.
...
based on diff that rmind@ sent me.
no functional change with this commit.
2011-02-02 15:13:33 +00:00
chs
4c14d1923f
switch the UVMHIST counters from mutexes to atomic ops
...
to avoid a bad interaction with DIAGNOSTIC.
2010-07-07 01:08:51 +00:00
uebayasi
2903e6d834
__inline -> inline
2010-02-06 12:10:59 +00:00
skrll
07a88e53a6
Fix printing of tv_sec,tv_usec in UVMHIST.
2009-02-01 14:25:11 +00:00
skrll
3ceaf8f8e4
Make "show uvmhist" available to all arches (not just sparc*) in ddb.
2008-08-08 17:09:28 +00:00
chs
a5e92dac93
if UVMHIST is defined, include headers necessary for its use.
2008-05-25 16:02:08 +00:00
ad
185d25c158
Minor corrections to comments.
2008-02-27 14:23:33 +00:00
reinoud
6383f534f7
Remove extra '(' that prevented kernel with UVMHIST to be compiled
2008-01-22 21:36:23 +00:00
ad
4a780c9ae2
Merge vmlocking2 to head.
2008-01-02 11:48:20 +00:00
perry
fbae48b901
Change "inline" back to "__inline" in .h files -- C99 is still too
...
new, and some apps compile things in C89 mode. C89 keywords stay.
As per core@.
2006-02-16 20:17:12 +00:00
perry
0f0296d88a
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
2005-12-24 20:45:08 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
drochner
d481be4d04
prepend an underscore to local variables in macros, to avoid shadowing
...
user defined ones
2005-06-01 18:03:50 +00:00
yamt
90f65b5587
UVMHIST_LOG: avoid division.
2004-11-23 05:08:33 +00:00
yamt
040648dfd0
constify.
2004-11-23 04:57:17 +00:00
yamt
f25d78c712
introduce UVMHIST_LOANHIST and sprinkle UVMHIST_LOGs.
2004-11-23 04:51:56 +00:00
petrov
5f4709f782
Replace uvm counters with evcnt, initialize them through __link_set (from Matt Thomas),
...
disable counters by default and add configuration option UVMMAP_COUNTERS.
2004-05-01 19:40:39 +00:00
enami
4b8bc2b80f
Make strlen calls to be folded to constant at compile time.
2004-04-29 23:13:35 +00:00
simonb
04680727b1
s/this this/this/.
2004-04-23 02:48:12 +00:00
junyoung
325f5482a8
Nuke __P().
2004-03-24 07:55:01 +00:00
dbj
5b4c9f2016
rearrange struct uvm_history to put the struct simplelock at the end.
...
This avoids problems with the kernel grovelling vmstat -u/-U when
using LOCKDEBUG, which changes the size of struct simplelock.
Replaced the original location of the simplelock with "int unused"
so that binary compatibility will be retained with old vmstat.
2004-01-24 21:29:03 +00:00
tsutsui
004ae00514
Use cpu_number() in UVMHIST_LOG() rather than non-public ci_cpuid member
...
in struct cpu_info.
2003-03-08 15:17:23 +00:00
pk
ff65229410
Include CPU number in UVM history logs.
2003-02-09 22:33:18 +00:00
perry
bbad42171f
/*CONTCOND*/ while (0)'ed macros
2002-11-02 07:40:47 +00:00
simonb
c7339f8919
Include <sys/kernel.h> if UVMHIST is defined - the "cold" variable is
...
used in the UVMHIST_LOG macro.
Breakage reported by Chuck Silvers in private mail.
2002-03-05 05:45:54 +00:00
simonb
64c7743a05
Don't "extern int cold;" - this is in <sys/kernel.h>.
2002-03-04 02:19:07 +00:00
mrg
67afbd6270
use _KERNEL_OPT
2001-05-30 11:57:16 +00:00
chs
118ddca24a
replace {simple_,}lock{_data,}_t with struct {simple,}lock {,*}.
2001-05-26 16:32:40 +00:00
chs
3845302904
remove trailing whitespace.
2001-05-25 04:06:11 +00:00
mrg
6e26ebea51
allow ubchist to be printed from the uvmhist merging uvm_hist()
2001-02-04 10:55:58 +00:00
pk
741c324930
Finish previous.
2000-04-11 08:12:14 +00:00
chs
8724ec3b5c
avoid declarating "i" as a local variable in a macro.
...
it's too easy to shadow another local.
2000-04-11 02:34:19 +00:00
augustss
641df97d12
Remove more register declarations.
2000-03-30 12:31:50 +00:00
thorpej
abb48c5b71
Protect prototypes, certain macros, and inlines from userland.
1999-06-21 17:25:11 +00:00
mrg
a0139bc39d
remove now >1 year old pre-release message.
1999-03-25 18:48:49 +00:00
perry
2c8717021d
bzero->memset, bcopy->memcpy, bcmp->memcmp
1998-08-09 22:36:37 +00:00
mrg
f63fe467c9
Add new history grovelling function uvm_hist() that takes a bitmask of
...
histories to merge in cronological order. currently, MAPHIST and
PDHIST are defined as 1 and 2 respectively. passing a bitmask of 0
to uvm_hist() will dump all maps.
1998-06-20 13:19:00 +00:00
mrg
8106d13596
KNF.
1998-03-09 00:58:55 +00:00
thorpej
e6c31d3db7
KNF.
1998-02-13 05:33:55 +00:00
thorpej
872181c2f2
A few changes to make it possible to read UVM histories from userland:
...
- Protect option headers from inclusion if ! _KERNEL or if _LKM.
- Make sure struct uvm_history is always the same size (not dependent
on NCPU).
- Add fmtlen and fnlen members to struct uvm_history_ent, which specify
the lengths fo the fmt and fn strings.
- Add name, namelen, and a list entry to struct uvm_history.
- When a history is initialized, place it on the global list of all histories.
1998-02-13 04:55:14 +00:00
thorpej
90aee42d35
Provide a patchable knob (uvmhist_print_enabled) so that UVM history
...
buffer printing can be switched on and off at run-time. Only exists
if the kernel is build with UVMHIST_PRINT, and defaults to `on'.
1998-02-12 20:10:15 +00:00
mrg
d90485202c
- add defopt's for UVM, UVMHIST and PMAP_NEW.
...
- remove unnecessary UVMHIST_DECL's.
1998-02-10 14:08:44 +00:00
perry
021fdb646a
add/cleanup multiple inclusion protection.
1998-02-10 02:34:17 +00:00
mrg
bc3395e590
turn of UVM history logging by default.
1998-02-08 14:19:21 +00:00
mrg
1f6b921cf7
restore rcsids
1998-02-07 11:07:38 +00:00
chs
1f583a43b1
remove locking from UVMCNT counters.
...
they don't need to be exact, and the locking causes problems
in some of places they're used.
1998-02-07 02:16:52 +00:00
thorpej
9eb328b495
RCS ID police.
1998-02-06 22:26:13 +00:00