The NetBSD Project

CVS log for src/sys/kern/subr_lockdebug.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.83 / (download) - annotate - [select for diffs], Fri Sep 2 06:01:38 2022 UTC (19 months, 2 weeks ago) by nakayama
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.82: +6 -5 lines
Diff to previous 1.82 (colored) to selected 1.60 (colored)

Fix "error: cast from pointer to integer of different size" on
sparc build.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Aug 31 05:24:41 2022 UTC (19 months, 2 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.81: +11 -11 lines
Diff to previous 1.81 (colored) to selected 1.60 (colored)

Fix previous to make it compile again.

Revision 1.81 / (download) - annotate - [select for diffs], Tue Aug 30 22:38:17 2022 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.80: +56 -16 lines
Diff to previous 1.80 (colored) to selected 1.60 (colored)

lockdebug(9): Try to show symbol names if possible.

Also print the possible owner in ddb/crash `show lock' even if the
kernel is built without LOCKDEBUG.

Output may not be as pretty before with two neatly aligned columns,
but that can be changed; for now the value of having the symbols
printed instead of just obscure hex addresses (which one's an lwp
address and which one's a code pointer? can never remember!) should
outweigh the prettiness temporarily lost.

Revision 1.77.2.2 / (download) - annotate - [select for diffs], Sat Apr 3 22:29:00 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.77.2.1: +4 -3 lines
Diff to previous 1.77.2.1 (colored) next main 1.78 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.80 / (download) - annotate - [select for diffs], Tue Mar 2 01:20:35 2021 UTC (3 years, 1 month ago) by rin
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.79: +4 -3 lines
Diff to previous 1.79 (colored) to selected 1.60 (colored)

KNF. No binary changes.

Revision 1.77.2.1 / (download) - annotate - [select for diffs], Sun Jan 3 16:35:04 2021 UTC (3 years, 3 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.77: +11 -11 lines
Diff to previous 1.77 (colored) to selected 1.60 (colored)

Sync w/ HEAD.

Revision 1.79 / (download) - annotate - [select for diffs], Fri Jan 1 14:08:33 2021 UTC (3 years, 3 months ago) by riastradh
Branch: MAIN
Changes since 1.78: +8 -8 lines
Diff to previous 1.78 (colored) to selected 1.60 (colored)

Use printf, not printf_nolog, in lockdebug dumps.

Otherwise we get no diagnostic information in crash dumps or dmesg,
which really puts a damper on the utility of lockdebug.

(If there's a reason for printf_nolog instead of printf, it should be
documented in comments here, and it had better be a pretty good
reason for destroying the diagnostic information that is half the
point of lockdebug.)

Revision 1.78 / (download) - annotate - [select for diffs], Fri Jan 1 14:04:17 2021 UTC (3 years, 3 months ago) by riastradh
Branch: MAIN
Changes since 1.77: +5 -5 lines
Diff to previous 1.77 (colored) to selected 1.60 (colored)

Nix trailing whitespace.

Revision 1.77 / (download) - annotate - [select for diffs], Fri May 15 13:09:02 2020 UTC (3 years, 11 months ago) by maxv
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.76: +11 -2 lines
Diff to previous 1.76 (colored) to selected 1.60 (colored)

Introduce kcov_silence_enter() and kcov_silence_leave(), to allow to
temporarily disable KCOV on the current lwp. Should be used in the rare
but problematic cases where extreme noise is introduced by an
uninteresting subsystem.

Use this capability to silence KCOV during the LOCKDEBUG lookups. This
divides the size of the KCOV output by more than two in my KCOV+vHCI
tests.

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Mon Apr 20 11:29:10 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.75: +19 -84 lines
Diff to previous 1.75 (colored) next main 1.76 (colored) to selected 1.60 (colored)

Sync with HEAD

Revision 1.64.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:04 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.64.2.2: +17 -82 lines
Diff to previous 1.64.2.2 (colored) to branchpoint 1.64 (colored) next main 1.65 (colored) to selected 1.60 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.76 / (download) - annotate - [select for diffs], Fri Apr 10 17:16:21 2020 UTC (4 years ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Changes since 1.75: +19 -84 lines
Diff to previous 1.75 (colored) to selected 1.60 (colored)

- Make this needed sequence always work for condvars, by not touching the CV
  again after wakeup.  Previously it could panic because cv_signal() could
  be called by cv_wait_sig() + others:

	cv_broadcast(cv);
	cv_destroy(cv);

- In support of the above, if an LWP doing a timed wait is awoken by
  cv_broadcast() or cv_signal(), don't return an error if the timer
  fires after the fact, i.e. either succeed or fail, not both.

- Remove LOCKDEBUG code for CVs which never worked properly and is of
  questionable use.

Revision 1.64.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:52 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.64.2.1: +101 -40 lines
Diff to previous 1.64.2.1 (colored) to branchpoint 1.64 (colored) to selected 1.60 (colored)

Merge changes from current as of 20200406

Revision 1.75 / (download) - annotate - [select for diffs], Mon Mar 9 01:47:50 2020 UTC (4 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200406, bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Changes since 1.74: +41 -9 lines
Diff to previous 1.74 (colored) to selected 1.60 (colored)

comment out enough stuff to allow crash to print locks.

Revision 1.72.4.2 / (download) - annotate - [select for diffs], Sat Jan 25 22:38:51 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.72.4.1: +53 -27 lines
Diff to previous 1.72.4.1 (colored) to branchpoint 1.72 (colored) next main 1.73 (colored) to selected 1.60 (colored)

Sync with head.

Revision 1.74 / (download) - annotate - [select for diffs], Tue Jan 21 20:31:57 2020 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2
Changes since 1.73: +53 -27 lines
Diff to previous 1.73 (colored) to selected 1.60 (colored)

ddb's "show all locks":

- Make the output easier to scan quickly.

- Show every LWP that is blocked on a lock, and the details of the lock.

Revision 1.72.4.1 / (download) - annotate - [select for diffs], Fri Jan 17 21:47:35 2020 UTC (4 years, 3 months ago) by ad
Branch: ad-namecache
Changes since 1.72: +11 -8 lines
Diff to previous 1.72 (colored) to selected 1.60 (colored)

Sync with head.

Revision 1.73 / (download) - annotate - [select for diffs], Wed Jan 8 16:21:34 2020 UTC (4 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: ad-namecache-base1
Changes since 1.72: +11 -8 lines
Diff to previous 1.72 (colored) to selected 1.60 (colored)

lockdebug_barrier(): allow the one permitted lock to be a sleep lock too.

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:03 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.64: +73 -47 lines
Diff to previous 1.64 (colored) to selected 1.60 (colored)

Sync with HEAD

Revision 1.72 / (download) - annotate - [select for diffs], Tue May 28 07:39:16 2019 UTC (4 years, 10 months ago) by ryo
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, 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, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored) to selected 1.60 (colored)

changes of r1.68 was reverted by r1.69. apply it again.

Revision 1.71 / (download) - annotate - [select for diffs], Wed May 22 15:32:14 2019 UTC (4 years, 10 months ago) by scole
Branch: MAIN
Changes since 1.70: +6 -2 lines
Diff to previous 1.70 (colored) to selected 1.60 (colored)

Increase LD_BATCH_SHIFT for ia64 LOCKDEBUG kernels.  Otherwise, ia64 pmap will run out of space with this kernel debug option enabled.

Discussed with <chs> over email.

Revision 1.70 / (download) - annotate - [select for diffs], Thu May 9 05:00:31 2019 UTC (4 years, 11 months ago) by ozaki-r
Branch: MAIN
Changes since 1.69: +4 -4 lines
Diff to previous 1.69 (colored) to selected 1.60 (colored)

Avoid prepending a timestamp to lock debug outputs on ddb

Lock printer functions (lockops_t#lo_dump) use printf_nolog to print, but
printf_nolog now prepends a timestamp which is unnecessary for ddb:

    db{0}> show all locks/t
    [Locks tracked through LWPs]
    Locks held by an LWP (iperf):
    Lock 0 (initialized at soinit)
    lock address : 0xffffedeb84b06080 type     :     sleep/adaptive
    initialized  : 0xffffffff806d8c3f
    shared holds :                  0 exclusive:                  1
    shares wanted:                  0 exclusive:                 11
    current cpu  :                  0 last held:                  1
    current lwp  : 0xffffedeb849ff040 last held: 0xffffedeb7dfdb240
    last locked* : 0xffffffff806d8335 unlocked : 0xffffffff806d8385
    [ 79103.0868574] owner field  : 0xffffedeb7dfdb240 wait/spin:                1/0

Fix it by passing a printer function to lo_dump functions, i.e., make the
functions use db_printf on ddb.

Revision 1.60.2.4 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:50 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.60.2.3: +40 -32 lines
Diff to previous 1.60.2.3 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored) to selected 1.60 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.69 / (download) - annotate - [select for diffs], Sat Nov 3 15:20:03 2018 UTC (5 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, isaki-audio2-base, isaki-audio2
Changes since 1.68: +37 -33 lines
Diff to previous 1.68 (colored) to selected 1.60 (colored)

Deduplicate debug printing code.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Oct 25 09:30:45 2018 UTC (5 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.67: +6 -2 lines
Diff to previous 1.67 (colored) to selected 1.60 (colored)

in the !MP world, ci->ci_curlwp may not exist.  just use curlwp.

XXX: can we just do this for MP builds, too?  i think so.

Revision 1.60.2.3 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:55 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.60.2.2: +16 -15 lines
Diff to previous 1.60.2.2 (colored) to branchpoint 1.60 (colored) to selected 1.60 (colored)

Ssync with HEAD

Revision 1.57.2.3 / (download) - annotate - [select for diffs], Sun Sep 23 17:28:25 2018 UTC (5 years, 6 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.57.2.2: +16 -15 lines
Diff to previous 1.57.2.2 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored) to selected 1.60 (colored)

Pull up following revision(s) (requested by mrg in ticket #1024):

	sys/ddb/db_command.c: revision 1.157
	sys/ddb/db_command.c: revision 1.158
	sys/kern/subr_lockdebug.c: revision 1.67

always call lockdebug_dismiss() from DDB -- there are always some
minimal lockdebug checks in place, even without LOCKDEBUG.

adjust lockdebug_abort() to ignore problems after ld_panic is set

so that there's a chance of this working.
this fixes ddb 'reboot' on softiron od1000.

call spl0() before cpu_reboot(), so that there's a chance that:
- interrupts can work afterwards
- this also means if IO stalls, serial break might work again.

this mimics how reboot(2) ends up calling cpu_reboot().

Revision 1.67 / (download) - annotate - [select for diffs], Thu Sep 13 01:55:16 2018 UTC (5 years, 7 months ago) by mrg
Branch: MAIN
CVS Tags: pgoyette-compat-1020, pgoyette-compat-0930
Changes since 1.66: +16 -15 lines
Diff to previous 1.66 (colored) to selected 1.60 (colored)

always call lockdebug_dismiss() from DDB -- there are always some
minimal lockdebug checks in place, even without LOCKDEBUG.

adjust lockdebug_abort() to ignore problems after ld_panic is set
so that there's a chance of this working.

this fixes ddb 'reboot' on softiron od1000.

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Fri Sep 7 12:34:18 2018 UTC (5 years, 7 months ago) by martin
Branch: netbsd-8
Changes since 1.57.2.1: +15 -2 lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored) to selected 1.60 (colored)

Pull up following revision(s) (requested by mrg in ticket #1013):

	sys/sys/lockdebug.h: revision 1.20
	sys/ddb/db_command.c: revision 1.155
	sys/kern/subr_lockdebug.c: revision 1.65

add a lockdebug_dismiss() function for DDB to use that tells
lockdebug to avoid asserts.  use it for the ddb "reboot"
command, so that it doesn't matter how ddb was entered, the
reboot not trigger mutex checks and not work.

Revision 1.60.2.2 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:42 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.60.2.1: +16 -3 lines
Diff to previous 1.60.2.1 (colored) to branchpoint 1.60 (colored) to selected 1.60 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.66 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:35 2018 UTC (5 years, 7 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-0906
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored) to selected 1.60 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.65 / (download) - annotate - [select for diffs], Sun Aug 12 22:05:29 2018 UTC (5 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.64: +15 -2 lines
Diff to previous 1.64 (colored) to selected 1.60 (colored)

add a lockdebug_dismiss() function for DDB to use that tells
lockdebug to avoid asserts.  use it for the ddb "reboot"
command, so that it doesn't matter how ddb was entered, the
reboot not trigger mutex checks and not work.

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Mon Apr 2 09:07:52 2018 UTC (6 years ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.57: +142 -2 lines
Diff to previous 1.57 (colored) to selected 1.60 (colored)

Pull up following revision(s) (requested by ozaki-r in ticket #687):
	sys/kern/kern_rwlock_obj.c: revision 1.4
	sys/rump/librump/rumpkern/locks.c: revision 1.80
	sys/kern/kern_rwlock.c: revision 1.50
	sys/arch/x86/x86/db_memrw.c: revision 1.5,1.6
	sys/ddb/db_command.c: revision 1.150-1.153
	share/man/man4/ddb.4: revision 1.175 (via patch),1.176-1.178
	sys/kern/kern_mutex_obj.c: revision 1.6
	sys/kern/subr_lockdebug.c: revision 1.61-1.64
	sys/sys/lockdebug.h: revision 1.17
	sys/kern/kern_mutex.c: revision 1.71
	sys/sys/lockdebug.h: revision 1.18,1.19
	sys/kern/subr_xcall.c: revision 1.26

Obtain proper initialized addresses of locks allocated by mutex_obj_alloc or rw_obj_alloc

Initialized addresses of locks allocated by mutex_obj_alloc or rw_obj_alloc
were not useful because the addresses were mutex_obj_alloc or rw_obj_alloc
itself. What we want to know are callers of them.

Spinkle ASSERT_SLEEPABLE to xcall functions

Use db_printf instead of printf in ddb

Add a new command, show lockstat, which shows statistics of locks
Currently the command shows the number of allocated locks.
The command is useful only if LOCKDEBUG is enabled.

Add a new command, show all locks, which shows information of active locks

The command shows information of all active (i.e., being held) locks that are
tracked through either of LWPs or CPUs by the LOCKDEBUG facility.  The /t
modifier additionally shows a backtrace for each LWP additionally.  This
feature is useful for debugging especially to analyze deadlocks.
The command is useful only if LOCKDEBUG is enabled.

Don't pass a unset address to lockdebug_lock_print

x86: avoid accessing invalid addresses in ddb like arm32
This avoids that a command stops in the middle of an execution if
a fault occurs due to an access to an invalid address.

Get rid of a redundant output

Improve wording. Fix a Cm argument.

ddb: rename "show lockstat" to "show lockstats" to avoid conflicting with lockstat(8)
Requested by mrg@

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Thu Mar 22 01:44:50 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.60: +142 -2 lines
Diff to previous 1.60 (colored)

Synch with HEAD, resolve conflicts

Revision 1.64 / (download) - annotate - [select for diffs], Mon Mar 19 08:41:21 2018 UTC (6 years, 1 month ago) by ozaki-r
Branch: MAIN
CVS Tags: phil-wifi-base, 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
Branch point for: phil-wifi
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored) to selected 1.60 (colored)

ddb: rename "show lockstat" to "show lockstats" to avoid conflicting with lockstat(8)

Requested by mrg@

Revision 1.63 / (download) - annotate - [select for diffs], Fri Mar 16 08:21:45 2018 UTC (6 years, 1 month ago) by ozaki-r
Branch: MAIN
Changes since 1.62: +2 -3 lines
Diff to previous 1.62 (colored) to selected 1.60 (colored)

Get rid of a redundant output

Revision 1.62 / (download) - annotate - [select for diffs], Fri Mar 16 04:44:51 2018 UTC (6 years, 1 month ago) by ozaki-r
Branch: MAIN
Changes since 1.61: +93 -2 lines
Diff to previous 1.61 (colored) to selected 1.60 (colored)

Add a new command, show all locks, which shows information of active locks

The command shows information of all active (i.e., being held) locks that are
tracked through either of LWPs or CPUs by the LOCKDEBUG facility.  The /t
modifier additionally shows a backtrace for each LWP additionally.  This
feature is useful for debugging especially to analyze deadlocks.

The command is useful only if LOCKDEBUG is enabled.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Mar 16 04:43:37 2018 UTC (6 years, 1 month ago) by ozaki-r
Branch: MAIN
Changes since 1.60: +52 -2 lines
Diff to previous 1.60 (colored)

Add a new command, show lockstat, which shows statistics of locks

Currently the command shows the number of allocated locks.

The command is useful only if LOCKDEBUG is enabled.

Revision 1.60 / (download) - annotate - [selected], Tue Feb 20 03:34:52 2018 UTC (6 years, 1 month ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.59: +34 -30 lines
Diff to previous 1.59 (colored)

Spinkle __predict_false to LOCKDEBUG functions

Panics and lockdebug failures are unlikely to occur normally.

Revision 1.59 / (download) - annotate - [select for diffs], Wed Feb 14 03:56:26 2018 UTC (6 years, 2 months ago) by ozaki-r
Branch: MAIN
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored) to selected 1.60 (colored)

Use cpu_softintr_p

Revision 1.46.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:45 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.46.2.3: +81 -61 lines
Diff to previous 1.46.2.3 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored) to selected 1.60 (colored)

update from HEAD

Revision 1.58 / (download) - annotate - [select for diffs], Sat Sep 16 23:55:33 2017 UTC (6 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.57: +7 -7 lines
Diff to previous 1.57 (colored) to selected 1.60 (colored)

more const

Revision 1.52.2.4 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:07 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.52.2.3: +7 -8 lines
Diff to previous 1.52.2.3 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored) to selected 1.60 (colored)

Sync with HEAD

Revision 1.57 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:13 2017 UTC (6 years, 10 months ago) by chs
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Changes since 1.56: +2 -5 lines
Diff to previous 1.56 (colored) to selected 1.60 (colored)

remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.55.4.1 / (download) - annotate - [select for diffs], Tue May 2 03:19:22 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.55: +7 -5 lines
Diff to previous 1.55 (colored) next main 1.56 (colored) to selected 1.60 (colored)

Sync with HEAD - tag prg-localcount2-base1

Revision 1.56 / (download) - annotate - [select for diffs], Mon May 1 21:35:26 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1
Changes since 1.55: +7 -5 lines
Diff to previous 1.55 (colored) to selected 1.60 (colored)

Introduce mutex_ownable() to determine if it is possible for the current
process to acquire a mutex.

Revision 1.54.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:02 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.54: +67 -56 lines
Diff to previous 1.54 (colored) next main 1.55 (colored) to selected 1.60 (colored)

Sync with HEAD

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:47 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.54: +67 -56 lines
Diff to previous 1.54 (colored) next main 1.55 (colored) to selected 1.60 (colored)

Sync with HEAD

Revision 1.52.2.3 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:56 2017 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.52.2.2: +69 -58 lines
Diff to previous 1.52.2.2 (colored) to branchpoint 1.52 (colored) to selected 1.60 (colored)

Sync with HEAD

Revision 1.55 / (download) - annotate - [select for diffs], Thu Jan 26 04:11:56 2017 UTC (7 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, nick-nhusb-base-20170204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: prg-localcount2
Changes since 1.54: +67 -56 lines
Diff to previous 1.54 (colored) to selected 1.60 (colored)

For LOCKDEBUG:
Always provide the location of the caller of the lock as __func__, __LINE__.

Revision 1.52.2.2 / (download) - annotate - [select for diffs], Sun Dec 27 12:10:05 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.52.2.1: +4 -2 lines
Diff to previous 1.52.2.1 (colored) to branchpoint 1.52 (colored) to selected 1.60 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.54 / (download) - annotate - [select for diffs], Tue Sep 29 01:44:57 2015 UTC (8 years, 6 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.53: +4 -2 lines
Diff to previous 1.53 (colored) to selected 1.60 (colored)

Add _KERNEL_OPT

It's needed for nbmake RUMP_LOCKDEBUG=yes.

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:22 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.52: +4 -3 lines
Diff to previous 1.52 (colored) to selected 1.60 (colored)

Sync with HEAD

Revision 1.53 / (download) - annotate - [select for diffs], Wed Apr 15 14:41:17 2015 UTC (9 years ago) by riastradh
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.52: +4 -3 lines
Diff to previous 1.52 (colored) to selected 1.60 (colored)

Put the lock error info in the panicstr so ddb can get at it.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Nov 24 02:36:31 2014 UTC (9 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.51: +11 -4 lines
Diff to previous 1.51 (colored) to selected 1.60 (colored)

Print the shared lock(s) before we panic, to aid with debugging.

Revision 1.46.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:29 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.46.2.2: +3 -2 lines
Diff to previous 1.46.2.2 (colored) to branchpoint 1.46 (colored) to selected 1.60 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.45.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:41:03 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.45.2.1: +10 -9 lines
Diff to previous 1.45.2.1 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored) to selected 1.60 (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.49.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:07 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.49: +5 -4 lines
Diff to previous 1.49 (colored) next main 1.50 (colored) to selected 1.60 (colored)

sync with head

Revision 1.51 / (download) - annotate - [select for diffs], Fri Mar 7 16:36:32 2014 UTC (10 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, 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, netbsd-7
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored) to selected 1.60 (colored)

Tell where the corrruption was encountered in the panic message.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Oct 12 16:42:27 2013 UTC (10 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.49: +4 -3 lines
Diff to previous 1.49 (colored) to selected 1.60 (colored)

provide a better printf for the panic message

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:18:58 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.46.2.1: +4 -5 lines
Diff to previous 1.46.2.1 (colored) to branchpoint 1.46 (colored) to selected 1.60 (colored)

resync from head

Revision 1.49 / (download) - annotate - [select for diffs], Sat Apr 27 08:12:35 2013 UTC (10 years, 11 months ago) by mlelstv
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Changes since 1.48: +4 -5 lines
Diff to previous 1.48 (colored) to selected 1.60 (colored)

Revert change that allowed rw_tryenter(&lock, RW_READER) to recurse
for vfs_busy(). This is no longer necessary.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:53 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.46: +5 -4 lines
Diff to previous 1.46 (colored) to selected 1.60 (colored)

resync with head

Revision 1.48 / (download) - annotate - [select for diffs], Sat Feb 9 11:04:32 2013 UTC (11 years, 2 months ago) by njoly
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored) to selected 1.60 (colored)

Fix LOCKDEBUG build.

Revision 1.47 / (download) - annotate - [select for diffs], Sat Feb 9 00:31:21 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.46: +4 -3 lines
Diff to previous 1.46 (colored) to selected 1.60 (colored)

printflike maintenance.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:33 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.45: +3 -4 lines
Diff to previous 1.45 (colored) to selected 1.60 (colored)

sync with head

Revision 1.46 / (download) - annotate - [select for diffs], Sat Aug 4 12:38:20 2012 UTC (11 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.45: +3 -4 lines
Diff to previous 1.45 (colored) to selected 1.60 (colored)

- fix typo in comment
- Don't call abort1 with NULL ld, after panic(9).

Revision 1.45 / (download) - annotate - [select for diffs], Tue Jul 26 13:07:20 2011 UTC (12 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.44: +6 -3 lines
Diff to previous 1.44 (colored) to selected 1.60 (colored)

try to fill ld_locked/ld_unlocked for shared acquisition of lock

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:34 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.43: +10 -10 lines
Diff to previous 1.43 (colored) next main 1.44 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.41.4.2 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:09 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.41.4.1: +8 -8 lines
Diff to previous 1.41.4.1 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored) to selected 1.60 (colored)

sync with head

Revision 1.44 / (download) - annotate - [select for diffs], Thu Apr 14 06:12:02 2011 UTC (13 years ago) by matt
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.43: +10 -10 lines
Diff to previous 1.43 (colored) to selected 1.60 (colored)

rearrange some common code in lockdebug_unlocked.
When printing a lockdebug error, add a '*' to indicate whether lock or
unlock was performed.

Revision 1.41.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:18 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.41: +23 -19 lines
Diff to previous 1.41 (colored) to selected 1.60 (colored)

sync with head

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:28 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.41: +23 -19 lines
Diff to previous 1.41 (colored) next main 1.42 (colored) to selected 1.60 (colored)

Sync with HEAD (-D20101022).

Revision 1.30.2.4 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:31 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.30.2.3: +23 -19 lines
Diff to previous 1.30.2.3 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored) to selected 1.60 (colored)

sync with head

Revision 1.43 / (download) - annotate - [select for diffs], Sat Sep 25 01:42:39 2010 UTC (13 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored) to selected 1.60 (colored)

Rename rb.h to rbtree.h, as it is more appropriate (c.f. ptree.h).  Also
helps find code that hasn't been updated to use the new rbtree API.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Sep 24 22:51:50 2010 UTC (13 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.41: +22 -18 lines
Diff to previous 1.41 (colored) to selected 1.60 (colored)

Fixes/improvements to RB-tree implementation:
1. Fix inverted node order, so that negative value from comparison operator
   would represent lower (left) node, and positive - higher (right) node.
2. Add an argument (i.e. "context"), passed to comparison operators.
3. Change rb_tree_insert_node() to return a node - either inserted one or
   already existing one.
4. Amend the interface to manipulate the actual object, instead of the
   rb_node (in a similar way as Patricia-tree interface does).
5. Update all RB-tree users accordingly.

XXX: Perhaps rename rb.h to rbtree.h, since cleaning-up..

1-3 address the PR/43488 by Jeremy Huddleston.

Passes RB-tree regression tests.
Reviewed by: matt@, christos@

Revision 1.30.2.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:18 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.30.2.2: +18 -12 lines
Diff to previous 1.30.2.2 (colored) to branchpoint 1.30 (colored) to selected 1.60 (colored)

sync with head

Revision 1.41 / (download) - annotate - [select for diffs], Tue Nov 3 00:29:11 2009 UTC (14 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base10, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.40: +11 -5 lines
Diff to previous 1.40 (colored) to selected 1.60 (colored)

Make lockdebug_lock_print(NULL, ...) dump all locks.  Now, in ddb,
'show lock 0x0' dumps all of the locks.

XXX I still need to fix 'show all lock'.

Revision 1.40 / (download) - annotate - [select for diffs], Mon Oct 5 23:39:27 2009 UTC (14 years, 6 months ago) by rmind
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.39: +9 -9 lines
Diff to previous 1.39 (colored) to selected 1.60 (colored)

Convert cpu_number(), which can be sparse, to cpu_index(), which is MI.

Revision 1.30.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:48 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.30.2.1: +98 -33 lines
Diff to previous 1.30.2.1 (colored) to branchpoint 1.30 (colored) to selected 1.60 (colored)

sync with head.

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:39 2009 UTC (15 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.37: +11 -10 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.28.6.5 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:19 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.28.6.4: +9 -8 lines
Diff to previous 1.28.6.4 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:08 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.37: +11 -10 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.60 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Nov 7 19:50:00 2008 UTC (15 years, 5 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored) to selected 1.60 (colored)

buildfix: use PRIxPTR rather %lx.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Nov 7 02:40:35 2008 UTC (15 years, 5 months ago) by rafal
Branch: MAIN
Changes since 1.37: +11 -10 lines
Diff to previous 1.37 (colored) to selected 1.60 (colored)

Pass / log return address in a few more places; proposed on tech-kern and
ok'd by ad@ about 6 months ago.

Revision 1.34.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:43 2008 UTC (15 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.34.2.1: +6 -6 lines
Diff to previous 1.34.2.1 (colored) to branchpoint 1.34 (colored) next main 1.35 (colored) to selected 1.60 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.28.6.4 / (download) - annotate - [select for diffs], Wed Jul 2 19:08:20 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.28.6.3: +4 -4 lines
Diff to previous 1.28.6.3 (colored) to branchpoint 1.28 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Mon Jun 30 23:10:57 2008 UTC (15 years, 9 months ago) by matt
Branch: simonb-wapbl
Changes since 1.36: +6 -6 lines
Diff to previous 1.36 (colored) next main 1.37 (colored) to selected 1.60 (colored)

Update to HEAD.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jun 30 20:14:09 2008 UTC (15 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, haad-dm
Changes since 1.36: +6 -6 lines
Diff to previous 1.36 (colored) to selected 1.60 (colored)

Change tree op members/typedefs to rbto_compare_* from rb_compare_*

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:51 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.34: +86 -22 lines
Diff to previous 1.34 (colored) to selected 1.60 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.29.2.3 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:03 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.29.2.2: +3 -4 lines
Diff to previous 1.29.2.2 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored) to selected 1.60 (colored)

sync with head.

Revision 1.28.6.3 / (download) - annotate - [select for diffs], Thu Jun 5 19:14:36 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.28.6.2: +1 -2 lines
Diff to previous 1.28.6.2 (colored) to branchpoint 1.28 (colored) to selected 1.60 (colored)

Sync with HEAD.

Also fix build.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Jun 4 14:31:15 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl
Changes since 1.35: +3 -4 lines
Diff to previous 1.35 (colored) to selected 1.60 (colored)

Move lib/libkern/rb.h to sys/rb.h, so it can be used by kernel header
files.

Revision 1.29.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:39 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.29.2.1: +85 -20 lines
Diff to previous 1.29.2.1 (colored) to branchpoint 1.29 (colored) to selected 1.60 (colored)

sync with head

Revision 1.28.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:11 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.28.6.1: +253 -267 lines
Diff to previous 1.28.6.1 (colored) to branchpoint 1.28 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.35 / (download) - annotate - [select for diffs], Sat May 31 13:15:21 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base3
Changes since 1.34: +85 -20 lines
Diff to previous 1.34 (colored) to selected 1.60 (colored)

LOCKDEBUG:

- Tweak it so it can also catch common errors with condition variables.
  The change to kern_condvar.c is not included in this commit and will
  come later.

- Don't call kmem_alloc() if operating in interrupt context, just fail
  the allocation and disable debugging for the object. Makes it safe
  to do mutex_init/rw_init/cv_init in interrupt context, when running
  a LOCKDEBUG kernel.

Revision 1.29.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:09 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.29: +176 -255 lines
Diff to previous 1.29 (colored) to selected 1.60 (colored)

sync with head.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:26 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.30: +177 -264 lines
Diff to previous 1.30 (colored) to selected 1.60 (colored)

sync with head.

Revision 1.34 / (download) - annotate - [select for diffs], Tue May 6 18:40:57 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.33: +167 -252 lines
Diff to previous 1.33 (colored) to selected 1.60 (colored)

LOCKDEBUG: try to speed it up a bit by not using so much global state.

This will break the build briefly but will be followed by another commit
to fix that..

Revision 1.33 / (download) - annotate - [select for diffs], Tue May 6 17:11:45 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.32: +5 -4 lines
Diff to previous 1.32 (colored) to selected 1.60 (colored)

Allow rw_tryenter(&lock, RW_READER) to recurse, for vfs_busy().

Revision 1.32 / (download) - annotate - [select for diffs], Sat May 3 06:24:55 2008 UTC (15 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.31: +9 -5 lines
Diff to previous 1.31 (colored) to selected 1.60 (colored)

lockdebug: try to detect recursive acquirements of read-write locks.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:04 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.30: +2 -9 lines
Diff to previous 1.30 (colored) to selected 1.60 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.30 / (download) - annotate - [select for diffs], Sun Apr 27 11:28:49 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.29: +13 -5 lines
Diff to previous 1.29 (colored) to selected 1.60 (colored)

lockdebug_barrier: disable preemption using the interrupt priority level,
not crit_enter/crit_exit. Since this is called from mi_switch(), crit_exit
could recurse and skew statistics.

Revision 1.28.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:03 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Mar 27 18:30:15 2008 UTC (16 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored) to selected 1.60 (colored)

Replace use of CACHE_LINE_SIZE in some obvious places.

Revision 1.8.8.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:00 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.8.8.2: +77 -35 lines
Diff to previous 1.8.8.2 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored) to selected 1.60 (colored)

sync with HEAD

Revision 1.4.2.8 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:56 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4.2.7: +77 -35 lines
Diff to previous 1.4.2.7 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored) to selected 1.60 (colored)

sync with head.

Revision 1.11.2.4 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:47 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.11.2.3: +80 -34 lines
Diff to previous 1.11.2.3 (colored) next main 1.12 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Feb 18 18:31:10 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.27: +5 -4 lines
Diff to previous 1.27 (colored) to selected 1.60 (colored)

Make it compile if !LOCKDEBUG.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Feb 18 16:02:41 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: mjf-devfs-base
Changes since 1.26: +75 -34 lines
Diff to previous 1.26 (colored) to selected 1.60 (colored)

Try to prevent more than one CPUs panicing when an error is detected.

Revision 1.4.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:19 2008 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4.2.6: +89 -39 lines
Diff to previous 1.4.2.6 (colored) to branchpoint 1.4 (colored) to selected 1.60 (colored)

sync with head

Revision 1.8.8.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:17 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.8.8.1: +191 -131 lines
Diff to previous 1.8.8.1 (colored) to branchpoint 1.8 (colored) to selected 1.60 (colored)

sync with HEAD

Revision 1.23.4.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:40 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.23.4.1: +3 -1 lines
Diff to previous 1.23.4.1 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored) to selected 1.60 (colored)

Sync with HEAD

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jan 5 12:39:27 2008 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored) to selected 1.60 (colored)

Need sys/lock.h for SPINLOCK_SPIN_HOOK.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jan 4 21:18:12 2008 UTC (16 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.24: +4 -3 lines
Diff to previous 1.24 (colored) to selected 1.60 (colored)

Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.

Revision 1.23.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:09 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.23: +5 -2 lines
Diff to previous 1.23 (colored) to selected 1.60 (colored)

Sync with HEAD

Revision 1.11.2.3 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:07 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.11.2.2: +83 -38 lines
Diff to previous 1.11.2.2 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.22.2.8 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:42 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.22.2.7: +5 -2 lines
Diff to previous 1.22.2.7 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored) to selected 1.60 (colored)

Sync with head.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Dec 26 16:01:36 2007 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.23: +5 -2 lines
Diff to previous 1.23 (colored) to selected 1.60 (colored)

Merge more changes from vmlocking2, mainly:

- Locking improvements.
- Use pool_cache for more items.

Revision 1.22.2.7 / (download) - annotate - [select for diffs], Thu Dec 13 13:57:51 2007 UTC (16 years, 4 months ago) by yamt
Branch: vmlocking2
Changes since 1.22.2.6: +5 -2 lines
Diff to previous 1.22.2.6 (colored) to branchpoint 1.22 (colored) to selected 1.60 (colored)

lockdebug_mem_check: fix "allocation contains active lock" after another panic.
the rb tree can be stale if panicstr != 0 because lockdebug_free is no-op
in that case.  might be related to PR/37531 from Andrew Doran.

Revision 1.8.6.9 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:23 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.8.6.8: +83 -38 lines
Diff to previous 1.8.6.8 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.5.6.1 / (download) - annotate - [select for diffs], Sun Dec 9 16:04:01 2007 UTC (16 years, 4 months ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.5: +158 -26 lines
Diff to previous 1.5 (colored) next main 1.6 (colored) to selected 1.60 (colored)

Pullup to HEAD

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:36 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.11.2.1: +120 -105 lines
Diff to previous 1.11.2.1 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.22.2.6 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:46 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.22.2.5: +2 -2 lines
Diff to previous 1.22.2.5 (colored) to branchpoint 1.22 (colored) to selected 1.60 (colored)

Sync with head.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Dec 8 15:00:13 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, reinoud-bufcleanup-nbase, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.22: +83 -38 lines
Diff to previous 1.22 (colored) to selected 1.60 (colored)

Merge changes from vmlocking2 branch.

Revision 1.22.2.5 / (download) - annotate - [select for diffs], Sat Dec 8 14:58:51 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.22.2.4: +29 -29 lines
Diff to previous 1.22.2.4 (colored) to branchpoint 1.22 (colored) to selected 1.60 (colored)

Reduce unnecessary diffs to HEAD.

Revision 1.4.2.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:33:06 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4.2.5: +120 -105 lines
Diff to previous 1.4.2.5 (colored) to branchpoint 1.4 (colored) to selected 1.60 (colored)

sync with head

Revision 1.22.2.4 / (download) - annotate - [select for diffs], Wed Dec 5 23:59:58 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.22.2.3: +6 -2 lines
Diff to previous 1.22.2.3 (colored) to branchpoint 1.22 (colored) to selected 1.60 (colored)

Add memory barriers to previous.

Revision 1.22.2.3 / (download) - annotate - [select for diffs], Wed Dec 5 18:49:10 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.22.2.2: +94 -53 lines
Diff to previous 1.22.2.2 (colored) to branchpoint 1.22 (colored) to selected 1.60 (colored)

- Implement and use a very simple spinning reader/writer lock.
- Disable preemption where necessary.

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Wed Dec 5 08:33:39 2007 UTC (16 years, 4 months ago) by yamt
Branch: vmlocking2
Changes since 1.22.2.1: +12 -10 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored) to selected 1.60 (colored)

lockdebug_mem_check: fix locking.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Wed Dec 5 08:32:01 2007 UTC (16 years, 4 months ago) by yamt
Branch: vmlocking2
Changes since 1.22: +2 -4 lines
Diff to previous 1.22 (colored) to selected 1.60 (colored)

lockdebug_wantlock: put back cpu_intr_p check which disappeared
during vmlocking -> vmlocking2.

Revision 1.8.6.8 / (download) - annotate - [select for diffs], Mon Dec 3 16:14:56 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.8.6.7: +4 -3 lines
Diff to previous 1.8.6.7 (colored) to branchpoint 1.8 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Nov 30 23:05:44 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-base
Branch point for: vmlocking2
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 (colored) to selected 1.60 (colored)

Use membar_*().

Revision 1.8.6.7 / (download) - annotate - [select for diffs], Tue Nov 27 19:38:09 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.8.6.6: +17 -11 lines
Diff to previous 1.8.6.6 (colored) to branchpoint 1.8 (colored) to selected 1.60 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Nov 26 08:16:49 2007 UTC (16 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.20: +5 -3 lines
Diff to previous 1.20 (colored) to selected 1.60 (colored)

lockdebug_mem_check: turn a redundant check into a panic.

Revision 1.10.2.3 / (download) - annotate - [select for diffs], Thu Nov 22 15:18:24 2007 UTC (16 years, 4 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.10.2.2: +12 -8 lines
Diff to previous 1.10.2.2 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored) to selected 1.60 (colored)

Sync with HEAD

Revision 1.20 / (download) - annotate - [select for diffs], Thu Nov 22 10:47:37 2007 UTC (16 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: bouyer-xenamd64-base
Changes since 1.19: +14 -10 lines
Diff to previous 1.19 (colored) to selected 1.60 (colored)

fix lockdebug_mem_check.

Revision 1.8.6.6 / (download) - annotate - [select for diffs], Wed Nov 21 21:56:02 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.8.6.5: +112 -104 lines
Diff to previous 1.8.6.5 (colored) to branchpoint 1.8 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Wed Nov 21 21:19:46 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.10.2.1: +110 -102 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored) to selected 1.60 (colored)

Sync with HEAD

Revision 1.19 / (download) - annotate - [select for diffs], Wed Nov 21 11:33:11 2007 UTC (16 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2
Changes since 1.18: +24 -7 lines
Diff to previous 1.18 (colored) to selected 1.60 (colored)

lockdebug_alloc: detect double initialization explicitly.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Nov 21 10:25:51 2007 UTC (16 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.17: +0 -2 lines
Diff to previous 1.17 (colored) to selected 1.60 (colored)

re-enable lockdebug_mem_check.  ad@ said disabling it was a mistake
in the first place.
the implementation has been changed to use rb-tree rather than hash
so that it can check regions larger than page size as well.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Nov 21 10:21:40 2007 UTC (16 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.16: +0 -4 lines
Diff to previous 1.16 (colored) to selected 1.60 (colored)

remove #if 0'ed code.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Nov 21 10:19:10 2007 UTC (16 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.15: +93 -96 lines
Diff to previous 1.15 (colored) to selected 1.60 (colored)

make kmutex_t and krwlock_t smaller by killing lock id.
ok'ed by Andrew Doran.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:49 2007 UTC (16 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.11: +7 -12 lines
Diff to previous 1.11 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.4.2.5 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:49 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4.2.4: +7 -12 lines
Diff to previous 1.4.2.4 (colored) to branchpoint 1.4 (colored) to selected 1.60 (colored)

sync with head.

Revision 1.8.6.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:04:44 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.8.6.4: +6 -11 lines
Diff to previous 1.8.6.4 (colored) to branchpoint 1.8 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:02:19 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.10: +8 -13 lines
Diff to previous 1.10 (colored) to selected 1.60 (colored)

Sync with HEAD

Revision 1.15 / (download) - annotate - [select for diffs], Mon Nov 12 06:14:57 2007 UTC (16 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.14: +9 -5 lines
Diff to previous 1.14 (colored) to selected 1.60 (colored)

Don't static init simplelock (back out those changes).

Revision 1.14 / (download) - annotate - [select for diffs], Mon Nov 12 06:07:43 2007 UTC (16 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.13: +5 -5 lines
Diff to previous 1.13 (colored) to selected 1.60 (colored)

use __SIMPLELOCK_UNLOCKED, not SIMPLELOCK_INITIALIZER

Revision 1.13 / (download) - annotate - [select for diffs], Sun Nov 11 23:22:24 2007 UTC (16 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.12: +9 -18 lines
Diff to previous 1.12 (colored) to selected 1.60 (colored)

Change some initialization of static queues to compile time.
(xxx_INIT to xxx_HEAD_INITIALIZER).  Drop code which inits
non-auto (global or static) variables to 0 since that's
already implied by being non-auto.  Init some static/global
cpu_simple_locks at compile time.

Revision 1.8.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:32:14 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.8: +118 -27 lines
Diff to previous 1.8 (colored) to selected 1.60 (colored)

sync with HEAD

Revision 1.8.6.4 / (download) - annotate - [select for diffs], Tue Nov 6 19:25:33 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.8.6.3: +3 -3 lines
Diff to previous 1.8.6.3 (colored) to branchpoint 1.8 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Nov 6 00:42:43 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: jmcneill-base
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) to selected 1.60 (colored)

Merge scheduler changes from the vmlocking branch. All discussed on
tech-kern:

- Invert priority space so that zero is the lowest priority. Rearrange
  number and type of priority levels into bands. Add new bands like
  'kernel real time'.
- Ignore the priority level passed to tsleep. Compute priority for
  sleep dynamically.
- For SCHED_4BSD, make priority adjustment per-LWP, not per-process.

Revision 1.8.6.3 / (download) - annotate - [select for diffs], Sun Oct 28 20:11:12 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.8.6.2: +3 -3 lines
Diff to previous 1.8.6.2 (colored) to branchpoint 1.8 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.4.2.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:33 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4.2.3: +118 -27 lines
Diff to previous 1.4.2.3 (colored) to branchpoint 1.4 (colored) to selected 1.60 (colored)

sync with head.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Oct 27 01:23:25 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
Branch point for: mjf-devfs
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored) to selected 1.60 (colored)

Fix spelling.

Revision 1.8.6.2 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:40 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.8.6.1: +115 -24 lines
Diff to previous 1.8.6.1 (colored) to branchpoint 1.8 (colored) to selected 1.60 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.5.2.9 / (download) - annotate - [select for diffs], Thu Oct 18 15:47:34 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.8: +3 -3 lines
Diff to previous 1.5.2.8 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored) to selected 1.60 (colored)

Update for soft interrupt changes. See kern_softint.c 1.1.2.17 for details.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:46 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.9: +115 -24 lines
Diff to previous 1.9 (colored) next main 1.10 (colored) to selected 1.60 (colored)

sync with head.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Oct 11 19:45:25 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base
Branch point for: bouyer-xenamd64
Changes since 1.9: +115 -24 lines
Diff to previous 1.9 (colored) to selected 1.60 (colored)

Merge from vmlocking:

- G/C spinlockmgr() and simple_lock debugging.
- Always include the kernel_lock functions, for LKMs.
- Slightly improved subr_lockdebug code.
- Keep sizeof(struct lock) the same if LOCKDEBUG.

Revision 1.5.2.8 / (download) - annotate - [select for diffs], Thu Oct 11 11:23:34 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.7: +4 -4 lines
Diff to previous 1.5.2.7 (colored) to branchpoint 1.5 (colored) to selected 1.60 (colored)

Sync with head.

Revision 1.8.6.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:03 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Sep 21 19:14:12 2007 UTC (16 years, 7 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base
Branch point for: yamt-x86pmap
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored) to selected 1.60 (colored)

Include sys/cdefs.h first.

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:03 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4.2.2: +25 -23 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored) to selected 1.60 (colored)

sync with head.

Revision 1.5.2.7 / (download) - annotate - [select for diffs], Mon Aug 20 23:04:50 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.6: +13 -3 lines
Diff to previous 1.5.2.6 (colored) to branchpoint 1.5 (colored) to selected 1.60 (colored)

Disable freed lock checking for now. It seems to be coming up with
false positives.

Revision 1.5.2.6 / (download) - annotate - [select for diffs], Mon Aug 20 18:08:55 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.5: +9 -5 lines
Diff to previous 1.5.2.5 (colored) to branchpoint 1.5 (colored) to selected 1.60 (colored)

Track where locks were initialized.

Revision 1.5.2.5 / (download) - annotate - [select for diffs], Sun Jul 29 11:34:47 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.4: +89 -21 lines
Diff to previous 1.5.2.4 (colored) to branchpoint 1.5 (colored) to selected 1.60 (colored)

Trap free() of areas that contain undestroyed locks. Not a major problem
but it helps to catch bugs.

Revision 1.5.2.4 / (download) - annotate - [select for diffs], Sun Jul 15 22:20:28 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.3: +3 -2 lines
Diff to previous 1.5.2.3 (colored) to branchpoint 1.5 (colored) to selected 1.60 (colored)

Get pmax working.

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:44 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.2: +3 -3 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored) to selected 1.60 (colored)

Sync with head.

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:05 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.5: +5 -5 lines
Diff to previous 1.5 (colored) next main 1.6 (colored) to selected 1.60 (colored)

Sync with head.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Sun Jun 17 21:31:30 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.1: +9 -3 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored) to selected 1.60 (colored)

- Increase the number of thread priorities from 128 to 256. How the space
  is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
  is provided, with hooks for fast-path MD code that can run the interrupt
  threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
  locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jun 15 20:17:08 2007 UTC (16 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6, jmcneill-pm
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored) to selected 1.60 (colored)

splstatclock, spllock -> splhigh

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:24 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored) to selected 1.60 (colored)

Sync with head.

Revision 1.7 / (download) - annotate - [select for diffs], Mon May 21 11:56:35 2007 UTC (16 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored) to selected 1.60 (colored)

Correct comment.

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Mon May 7 10:55:46 2007 UTC (16 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.2.2.2: +3 -3 lines
Diff to previous 1.2.2.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored) to selected 1.60 (colored)

sync with head.

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 2 14:07:03 2007 UTC (16 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored) to selected 1.60 (colored)

lockdebug_abort: s/int/u_int/ for lock id as the rest of code.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:40 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.2.2.1: +22 -20 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) to selected 1.60 (colored)

Sync with HEAD.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Mar 10 15:56:21 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic
Branch point for: vmlocking, reinoud-bufcleanup, mjf-ufs-trans
Changes since 1.4: +22 -20 lines
Diff to previous 1.4 (colored) to selected 1.60 (colored)

lockdebug:

- Initialize on the first allocation.
- Handle overflow better. PR kern/35723.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:27 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.2: +6 -6 lines
Diff to previous 1.2 (colored) to selected 1.60 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:14 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4.2.1: +665 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) to selected 1.60 (colored)

sync with head.

Revision 1.4.2.1, Thu Feb 22 06:34:44 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4: +0 -665 lines
FILE REMOVED

file subr_lockdebug.c was added on branch yamt-lazymbuf on 2007-02-26 09:11:14 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Thu Feb 22 06:34:44 2007 UTC (17 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Branch point for: yamt-lazymbuf
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored) to selected 1.60 (colored)

TRUE -> true, FALSE -> false

Revision 1.3 / (download) - annotate - [select for diffs], Wed Feb 21 23:48:15 2007 UTC (17 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored) to selected 1.60 (colored)

Pick up some additional files that were missed before due to conflicts
with newlock2 merge:

Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:31 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.1: +665 -0 lines
Diff to previous 1.1 (colored) to selected 1.60 (colored)

Merge newlock2 to head.

Revision 1.1.2.12 / (download) - annotate - [select for diffs], Tue Feb 6 13:12:12 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.1.2.11: +4 -4 lines
Diff to previous 1.1.2.11 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored) to selected 1.60 (colored)

Revert accidentally commited change.

Revision 1.1.2.11 / (download) - annotate - [select for diffs], Tue Feb 6 13:11:48 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.1.2.10: +4 -4 lines
Diff to previous 1.1.2.10 (colored) to branchpoint 1.1 (colored) to selected 1.60 (colored)

Quieten noisy boot messages.

Revision 1.1.2.10 / (download) - annotate - [select for diffs], Mon Feb 5 13:00:56 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.1.2.9: +123 -48 lines
Diff to previous 1.1.2.9 (colored) to branchpoint 1.1 (colored) to selected 1.60 (colored)

- Dump the contents of a lock's turnstile when an error is detected.
- Add a 'show lock' command to DDB.

Revision 1.1.2.9 / (download) - annotate - [select for diffs], Sun Feb 4 17:29:06 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.1.2.8: +5 -3 lines
Diff to previous 1.1.2.8 (colored) to branchpoint 1.1 (colored) to selected 1.60 (colored)

lockdebug_wantlock(): catch shared->exclusive deadlocks too.

Revision 1.1.2.8 / (download) - annotate - [select for diffs], Sat Feb 3 16:35:30 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.1.2.7: +11 -8 lines
Diff to previous 1.1.2.7 (colored) to branchpoint 1.1 (colored) to selected 1.60 (colored)

Play nicer when the system is panicing/cold.

Revision 1.1.2.7 / (download) - annotate - [select for diffs], Wed Jan 31 13:09:11 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.1.2.6: +37 -5 lines
Diff to previous 1.1.2.6 (colored) to branchpoint 1.1 (colored) to selected 1.60 (colored)

Catch deadlocks earlier.

Revision 1.1.2.6 / (download) - annotate - [select for diffs], Fri Jan 19 14:37:06 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.1.2.5: +9 -16 lines
Diff to previous 1.1.2.5 (colored) to branchpoint 1.1 (colored) to selected 1.60 (colored)

Remove a couple of mostly pointless tests.

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Fri Dec 29 20:27:44 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.1.2.4: +42 -48 lines
Diff to previous 1.1.2.4 (colored) to branchpoint 1.1 (colored) to selected 1.60 (colored)

Checkpoint work in progress.

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:22 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.1.2.3: +8 -15 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored) to selected 1.60 (colored)

Sync with head.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:37 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.1.2.2: +74 -58 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) to selected 1.60 (colored)

Checkpoint work in progress.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Tue Oct 24 19:07:49 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.1.2.1: +5 -5 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) to selected 1.60 (colored)

Compile fixes

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Fri Oct 20 19:34:29 2006 UTC (17 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.1: +557 -0 lines
Diff to previous 1.1 (colored) to selected 1.60 (colored)

Add some LOCKDEBUG code to be shared between mutexes/rwlocks.

Revision 1.1, Fri Oct 20 19:34:29 2006 UTC (17 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, newlock2-nbase, newlock2-base
Branch point for: newlock2
FILE REMOVED

file subr_lockdebug.c was initially added on branch newlock2.

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>