The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.182 / (download) - annotate - [select for diffs], Fri Jul 1 01:07:56 2022 UTC (7 months ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.181: +3 -2 lines
Diff to previous 1.181 (colored)

ktrace(9): Zero-initialize padding for ktr_psig records.

Reported-by: syzbot+03fbfa20e6c7a3919a06@syzkaller.appspotmail.com

Revision 1.181 / (download) - annotate - [select for diffs], Wed Jun 29 22:10:43 2022 UTC (7 months ago) by riastradh
Branch: MAIN
Changes since 1.180: +10 -5 lines
Diff to previous 1.180 (colored)

ktrace(9): Fix mutex detection in ktrcsw.

On _entry_ to sleepq_block, l->l_syncobj is set so that ktrcsw
(ktr_csw) has the opportunity to detect whether it's a mutex or
rwlock.  It is critical to avoid ktealloc when we're sleeping on a
mutex because we may be in softint context where ktealloc is
forbidden.

But after mi_switch, on _exit_ from sleepq_block, l->l_syncobj may
have been changed back to &sched_syncobj or something by
sleepq_remove, and so ktrcsw can no longer rely on l->l_syncobj to
determine whether we _were_ sleeping on a mutex or not.

Instead, save the syncobj in sleepq_block and pass it through as an
argument to ktrcsw.

Reported-by: syzbot+414edba9d161b7502658@syzkaller.appspotmail.com
Reported-by: syzbot+4425c97ac717b12495a2@syzkaller.appspotmail.com
Reported-by: syzbot+5812565b926ee8eb5cf3@syzkaller.appspotmail.com
Reported-by: syzbot+8b9d7b066c32dbcdc63b@syzkaller.appspotmail.com
Reported-by: syzbot+909a8e743c967d97f433@syzkaller.appspotmail.com
Reported-by: syzbot+e2a34bb5509bea0bba11@syzkaller.appspotmail.com
Reported-by: syzbot+faaea3aad6c9d0829f76@syzkaller.appspotmail.com

Revision 1.180 / (download) - annotate - [select for diffs], Mon Jun 27 03:56:37 2022 UTC (7 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.179: +4 -3 lines
Diff to previous 1.179 (colored)

ktrace(9): Make sure ktrkuser initializes the full ktr_id member.

strlcpy does not; strncpy does.  However, the member must be
NUL-terminated, because kdump uses it, e.g., with printf("%s"), so
expicitly set the last byte to NUL.

Possible fix for a host of sanitizer complaints in syzkaller.

Revision 1.179 / (download) - annotate - [select for diffs], Sat Mar 12 17:45:53 2022 UTC (10 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.178: +7 -3 lines
Diff to previous 1.178 (colored)

ktrace(9): Avoid stomping over colliding KTROP_SET.

Reported-by: syzbot+1e2a24aaa5725cab16e1@syzkaller.appspotmail.com
Reported-by: syzbot+3f89dc33fa3020fab1c4@syzkaller.appspotmail.com
Reported-by: syzbot+44898c094ce209759d53@syzkaller.appspotmail.com
Reported-by: syzbot+99826cb4b0494bfbb828@syzkaller.appspotmail.com
Reported-by: syzbot+a7c4752dc308936c48b2@syzkaller.appspotmail.com
Reported-by: syzbot+c062464baf148ed5f192@syzkaller.appspotmail.com
Reported-by: syzbot+dfa19489edc185f94b0a@syzkaller.appspotmail.com
Reported-by: syzbot+e2c4a8195d3ad84342dc@syzkaller.appspotmail.com
Reported-by: syzbot+f31927b2905188fddc22@syzkaller.appspotmail.com

Revision 1.177.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:29:00 2021 UTC (22 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.177: +13 -13 lines
Diff to previous 1.177 (colored) next main 1.178 (colored)

Sync with HEAD.

Revision 1.178 / (download) - annotate - [select for diffs], Sat Feb 27 13:02:42 2021 UTC (23 months ago) by simonb
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.177: +13 -13 lines
Diff to previous 1.177 (colored)

Use "static" in the function intro if the function is static.

Revision 1.177 / (download) - annotate - [select for diffs], Sat May 23 23:42:43 2020 UTC (2 years, 8 months ago) by ad
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.176: +7 -7 lines
Diff to previous 1.176 (colored)

Move proc_lock into the data segment.  It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.

Revision 1.172.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:51 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.172.4.1: +14 -13 lines
Diff to previous 1.172.4.1 (colored) to branchpoint 1.172 (colored) next main 1.173 (colored)

Merge changes from current as of 20200406

Revision 1.176 / (download) - annotate - [select for diffs], Sat Mar 14 18:08:39 2020 UTC (2 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.175: +4 -4 lines
Diff to previous 1.175 (colored)

- Hide the details of SPCF_SHOULDYIELD and related behind a couple of small
  functions: preempt_point() and preempt_needed().

- preempt(): if the LWP has exceeded its timeslice in kernel, strip it of
  any priority boost gained earlier from blocking.

Revision 1.173.6.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:02 2020 UTC (2 years, 11 months ago) by ad
Branch: ad-namecache
Changes since 1.173: +12 -11 lines
Diff to previous 1.173 (colored) next main 1.174 (colored)

Sync with head.

Revision 1.175 / (download) - annotate - [select for diffs], Fri Feb 21 00:26:22 2020 UTC (2 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3
Changes since 1.174: +3 -3 lines
Diff to previous 1.174 (colored)

Explicitly cast pointers to uintptr_t before casting to enums. They are
not necessarily the same size. Don't cast pointers to bool, check for
NULL instead.

Revision 1.174 / (download) - annotate - [select for diffs], Wed Feb 5 09:59:50 2020 UTC (2 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.173: +11 -10 lines
Diff to previous 1.173 (colored)

No functional change:

 - s/vaule/value/ in comment.
 - whitespace fixes.
 - KNF.

Revision 1.172.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:03 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.172: +4 -4 lines
Diff to previous 1.172 (colored)

Sync with HEAD

Revision 1.172.2.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:41 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.172: +4 -4 lines
Diff to previous 1.172 (colored) next main 1.173 (colored)

Sync with HEAD

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

Revision 1.173 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:35 2018 UTC (4 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, 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, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.172: +4 -4 lines
Diff to previous 1.172 (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.161.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:44 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.161.2.1: +48 -53 lines
Diff to previous 1.161.2.1 (colored) to branchpoint 1.161 (colored) next main 1.162 (colored)

update from HEAD

Revision 1.166.2.3 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:07 2017 UTC (5 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.166.2.2: +4 -8 lines
Diff to previous 1.166.2.2 (colored) to branchpoint 1.166 (colored) next main 1.167 (colored)

Sync with HEAD

Revision 1.172 / (download) - annotate - [select for diffs], Mon Aug 28 04:57:11 2017 UTC (5 years, 5 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-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, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.171: +30 -31 lines
Diff to previous 1.171 (colored)

If we go to allocate and find someone else has at the same time, don't
trigger a refcount leak of the other guy's object. From mjg@freebsd.

While here also remove a bogus use of lbolt on the same path.

Revision 1.164.4.2 / (download) - annotate - [select for diffs], Sat Aug 19 05:21:59 2017 UTC (5 years, 5 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.164.4.1: +3 -3 lines
Diff to previous 1.164.4.1 (colored) to branchpoint 1.164 (colored) next main 1.165 (colored)

Pull up following revision(s) (requested by mrg in ticket #1481):
	sys/kern/kern_ktrace.c: 1.171 via patch
Clamp the length we use, not the length we don't.
Avoids uninitialized memory disclosure to userland.
From Ilja Van Sprundel.

Revision 1.164.4.1.6.1 / (download) - annotate - [select for diffs], Sat Aug 19 05:21:57 2017 UTC (5 years, 5 months ago) by snj
Branch: netbsd-7-1
CVS Tags: netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE
Changes since 1.164.4.1: +3 -3 lines
Diff to previous 1.164.4.1 (colored) next main 1.164.4.2 (colored)

Pull up following revision(s) (requested by mrg in ticket #1481):
	sys/kern/kern_ktrace.c: 1.171 via patch
Clamp the length we use, not the length we don't.
Avoids uninitialized memory disclosure to userland.
From Ilja Van Sprundel.

Revision 1.164.4.1.2.1 / (download) - annotate - [select for diffs], Sat Aug 19 05:21:56 2017 UTC (5 years, 5 months ago) by snj
Branch: netbsd-7-0
Changes since 1.164.4.1: +3 -3 lines
Diff to previous 1.164.4.1 (colored) next main 1.164.4.2 (colored)

Pull up following revision(s) (requested by mrg in ticket #1481):
	sys/kern/kern_ktrace.c: 1.171 via patch
Clamp the length we use, not the length we don't.
Avoids uninitialized memory disclosure to userland.
From Ilja Van Sprundel.

Revision 1.160.2.2 / (download) - annotate - [select for diffs], Sat Aug 19 04:24:23 2017 UTC (5 years, 5 months ago) by snj
Branch: netbsd-6
Changes since 1.160.2.1: +3 -3 lines
Diff to previous 1.160.2.1 (colored) to branchpoint 1.160 (colored) next main 1.161 (colored)

Pull up following revision(s) (requested by mrg in ticket #1484):
	sys/kern/kern_ktrace.c: revision 1.171 via patch
Clamp the length we use, not the length we don't.
Avoids uninitialized memory disclosure to userland.
From Ilja Van Sprundel.

Revision 1.160.8.1 / (download) - annotate - [select for diffs], Sat Aug 19 04:24:22 2017 UTC (5 years, 5 months ago) by snj
Branch: netbsd-6-1
Changes since 1.160: +3 -3 lines
Diff to previous 1.160 (colored) next main 1.161 (colored)

Pull up following revision(s) (requested by mrg in ticket #1484):
	sys/kern/kern_ktrace.c: revision 1.171 via patch
Clamp the length we use, not the length we don't.
Avoids uninitialized memory disclosure to userland.
From Ilja Van Sprundel.

Revision 1.160.6.1 / (download) - annotate - [select for diffs], Sat Aug 19 04:24:20 2017 UTC (5 years, 5 months ago) by snj
Branch: netbsd-6-0
Changes since 1.160: +3 -3 lines
Diff to previous 1.160 (colored) next main 1.161 (colored)

Pull up following revision(s) (requested by mrg in ticket #1484):
	sys/kern/kern_ktrace.c: revision 1.171 via patch
Clamp the length we use, not the length we don't.
Avoids uninitialized memory disclosure to userland.
From Ilja Van Sprundel.

Revision 1.170.2.1 / (download) - annotate - [select for diffs], Wed Aug 9 05:14:20 2017 UTC (5 years, 5 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.170: +3 -3 lines
Diff to previous 1.170 (colored) next main 1.171 (colored)

Pull up following revision(s) (requested by spz in ticket #194):
	sys/kern/kern_ktrace.c: revision 1.171
Clamp the length we use, not the length we don't.
Avoids uninitialized memory disclosure to userland.
From Ilja Van Sprundel.

Revision 1.171 / (download) - annotate - [select for diffs], Fri Jul 28 15:16:39 2017 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: nick-nhusb-base-20170825
Changes since 1.170: +3 -3 lines
Diff to previous 1.170 (colored)

Clamp the length we use, not the length we don't.

Avoids uninitialized memory disclosure to userland.

From Ilja Van Sprundel.

Revision 1.170 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:13 2017 UTC (5 years, 8 months ago) by chs
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base
Branch point for: netbsd-8
Changes since 1.169: +3 -7 lines
Diff to previous 1.169 (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.166.2.2 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:02 2016 UTC (6 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.166.2.1: +12 -13 lines
Diff to previous 1.166.2.1 (colored) to branchpoint 1.166 (colored)

Sync with HEAD

Revision 1.169 / (download) - annotate - [select for diffs], Tue Sep 13 07:39:45 2016 UTC (6 years, 4 months ago) by martin
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, nick-nhusb-base-20161004, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.168: +8 -9 lines
Diff to previous 1.168 (colored)

Allow emulations to override the creation of ktrace records for posting
signals. In compat_netbsd32 use this to write the 32bit version of
the records, so a 32bit userland kdump is happy.

Revision 1.168 / (download) - annotate - [select for diffs], Tue Sep 13 07:01:08 2016 UTC (6 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.167: +3 -3 lines
Diff to previous 1.167 (colored)

Make the ktrace record written by do_sys_sendmsg/do_sys_recvmsg overridable
by the caller. Use this in compat_netbsd32 to log the 32bit version, so
the 32bit userland kdump is happy.

Revision 1.166.2.1 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:20 2016 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.166: +9 -9 lines
Diff to previous 1.166 (colored)

Sync with HEAD

Revision 1.167 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:43 2016 UTC (6 years, 6 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20160907
Changes since 1.166: +9 -9 lines
Diff to previous 1.166 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.160.2.1 / (download) - annotate - [select for diffs], Sun Dec 7 15:09:31 2014 UTC (8 years, 1 month ago) by martin
Branch: netbsd-6
Changes since 1.160: +5 -4 lines
Diff to previous 1.160 (colored)

Pull up following revision(s) (requested by ozaki-r in ticket #1201):
	sys/kern/kern_ktrace.c: revision 1.166
	sys/dev/isa/aps.c: revision 1.16
	sys/dev/sysmon/sysmonvar.h: revision 1.45
	sys/dev/ir/irframe_tty.c: revision 1.60
	sys/dev/sysmon/sysmon_envsys_events.c: revision 1.111-1.112 (patch)
	sys/dev/pci/pccbb.c: revision 1.207
	sys/dev/wscons/wskbd.c: revision 1.135
	sys/dev/usb/ohci.c: revision 1.254
	sys/net/if_ecosubr.c: revision 1.41
	sys/dev/pcmcia/btbc.c: revision 1.17
	sys/arch/x86/x86/via_padlock.c: revision 1.23
	sys/dev/sdmmc/sdmmc.c: revision 1.23 (patch)
	sys/dev/bluetooth/btkbd.c: revision 1.17
	sys/dev/bluetooth/bcsp.c: revision 1.25
	sys/arch/x86/pci/fwhrng.c: revision 1.8
	sys/dev/ic/nslm7x.c: revision 1.61
	share/man/man9/callout.9: revision 1.28 (patch)

Replace callout_stop with callout_halt and ensure the callout
is not running before destroying it.

Revision 1.164.4.1 / (download) - annotate - [select for diffs], Mon Dec 1 11:38:42 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-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, 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
Branch point for: netbsd-7-1, netbsd-7-0
Changes since 1.164: +5 -4 lines
Diff to previous 1.164 (colored)

Pull up following revision(s) (requested by ozaki-r in ticket #279):
	sys/kern/kern_ktrace.c: revision 1.166
	sys/dev/isa/aps.c: revision 1.16
	sys/dev/sysmon/sysmonvar.h: revision 1.45
	sys/dev/ir/irframe_tty.c: revision 1.60
	sys/dev/sysmon/sysmon_envsys_events.c: revision 1.111
	sys/dev/sysmon/sysmon_envsys_events.c: revision 1.112
	sys/dev/pci/pccbb.c: revision 1.207
	sys/dev/wscons/wskbd.c: revision 1.135
	sys/dev/usb/ohci.c: revision 1.254
	sys/net/if_ecosubr.c: revision 1.41
	sys/dev/pcmcia/btbc.c: revision 1.17
	sys/arch/x86/x86/via_padlock.c: revision 1.23
	sys/dev/sdmmc/sdmmc.c: revision 1.23
	sys/dev/bluetooth/btkbd.c: revision 1.17
	sys/dev/bluetooth/bcsp.c: revision 1.25
	sys/arch/x86/pci/fwhrng.c: revision 1.8
	sys/dev/ic/nslm7x.c: revision 1.61
	share/man/man9/callout.9: revision 1.28
Replace callout_stop with callout_halt
In order to call callout_destroy for a callout safely, we have to ensure
the function of the callout is not running and pending. To do so, we should
use callout_halt, not callout_stop.
Discussed with martin@ and riastradh@.
Make it clear that we should use not callout_stop but callout_halt
before callout_destroy
Replace callout_stop with callout_halt
In order to call callout_destroy for a callout safely, we have to ensure
the function of the callout is not running and pending. To do so, we should
use callout_halt, not callout_stop.
In this case, we need to pass an interlock to callout_halt to wait for
the callout complete.
Reviewed by riastradh@.
Kill sme_callout_mtx and use sme_mtx instead
We can use sme_mtx for the callout as well. Actually we should do so
because sme_events_list and some other data that are touched in the
callout should be protected by sme_mtx, not sme_callout_mtx.
Discussed with riastradh@ in
http://mail-index.netbsd.org/tech-kern/2014/11/11/msg017956.html
Replace callout_stop with callout_halt
In order to call callout_destroy for a callout safely, we have to ensure
the function of the callout is not running and pending. To do so, we should
use callout_halt, not callout_stop.
In this case, we need to pass an interlock to callout_halt to wait for
the callout complete. And also we make sure that SME_CALLOUT_INITIALIZED
is unset before calling callout_halt to prevent the callout from calling
callout_schedule. This is the same as what we did in sys/netinet6/mld6.c@1.61.
Reviewed by riastradh@.

Revision 1.166 / (download) - annotate - [select for diffs], Fri Nov 21 09:40:10 2014 UTC (8 years, 2 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.165: +5 -4 lines
Diff to previous 1.165 (colored)

Replace callout_stop with callout_halt

In order to call callout_destroy for a callout safely, we have to ensure
the function of the callout is not running and pending. To do so, we should
use callout_halt, not callout_stop.

In this case, we need to pass an interlock to callout_halt to wait for
the callout complete.

Reviewed by riastradh@.

Revision 1.165 / (download) - annotate - [select for diffs], Sun Sep 21 17:17:15 2014 UTC (8 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.164: +3 -3 lines
Diff to previous 1.164 (colored)

remove casts to the same type.

Revision 1.161.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:29 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.161: +3 -94 lines
Diff to previous 1.161 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.158.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:41:03 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.158.2.1: +3 -94 lines
Diff to previous 1.158.2.1 (colored) to branchpoint 1.158 (colored) next main 1.159 (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.161.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:07 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.161: +3 -94 lines
Diff to previous 1.161 (colored) next main 1.162 (colored)

sync with head

Revision 1.164 / (download) - annotate - [select for diffs], Mon Dec 9 16:45:23 2013 UTC (9 years, 1 month ago) by pooka
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-base
Branch point for: netbsd-7
Changes since 1.163: +2 -91 lines
Diff to previous 1.163 (colored)

Put vfs bits of ktrace into kern_ktrace_vfs.c per convention.

Revision 1.163 / (download) - annotate - [select for diffs], Mon Sep 16 09:25:56 2013 UTC (9 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.162: +3 -3 lines
Diff to previous 1.162 (colored)

Fix inverted ktrop() return value - oops!
Noted by Nicolas Joly.

Revision 1.162 / (download) - annotate - [select for diffs], Sat Sep 14 20:20:09 2013 UTC (9 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.161: +3 -5 lines
Diff to previous 1.161 (colored)

ktrop() seems to be expected [by it's callers] to return a "bool like"
value, not an errno - make it so.
Remove another unused variable.

Revision 1.158.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:24 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.158: +14 -56 lines
Diff to previous 1.158 (colored)

sync with head

Revision 1.159.2.2 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:45 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.159.2.1: +2 -41 lines
Diff to previous 1.159.2.1 (colored) to branchpoint 1.159 (colored) next main 1.160 (colored)

sync to -current.

Revision 1.161 / (download) - annotate - [select for diffs], Sun Feb 19 21:06:51 2012 UTC (10 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.160: +2 -41 lines
Diff to previous 1.160 (colored)

Remove COMPAT_SA / KERN_SA.  Welcome to 6.99.3!
Approved by core@.

Revision 1.159.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:29 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.159: +12 -15 lines
Diff to previous 1.159 (colored)

merge to -current.

Revision 1.160 / (download) - annotate - [select for diffs], Fri Dec 30 20:33:04 2011 UTC (11 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: 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-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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base2
Branch point for: netbsd-6-1, netbsd-6-0, netbsd-6
Changes since 1.159: +12 -15 lines
Diff to previous 1.159 (colored)

Avoid panic on DIAGNOSTIC kernels with ktrace -p <not-existing-process>
The old logic was:

	error = ktrace_common(, fp);
	if (fp)
		if (error)
			fd_abort(, fp, );
		else
			fd_abort(, NULL, );

The 'if (fp)' portion really means if the op is not KTROP_CLEAR,
since the logic above always sets up fp otherwise, so change the
code to test this directly.

ktrace_common() can return an error both on the kernel thread
creation failure, which means that we should be calling fd_abort()
with fp, since nobody used the file yet and we should clear it now.
But it can also return an error because later, after the thread
creation if the process or process group was not found. In this
second case, we should be calling fd_abort with NULL, since the fp
is now used by the thread and it is going to clean it later. So
instead of checking the error from ktrace_common() to decide if we
are going to call fd_abort() with a NULL fp or not, let krace_common()
decide for us.  So the new logic becomes:

	error = ktrace_common(, &fp);
	if (op != KTROP_CLEAR)
		fd_abort(, fp, );

Since I am here, fix a freed memory access, by setting ktd to FALSE.

Revision 1.159 / (download) - annotate - [select for diffs], Wed Nov 30 10:27:46 2011 UTC (11 years, 2 months ago) by mbalmer
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.158: +4 -4 lines
Diff to previous 1.158 (colored)

Only return values when there was no error.

Revision 1.158 / (download) - annotate - [select for diffs], Thu Sep 1 18:24:19 2011 UTC (11 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.157: +3 -3 lines
Diff to previous 1.157 (colored)

Always make sure that kte_entry is aligned appropriately so register_t can
be stored there.  (not really a problem right now since time_t is now 64bit
bit and it just works but it's better to be explicit).

Revision 1.156.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:19 2011 UTC (11 years, 7 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.156: +21 -2 lines
Diff to previous 1.156 (colored) next main 1.157 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.151.2.4 / (download) - annotate - [select for diffs], Sun Jun 12 00:24:29 2011 UTC (11 years, 7 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.151.2.3: +19 -0 lines
Diff to previous 1.151.2.3 (colored) to branchpoint 1.151 (colored) next main 1.152 (colored)

sync with head

Revision 1.155.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:29 2011 UTC (11 years, 8 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.155: +21 -35 lines
Diff to previous 1.155 (colored) next main 1.156 (colored)

Sync with HEAD.

Revision 1.157 / (download) - annotate - [select for diffs], Wed Jun 1 21:25:00 2011 UTC (11 years, 8 months ago) by alnsn
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Changes since 1.156: +21 -2 lines
Diff to previous 1.156 (colored)

kern/42030 - tracking of file descriptors by ktrace/kdump

Revision 1.151.2.3 / (download) - annotate - [select for diffs], Tue May 31 03:05:01 2011 UTC (11 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.151.2.2: +0 -33 lines
Diff to previous 1.151.2.2 (colored) to branchpoint 1.151 (colored)

sync with head

Revision 1.156 / (download) - annotate - [select for diffs], Wed Apr 27 00:00:46 2011 UTC (11 years, 9 months ago) by joerg
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.155: +2 -35 lines
Diff to previous 1.155 (colored)

Remove Mach specific trace points.

Revision 1.151.2.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:14 2011 UTC (11 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.151.2.1: +13 -27 lines
Diff to previous 1.151.2.1 (colored) to branchpoint 1.151 (colored)

sync with head

Revision 1.155 / (download) - annotate - [select for diffs], Fri Nov 19 06:44:42 2010 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.154: +11 -3 lines
Diff to previous 1.154 (colored)

Introduce struct pathbuf. This is an abstraction to hold a pathname
and the metadata required to interpret it. Callers of namei must now
create a pathbuf and pass it to NDINIT (instead of a string and a
uio_seg), then destroy the pathbuf after the namei session is
complete.

Update all namei call sites accordingly. Add a pathbuf(9) man page and
update namei(9).

The pathbuf interface also now appears in a couple of related
additional places that were passing string/uio_seg pairs that were
later fed into NDINIT. Update other call sites accordingly.

Revision 1.150.2.3 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:26 2010 UTC (12 years, 3 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.150.2.2: +2 -24 lines
Diff to previous 1.150.2.2 (colored) to branchpoint 1.150 (colored) next main 1.151 (colored)

Sync with HEAD (-D20101022).

Revision 1.154 / (download) - annotate - [select for diffs], Mon Oct 18 00:09:13 2010 UTC (12 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: uebayasi-xip-base4, uebayasi-xip-base3
Changes since 1.153: +4 -26 lines
Diff to previous 1.153 (colored)

when using ktrace format version 0 or 1, don't adjust the changed fields
in ktealloc(), since we do the same adjustment later in ktrwrite().
also, remove an unused variable in ktr_csw().

Revision 1.150.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:27 2010 UTC (12 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.150.2.1: +3 -3 lines
Diff to previous 1.150.2.1 (colored) to branchpoint 1.150 (colored)

Sync with HEAD.

Revision 1.142.2.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:39 2010 UTC (12 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.142.2.4: +5 -5 lines
Diff to previous 1.142.2.4 (colored) to branchpoint 1.142 (colored) next main 1.143 (colored)

sync with head.

Revision 1.151.2.1 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:53 2010 UTC (12 years, 7 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.151: +5 -5 lines
Diff to previous 1.151 (colored)

sync with head

Revision 1.153 / (download) - annotate - [select for diffs], Thu Jul 1 02:38:30 2010 UTC (12 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base2
Changes since 1.152: +4 -4 lines
Diff to previous 1.152 (colored)

Remove pfind() and pgfind(), fix locking in various broken uses of these.
Rename real routines to proc_find() and pgrp_find(), remove PFIND_* flags
and have consistent behaviour.  Provide proc_find_raw() for special cases.
Fix memory leak in sysctl_proc_corename().

COMPAT_LINUX: rework ptrace() locking, minimise differences between
different versions per-arch.

Note: while this change adds some formal cosmetics for COMPAT_DARWIN and
COMPAT_IRIX - locking there is utterly broken (for ages).

Fixes PR/43176.

Revision 1.152 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:11 2010 UTC (12 years, 7 months ago) by hannken
Branch: MAIN
Changes since 1.151: +3 -3 lines
Diff to previous 1.151 (colored)

Clean up vnode lock operations pass 2:

VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.

Revision 1.150.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:09 2010 UTC (12 years, 9 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.150: +3 -3 lines
Diff to previous 1.150 (colored)

Sync with HEAD.

Revision 1.147.10.2 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:16 2010 UTC (12 years, 9 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.147.10.1: +4 -3 lines
Diff to previous 1.147.10.1 (colored) to branchpoint 1.147 (colored) next main 1.148 (colored)

sync to netbsd-5

Revision 1.147.10.1 / (download) - annotate - [select for diffs], Tue Mar 16 16:08:29 2010 UTC (12 years, 10 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.147: +3 -3 lines
Diff to previous 1.147 (colored)

Make sure kte_space has at least enough alignment to store a register_t.

Revision 1.142.2.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:16 2010 UTC (12 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.142.2.3: +41 -3 lines
Diff to previous 1.142.2.3 (colored) to branchpoint 1.142 (colored)

sync with head

Revision 1.151 / (download) - annotate - [select for diffs], Wed Mar 3 00:47:30 2010 UTC (12 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.150: +3 -3 lines
Diff to previous 1.150 (colored)

remove redundant checks of PK_MARKER.

Revision 1.150 / (download) - annotate - [select for diffs], Fri Oct 2 21:47:35 2009 UTC (13 years, 4 months ago) by elad
Branch: MAIN
CVS Tags: uebayasi-xip-base, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: uebayasi-xip
Changes since 1.149: +40 -2 lines
Diff to previous 1.149 (colored)

Move ktrace's subsystem security policy to the subsystem itself, and keep
just the suser-related logic in the suser secmodel.

Revision 1.147.4.1 / (download) - annotate - [select for diffs], Sat Sep 5 11:37:21 2009 UTC (13 years, 5 months ago) by bouyer
Branch: netbsd-5
CVS Tags: 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, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.147: +4 -3 lines
Diff to previous 1.147 (colored) next main 1.148 (colored)

Pull up following revision(s) (requested by dsl in ticket #901):
	sys/kern/kern_ktrace.c: revision 1.149
Fix ktrace of data from iovec based system calls.
Fixes PR/41819

Revision 1.142.2.3 / (download) - annotate - [select for diffs], Wed Aug 19 18:48:16 2009 UTC (13 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.142.2.2: +4 -3 lines
Diff to previous 1.142.2.2 (colored) to branchpoint 1.142 (colored)

sync with head.

Revision 1.149 / (download) - annotate - [select for diffs], Wed Aug 5 19:53:42 2009 UTC (13 years, 6 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Changes since 1.148: +4 -3 lines
Diff to previous 1.148 (colored)

Fix ktrace of data from iovec based system calls.
Fixes PR/41819

Revision 1.142.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:46 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.142.2.1: +115 -51 lines
Diff to previous 1.142.2.1 (colored) to branchpoint 1.142 (colored)

sync with head.

Revision 1.147.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:38 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.147: +67 -44 lines
Diff to previous 1.147 (colored) next main 1.148 (colored)

Sync with HEAD.

Revision 1.138.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:18 2009 UTC (14 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.138.6.3: +104 -42 lines
Diff to previous 1.138.6.3 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored)

Sync with HEAD.

Revision 1.148 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:52 2009 UTC (14 years ago) by christos
Branch: MAIN
CVS Tags: 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
Changes since 1.147: +67 -44 lines
Diff to previous 1.147 (colored)

merge christos-time_t

Revision 1.140.2.2 / (download) - annotate - [select for diffs], Sat Nov 1 21:22:27 2008 UTC (14 years, 3 months ago) by christos
Branch: christos-time_t
Changes since 1.140.2.1: +61 -27 lines
Diff to previous 1.140.2.1 (colored) to branchpoint 1.140 (colored) next main 1.141 (colored)

Sync with head.

Revision 1.146.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:27 2008 UTC (14 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.146: +41 -2 lines
Diff to previous 1.146 (colored) next main 1.147 (colored)

Sync with HEAD.

Revision 1.147 / (download) - annotate - [select for diffs], Wed Oct 15 06:51:20 2008 UTC (14 years, 3 months ago) by wrstuden
Branch: MAIN
CVS Tags: netbsd-5-base, 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, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, christos-time_t-nbase, christos-time_t-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-mips64
Changes since 1.146: +41 -2 lines
Diff to previous 1.146 (colored)

Merge wrstuden-revivesa into HEAD.

Revision 1.144.2.6 / (download) - annotate - [select for diffs], Sat Jun 28 22:38:44 2008 UTC (14 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.144.2.5: +3 -3 lines
Diff to previous 1.144.2.5 (colored) to branchpoint 1.144 (colored) next main 1.145 (colored)

Fix up ktracing of upcalls. ktrace of an SA process now works.

Revision 1.144.2.5 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:50 2008 UTC (14 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.144.2.4: +11 -9 lines
Diff to previous 1.144.2.4 (colored) to branchpoint 1.144 (colored)

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

Revision 1.138.6.3 / (download) - annotate - [select for diffs], Thu Jun 5 19:14:36 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.138.6.2: +3 -0 lines
Diff to previous 1.138.6.2 (colored) to branchpoint 1.138 (colored)

Sync with HEAD.

Also fix build.

Revision 1.140.4.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:39 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.140.4.1: +11 -9 lines
Diff to previous 1.140.4.1 (colored) to branchpoint 1.140 (colored) next main 1.141 (colored)

sync with head

Revision 1.146 / (download) - annotate - [select for diffs], Tue Jun 3 05:53:09 2008 UTC (14 years, 8 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl
Branch point for: haad-dm
Changes since 1.145: +5 -2 lines
Diff to previous 1.145 (colored)

Before freeing a ktr_desc, destroy its condition variables.

Revision 1.138.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:08 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.138.6.1: +17 -25 lines
Diff to previous 1.138.6.1 (colored) to branchpoint 1.138 (colored)

Sync with HEAD.

Revision 1.145 / (download) - annotate - [select for diffs], Tue May 27 17:48:27 2008 UTC (14 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.144: +8 -9 lines
Diff to previous 1.144 (colored)

Use pool_cache.

Revision 1.144.2.4 / (download) - annotate - [select for diffs], Tue May 27 00:37:20 2008 UTC (14 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.144.2.3: +6 -6 lines
Diff to previous 1.144.2.3 (colored) to branchpoint 1.144 (colored)

Pull in the fix for PR/37534.

Revision 1.144.2.3 / (download) - annotate - [select for diffs], Tue May 27 00:14:43 2008 UTC (14 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.144.2.2: +41 -2 lines
Diff to previous 1.144.2.2 (colored) to branchpoint 1.144 (colored)

Re-merge ktrace upcall hooks. Still needs changes for PR 37534.

Revision 1.140.4.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:08 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.140: +13 -20 lines
Diff to previous 1.140 (colored)

sync with head.

Revision 1.142.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:25 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.142: +3 -10 lines
Diff to previous 1.142 (colored)

sync with head.

Revision 1.144.2.2 / (download) - annotate - [select for diffs], Wed May 14 01:35:13 2008 UTC (14 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.144.2.1: +2 -3 lines
Diff to previous 1.144.2.1 (colored) to branchpoint 1.144 (colored)

Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.

Revision 1.144.2.1 / (download) - annotate - [select for diffs], Sat May 10 23:49:03 2008 UTC (14 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.144: +3 -2 lines
Diff to previous 1.144 (colored)

Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.

Revision 1.144 / (download) - annotate - [select for diffs], Tue Apr 29 15:55:24 2008 UTC (14 years, 9 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.143: +3 -3 lines
Diff to previous 1.143 (colored)

Ignore processes with PK_MARKER set.

Revision 1.143 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:03 2008 UTC (14 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.142: +2 -9 lines
Diff to previous 1.142 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.142 / (download) - annotate - [select for diffs], Thu Apr 24 18:39:24 2008 UTC (14 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.141: +7 -7 lines
Diff to previous 1.141 (colored)

Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.

Revision 1.141 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:29 2008 UTC (14 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.140: +7 -7 lines
Diff to previous 1.140 (colored)

Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.

Revision 1.112.2.1 / (download) - annotate - [select for diffs], Fri Apr 11 06:35:02 2008 UTC (14 years, 9 months ago) by jdc
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.112: +6 -6 lines
Diff to previous 1.112 (colored) next main 1.113 (colored)

Pull up revisions:
  src/sys/kern/kern_ktrace.c	1.112.4.1
  src/sys/kern/kern_sa.c	1.87.4.9
  src/sys/sys/ktrace.h		1.45.4.1
from [wrstuden-fixsa] (requested by skrll in ticket #1121).

Pass an array pointers in kernel VM space to ktrsaupcall for it to
create the ktrace record instead of trying to access a pointer in
userland.

Fixes PR/37534.

Revision 1.138.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:01 2008 UTC (14 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.138: +43 -54 lines
Diff to previous 1.138 (colored)

Sync with HEAD.

Revision 1.140.2.1 / (download) - annotate - [select for diffs], Sat Mar 29 20:47:00 2008 UTC (14 years, 10 months ago) by christos
Branch: christos-time_t
Changes since 1.140: +67 -44 lines
Diff to previous 1.140 (colored)

Welcome to the time_t=long long dev_t=uint64_t branch.

Revision 1.97.2.11 / (download) - annotate - [select for diffs], Mon Mar 24 09:39:01 2008 UTC (14 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97.2.10: +41 -54 lines
Diff to previous 1.97.2.10 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored)

sync with head.

Revision 1.138.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:13 2008 UTC (14 years, 10 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.138: +4 -2 lines
Diff to previous 1.138 (colored) next main 1.139 (colored)

sync with head.

Revision 1.126.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:59 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.126.2.2: +18 -25 lines
Diff to previous 1.126.2.2 (colored) to branchpoint 1.126 (colored) next main 1.127 (colored)

sync with HEAD

Revision 1.140 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:00 2008 UTC (14 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-pf42, christos-time_t
Changes since 1.139: +41 -54 lines
Diff to previous 1.139 (colored)

Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.97.2.10 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:55 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97.2.9: +4 -2 lines
Diff to previous 1.97.2.9 (colored) to branchpoint 1.97 (colored)

sync with head.

Revision 1.139 / (download) - annotate - [select for diffs], Sun Feb 24 18:30:07 2008 UTC (14 years, 11 months ago) by dsl
Branch: MAIN
CVS Tags: matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-base
Changes since 1.138: +4 -2 lines
Diff to previous 1.138 (colored)

Set p->p_trace_enabled in fork and whenever the controlling falgs change
instead of doing it in syscall_intern().
Note that syscall_intern() must still be called when the flags change
since many ports use a different copy of the syscall entry code when
tracing is enabled.

Revision 1.128.4.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:45 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.128.4.2: +22 -36 lines
Diff to previous 1.128.4.2 (colored) to branchpoint 1.128 (colored) next main 1.129 (colored)

Sync with HEAD.

Revision 1.97.2.9 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:58 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97.2.8: +7 -17 lines
Diff to previous 1.97.2.8 (colored) to branchpoint 1.97 (colored)

sync with head.

Revision 1.138 / (download) - annotate - [select for diffs], Wed Feb 6 22:12:41 2008 UTC (14 years, 11 months ago) by dsl
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.137: +7 -17 lines
Diff to previous 1.137 (colored)

Remove the 'args' parameter to 'trace_exit()' it is no longer used.
Instead of passing the (un)real system call code and syscall table pointer,
just pass the number of arguments - which is what ktrace really wants.
Ride forthcoming 4.99.53

Revision 1.97.2.8 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:12 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97.2.7: +11 -10 lines
Diff to previous 1.97.2.7 (colored) to branchpoint 1.97 (colored)

sync with head.

Revision 1.137 / (download) - annotate - [select for diffs], Sat Feb 2 21:04:41 2008 UTC (15 years ago) by elad
Branch: MAIN
Changes since 1.136: +5 -4 lines
Diff to previous 1.136 (colored)

Add, document, and use KAUTH_REQ_PROCESS_KTRACE_PERSISTENT.

Revision 1.136 / (download) - annotate - [select for diffs], Sat Feb 2 20:42:18 2008 UTC (15 years ago) by elad
Branch: MAIN
Changes since 1.135: +7 -7 lines
Diff to previous 1.135 (colored)

KTRFAC_ROOT -> KTRFAC_PERSISTENT, and update comments.

Discussed with christos@ and yamt@.

Revision 1.130.4.3 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:39 2008 UTC (15 years ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.130.4.2: +1 -1 lines
Diff to previous 1.130.4.2 (colored) to branchpoint 1.130 (colored) next main 1.131 (colored)

Sync with HEAD.

Revision 1.135 / (download) - annotate - [select for diffs], Wed Jan 23 17:56:53 2008 UTC (15 years ago) by elad
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored)

Forgot to commit these two as well. Spotted by hannken@.

Adapt to "CAN" removal.

Revision 1.97.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:05 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97.2.6: +19 -25 lines
Diff to previous 1.97.2.6 (colored) to branchpoint 1.97 (colored)

sync with head

Revision 1.126.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:03 2008 UTC (15 years ago) by matt
Branch: matt-armv6
Changes since 1.126.2.1: +21 -31 lines
Diff to previous 1.126.2.1 (colored) to branchpoint 1.126 (colored)

sync with HEAD

Revision 1.130.4.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:33 2008 UTC (15 years ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.130.4.1: +4 -4 lines
Diff to previous 1.130.4.1 (colored) to branchpoint 1.130 (colored)

Sync with HEAD

Revision 1.134 / (download) - annotate - [select for diffs], Sat Jan 5 19:08:50 2008 UTC (15 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-base
Changes since 1.133: +6 -6 lines
Diff to previous 1.133 (colored)

Use FILE_LOCK() and FILE_UNLOCK()

Revision 1.112.4.1 / (download) - annotate - [select for diffs], Fri Jan 4 11:40:45 2008 UTC (15 years, 1 month ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.112: +6 -6 lines
Diff to previous 1.112 (colored) next main 1.113 (colored)

Pass an array pointers in kernel VM space to ktrsaupcall for it to
create the ktrace record instead of trying to access a pointer in
userland.

Fixes PR/37534.

Revision 1.130.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:51 2008 UTC (15 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.130: +14 -19 lines
Diff to previous 1.130 (colored)

Sync with HEAD

Revision 1.133 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:50 2008 UTC (15 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.132: +4 -9 lines
Diff to previous 1.132 (colored)

Merge vmlocking2 to head.

Revision 1.128.4.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:59 2007 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.128.4.1: +13 -14 lines
Diff to previous 1.128.4.1 (colored) to branchpoint 1.128 (colored)

Sync with HEAD.

Revision 1.128.6.3 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:39 2007 UTC (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.128.6.2: +13 -14 lines
Diff to previous 1.128.6.2 (colored) to branchpoint 1.128 (colored) next main 1.129 (colored)

Sync with head.

Revision 1.132 / (download) - annotate - [select for diffs], Sat Dec 22 11:38:54 2007 UTC (15 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.131: +3 -3 lines
Diff to previous 1.131 (colored)

Add a few buckets of 'const' and 'static' to the system call trace code.
sys_trace() still needs to be able to update the syscall args.

Revision 1.131 / (download) - annotate - [select for diffs], Thu Dec 20 23:03:08 2007 UTC (15 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.130: +11 -11 lines
Diff to previous 1.130 (colored)

Convert all the system call entry points from:
    int foo(struct lwp *l, void *v, register_t *retval)
to:
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.

Revision 1.124.6.4 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:16 2007 UTC (15 years, 1 month ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.124.6.3: +5 -10 lines
Diff to previous 1.124.6.3 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored)

Sync with HEAD.

Revision 1.130 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:48 2007 UTC (15 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.129: +3 -4 lines
Diff to previous 1.129 (colored)

Remove cn_lwp from struct componentname.  curlwp should be used
from on.  The NDINIT() macro no longer takes the lwp parameter and
associates the credentials of the calling thread with the namei
structure.

Revision 1.128.4.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:28 2007 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.128: +4 -8 lines
Diff to previous 1.128 (colored)

Sync with HEAD.

Revision 1.128.6.2 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:40 2007 UTC (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.128.6.1: +2 -2 lines
Diff to previous 1.128.6.1 (colored) to branchpoint 1.128 (colored)

Sync with head.

Revision 1.97.2.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:32:42 2007 UTC (15 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97.2.5: +4 -8 lines
Diff to previous 1.97.2.5 (colored) to branchpoint 1.97 (colored)

sync with head

Revision 1.128.6.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:13 2007 UTC (15 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.128: +6 -15 lines
Diff to previous 1.128 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.129 / (download) - annotate - [select for diffs], Tue Dec 4 09:08:58 2007 UTC (15 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base
Changes since 1.128: +4 -8 lines
Diff to previous 1.128 (colored)

ktd_callout: ktrace_lock can be acquired now.

Revision 1.126.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:31:37 2007 UTC (15 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.126: +6 -6 lines
Diff to previous 1.126 (colored)

sync with HEAD

Revision 1.97.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:23 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97.2.4: +6 -6 lines
Diff to previous 1.97.2.4 (colored) to branchpoint 1.97 (colored)

sync with head.

Revision 1.124.6.3 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:31 2007 UTC (15 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.124.6.2: +6 -6 lines
Diff to previous 1.124.6.2 (colored) to branchpoint 1.124 (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.126.4.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:40 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.126: +6 -6 lines
Diff to previous 1.126 (colored) next main 1.127 (colored)

sync with head.

Revision 1.119.2.11 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:25 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.119.2.10: +4 -7 lines
Diff to previous 1.119.2.10 (colored) next main 1.120 (colored)

Sync with head.

Revision 1.128 / (download) - annotate - [select for diffs], Mon Oct 8 15:13:12 2007 UTC (15 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking2-base1, vmlocking-nbase, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs
Changes since 1.127: +3 -3 lines
Diff to previous 1.127 (colored)

Fix merge error.

Revision 1.127 / (download) - annotate - [select for diffs], Mon Oct 8 15:12:07 2007 UTC (15 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.126: +7 -7 lines
Diff to previous 1.126 (colored)

Merge file descriptor locking, cwdi locking and cross-call changes
from the vmlocking branch.

Revision 1.124.6.2 / (download) - annotate - [select for diffs], Mon Sep 3 16:48:47 2007 UTC (15 years, 5 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.124.6.1: +4 -7 lines
Diff to previous 1.124.6.1 (colored) to branchpoint 1.124 (colored)

Sync with HEAD.

Revision 1.97.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:48 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97.2.3: +319 -136 lines
Diff to previous 1.97.2.3 (colored) to branchpoint 1.97 (colored)

sync with head.

Revision 1.124.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:22:59 2007 UTC (15 years, 5 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.124: +247 -107 lines
Diff to previous 1.124 (colored) next main 1.125 (colored)

Sync with HEAD.

Revision 1.126 / (download) - annotate - [select for diffs], Mon Aug 27 13:33:45 2007 UTC (15 years, 5 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5
Branch point for: yamt-x86pmap, matt-armv6
Changes since 1.125: +4 -7 lines
Diff to previous 1.125 (colored)

Fix inverted test in ktrpoint(), NAMI traces weren't being generated.
Also inline the 'ktrace_on' part of the test.

Revision 1.119.2.10 / (download) - annotate - [select for diffs], Mon Aug 20 21:27:30 2007 UTC (15 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.119.2.9: +252 -109 lines
Diff to previous 1.119.2.9 (colored)

Sync with HEAD.

Revision 1.124.6.1 / (download) - annotate - [select for diffs], Thu Aug 16 11:03:31 2007 UTC (15 years, 5 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.124: +250 -107 lines
Diff to previous 1.124 (colored)

Sync with HEAD.

Revision 1.125 / (download) - annotate - [select for diffs], Wed Aug 15 12:07:33 2007 UTC (15 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.124: +250 -107 lines
Diff to previous 1.124 (colored)

Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed
on tech-kern.

Revision 1.120.2.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:49 2007 UTC (15 years, 6 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.120: +70 -27 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

Sync with head.

Revision 1.124 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:52 2007 UTC (15 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Changes since 1.123: +11 -10 lines
Diff to previous 1.123 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.119.2.9 / (download) - annotate - [select for diffs], Sun Jul 1 21:44:58 2007 UTC (15 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.119.2.8: +9 -8 lines
Diff to previous 1.119.2.8 (colored)

- Adapt to callout API change.
- It's now OK to acquire ktrace_mutex from the callout.

Revision 1.119.2.8 / (download) - annotate - [select for diffs], Sat Jun 9 23:58:04 2007 UTC (15 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.119.2.7: +23 -2 lines
Diff to previous 1.119.2.7 (colored)

Sync with head.

Revision 1.119.2.7 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:19 2007 UTC (15 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.119.2.6: +18 -7 lines
Diff to previous 1.119.2.6 (colored)

Sync with head.

Revision 1.123 / (download) - annotate - [select for diffs], Fri Jun 1 20:24:21 2007 UTC (15 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.122: +23 -2 lines
Diff to previous 1.122 (colored)

Add a ktrkuser() function that can be used to generate a KTR_USER trace
entry from kernel-resident data.
Mainly so I can (ab)use the KTR_USER entry for extra info.

Revision 1.119.2.6 / (download) - annotate - [select for diffs], Sun May 13 17:36:34 2007 UTC (15 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.119.2.5: +4 -4 lines
Diff to previous 1.119.2.5 (colored)

- Pass the error number and residual count to biodone(), and let it handle
  setting error indicators. Prepare to eliminate B_ERROR.
- Add a flag argument to brelse() to be set into the buf's flags, instead
  of doing it directly. Typically used to set B_INVAL.
- Add a "struct cpu_info *" argument to kthread_create(), to be used to
  create bound threads. Change "bool mpsafe" to "int flags".
- Allow exit of LWPs in the IDL state when (l != curlwp).
- More locking fixes & conversion to the new API.

Revision 1.114.2.5 / (download) - annotate - [select for diffs], Mon May 7 10:55:46 2007 UTC (15 years, 9 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.114.2.4: +18 -7 lines
Diff to previous 1.114.2.4 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored)

sync with head.

Revision 1.122 / (download) - annotate - [select for diffs], Thu Apr 26 16:27:32 2007 UTC (15 years, 9 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.121: +18 -7 lines
Diff to previous 1.121 (colored)

Move the ktrace (and systrace) in namei() inside the retry loop for
emulation lookups.
If doing a lookup relative to the emulation root, prepend the emulation root
to the traced filename.
While here pass the filename length through to the ktrace code since namei()
knows the length and ktr_namei() would have to call strlen().
Note: that if namei() is being called during execve processing, the emulation
root name isn't available and "/emul/???" is used.  Also namei() has to use
strlen() to get the lenght on the emulatoon root - even though it is a
compile-time constant string.

Revision 1.114.2.4 / (download) - annotate - [select for diffs], Sun Apr 15 16:03:49 2007 UTC (15 years, 9 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.114.2.3: +24 -14 lines
Diff to previous 1.114.2.3 (colored) to branchpoint 1.114 (colored)

sync with head.

Revision 1.119.2.5 / (download) - annotate - [select for diffs], Tue Apr 10 13:26:38 2007 UTC (15 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.119.2.4: +21 -11 lines
Diff to previous 1.119.2.4 (colored)

Sync with head.

Revision 1.119.2.4 / (download) - annotate - [select for diffs], Tue Apr 10 12:07:13 2007 UTC (15 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.119.2.3: +3 -3 lines
Diff to previous 1.119.2.3 (colored)

Nuke the deferred kthread creation stuff, as it's no longer needed.
Pointed out by thorpej@.

Revision 1.119.2.3 / (download) - annotate - [select for diffs], Mon Apr 9 22:10:02 2007 UTC (15 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.119.2.2: +6 -16 lines
Diff to previous 1.119.2.2 (colored)

- Add two new arguments to kthread_create1: pri_t pri, bool mpsafe.
- Fork kthreads off proc0 as new LWPs, not new processes.

Revision 1.120.4.1 / (download) - annotate - [select for diffs], Thu Mar 29 19:27:57 2007 UTC (15 years, 10 months ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.120: +24 -14 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

Pullup to -current

Revision 1.121 / (download) - annotate - [select for diffs], Thu Mar 29 17:37:13 2007 UTC (15 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic
Changes since 1.120: +24 -14 lines
Diff to previous 1.120 (colored)

- cv_wakeup, cv_broadcast -> cv_signal where appropriate
- Update some comments.

Revision 1.114.2.3 / (download) - annotate - [select for diffs], Sat Mar 24 14:56:01 2007 UTC (15 years, 10 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.114.2.2: +3 -3 lines
Diff to previous 1.114.2.2 (colored) to branchpoint 1.114 (colored)

sync with head.

Revision 1.119.2.2 / (download) - annotate - [select for diffs], Wed Mar 21 20:11:51 2007 UTC (15 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.119.2.1: +12 -9 lines
Diff to previous 1.119.2.1 (colored)

- Replace more simple_locks, and fix up in a few places.
- Use condition variables.
- LOCK_ASSERT -> KASSERT.

Revision 1.119.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:51:53 2007 UTC (15 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.119: +3 -3 lines
Diff to previous 1.119 (colored)

Sync with head.

Revision 1.120 / (download) - annotate - [select for diffs], Mon Mar 12 18:18:33 2007 UTC (15 years, 10 months ago) by ad
Branch: MAIN
Branch point for: reinoud-bufcleanup, mjf-ufs-trans
Changes since 1.119: +3 -3 lines
Diff to previous 1.119 (colored)

Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.

Revision 1.114.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:34 2007 UTC (15 years, 10 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.114.2.1: +23 -23 lines
Diff to previous 1.114.2.1 (colored) to branchpoint 1.114 (colored)

Sync with HEAD.

Revision 1.119 / (download) - annotate - [select for diffs], Fri Mar 9 14:11:24 2007 UTC (15 years, 10 months ago) by ad
Branch: MAIN
Branch point for: vmlocking
Changes since 1.118: +16 -16 lines
Diff to previous 1.118 (colored)

- Make the proclist_lock a mutex. The write:read ratio is unfavourable,
  and mutexes are cheaper use than RW locks.
- LOCK_ASSERT -> KASSERT in some places.
- Hold proclist_lock/kernel_lock longer in a couple of places.

Revision 1.118 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:03 2007 UTC (15 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.117: +9 -9 lines
Diff to previous 1.117 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.114.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:21 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.114: +5 -5 lines
Diff to previous 1.114 (colored)

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

Revision 1.117 / (download) - annotate - [select for diffs], Mon Feb 26 09:20:53 2007 UTC (15 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.116: +3 -3 lines
Diff to previous 1.116 (colored)

implement priority inheritance.

Revision 1.97.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:06 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97.2.2: +320 -272 lines
Diff to previous 1.97.2.2 (colored) to branchpoint 1.97 (colored)

sync with head.

Revision 1.116 / (download) - annotate - [select for diffs], Thu Feb 22 06:34:43 2007 UTC (15 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.115: +3 -3 lines
Diff to previous 1.115 (colored)

TRUE -> true, FALSE -> false

Revision 1.115 / (download) - annotate - [select for diffs], Sat Feb 17 22:31:42 2007 UTC (15 years, 11 months ago) by pavel
Branch: MAIN
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored)

Change the process/lwp flags seen by userland via sysctl back to the
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.

Restores source compatibility with pre-newlock2 tools like ps or top.

Reviewed by Andrew Doran.

Revision 1.114 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:30 2007 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.113: +317 -270 lines
Diff to previous 1.113 (colored)

Merge newlock2 to head.

Revision 1.105.4.12 / (download) - annotate - [select for diffs], Fri Feb 9 19:04:04 2007 UTC (15 years, 11 months ago) by ad
Branch: newlock2
Changes since 1.105.4.11: +3 -4 lines
Diff to previous 1.105.4.11 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored)

Pass the correct argument to ktd_wakeup().

Revision 1.88.2.1.2.1 / (download) - annotate - [select for diffs], Thu Feb 8 23:09:44 2007 UTC (15 years, 11 months ago) by bouyer
Branch: netbsd-2
Changes since 1.88.2.1: +8 -8 lines
Diff to previous 1.88.2.1 (colored) next main 1.88.2.2 (colored)

Pull up following revision(s) (requested by adrianp in ticket #11023):
	sys/kern/kern_ktrace.c: revision 1.110 via patch
	sys/sys/ktrace.h: revision 1.45 via patch
	sys/compat/freebsd/freebsd_misc.c: revision 1.26 via patch
	sys/compat/darwin/darwin_iohidsystem.c: revision 1.35 via patch
	sys/compat/darwin/darwin_ktrace.c: revision 1.6 via patch
Due to insufficient length checking it is possible for a user to cause
an integer overflow.  Make ktruser return an error instead.

Revision 1.88.2.2 / (download) - annotate - [select for diffs], Thu Feb 8 23:09:26 2007 UTC (15 years, 11 months ago) by bouyer
Branch: netbsd-2-0
Changes since 1.88.2.1: +8 -8 lines
Diff to previous 1.88.2.1 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored)

Pull up following revision(s) (requested by adrianp in ticket #11023):
	sys/kern/kern_ktrace.c: revision 1.110 via patch
	sys/sys/ktrace.h: revision 1.45 via patch
	sys/compat/freebsd/freebsd_misc.c: revision 1.26 via patch
	sys/compat/darwin/darwin_iohidsystem.c: revision 1.35 via patch
	sys/compat/darwin/darwin_ktrace.c: revision 1.6 via patch
Due to insufficient length checking it is possible for a user to cause
an integer overflow.  Make ktruser return an error instead.

Revision 1.88.2.1.4.1 / (download) - annotate - [select for diffs], Thu Feb 8 23:09:05 2007 UTC (15 years, 11 months ago) by bouyer
Branch: netbsd-2-1
Changes since 1.88.2.1: +8 -8 lines
Diff to previous 1.88.2.1 (colored) next main 1.88.2.2 (colored)

Pull up following revision(s) (requested by adrianp in ticket #11023):
	sys/kern/kern_ktrace.c: revision 1.110 via patch
	sys/sys/ktrace.h: revision 1.45 via patch
	sys/compat/freebsd/freebsd_misc.c: revision 1.26 via patch
	sys/compat/darwin/darwin_iohidsystem.c: revision 1.35 via patch
	sys/compat/darwin/darwin_ktrace.c: revision 1.6 via patch
Due to insufficient length checking it is possible for a user to cause
an integer overflow.  Make ktruser return an error instead.

Revision 1.105.4.11 / (download) - annotate - [select for diffs], Tue Feb 6 19:14:40 2007 UTC (15 years, 11 months ago) by ad
Branch: newlock2
Changes since 1.105.4.10: +3 -4 lines
Diff to previous 1.105.4.10 (colored) to branchpoint 1.105 (colored)

Now that kthreads always run with kernel priority, don't rely on preempt()
to actually yield the CPU.

Revision 1.105.4.10 / (download) - annotate - [select for diffs], Mon Feb 5 10:56:57 2007 UTC (16 years ago) by ad
Branch: newlock2
Changes since 1.105.4.9: +4 -5 lines
Diff to previous 1.105.4.9 (colored) to branchpoint 1.105 (colored)

Make it compile with !MULTIPROCESSOR.

Revision 1.105.4.9 / (download) - annotate - [select for diffs], Sun Feb 4 16:04:30 2007 UTC (16 years ago) by ad
Branch: newlock2
Changes since 1.105.4.8: +9 -4 lines
Diff to previous 1.105.4.8 (colored) to branchpoint 1.105 (colored)

Push the kernel_lock back in a couple of places. Sleep/wakeup and ktrace
are now MP safe.

Revision 1.105.4.8 / (download) - annotate - [select for diffs], Sat Feb 3 16:32:50 2007 UTC (16 years ago) by ad
Branch: newlock2
Changes since 1.105.4.7: +4 -3 lines
Diff to previous 1.105.4.7 (colored) to branchpoint 1.105 (colored)

- Require that cv_signal/cv_broadcast be called with the interlock held.
- Provide 'async' versions that's don't need the interlock.

Revision 1.105.4.7 / (download) - annotate - [select for diffs], Wed Jan 31 11:36:02 2007 UTC (16 years ago) by ad
Branch: newlock2
Changes since 1.105.4.6: +9 -2 lines
Diff to previous 1.105.4.6 (colored) to branchpoint 1.105 (colored)

ktrace: don't record context switches when blocking on a turnstile.

Revision 1.105.4.6 / (download) - annotate - [select for diffs], Tue Jan 30 13:51:40 2007 UTC (16 years ago) by ad
Branch: newlock2
Changes since 1.105.4.5: +4 -43 lines
Diff to previous 1.105.4.5 (colored) to branchpoint 1.105 (colored)

Remove support for SA. Ok core@.

Revision 1.105.4.5 / (download) - annotate - [select for diffs], Thu Jan 25 20:04:59 2007 UTC (16 years ago) by ad
Branch: newlock2
Changes since 1.105.4.4: +103 -90 lines
Diff to previous 1.105.4.4 (colored) to branchpoint 1.105 (colored)

- Fix a bug where ktrpsig() could corrupt memory.
- Tidy up a bit.

Revision 1.105.4.4 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:06 2007 UTC (16 years ago) by ad
Branch: newlock2
Changes since 1.105.4.3: +6 -13 lines
Diff to previous 1.105.4.3 (colored) to branchpoint 1.105 (colored)

Sync with head.

Revision 1.113 / (download) - annotate - [select for diffs], Thu Jan 4 17:38:26 2007 UTC (16 years, 1 month ago) by elad
Branch: MAIN
CVS Tags: newlock2-nbase, newlock2-base
Changes since 1.112: +4 -3 lines
Diff to previous 1.112 (colored)

Consistent usage of KAUTH_GENERIC_ISSUSER.

Revision 1.97.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:05 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97.2.1: +65 -45 lines
Diff to previous 1.97.2.1 (colored) to branchpoint 1.97 (colored)

sync with head.

Revision 1.105.4.3 / (download) - annotate - [select for diffs], Fri Dec 29 20:27:43 2006 UTC (16 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.105.4.2: +268 -205 lines
Diff to previous 1.105.4.2 (colored) to branchpoint 1.105 (colored)

Checkpoint work in progress.

Revision 1.105.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:44 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.105.6.1: +16 -23 lines
Diff to previous 1.105.6.1 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored)

sync with head.

Revision 1.112 / (download) - annotate - [select for diffs], Tue Nov 28 17:27:10 2006 UTC (16 years, 2 months ago) by elad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-base-1, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.111: +4 -12 lines
Diff to previous 1.111 (colored)

Move ktrace, ptrace, systrace, and procfs to use kauth(9).

First, remove process_checkioperm() calls from MD code. Similar checks
using kauth(9) routines (on the process scope, using appropriate action)
are done in the callers.

Add secmodel back-end to handle each subsystem.

Revision 1.105.4.2 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:22 2006 UTC (16 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.105.4.1: +39 -10 lines
Diff to previous 1.105.4.1 (colored) to branchpoint 1.105 (colored)

Sync with head.

Revision 1.111 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:58 2006 UTC (16 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.110: +5 -5 lines
Diff to previous 1.110 (colored)

remove some __unused from function parameters.

Revision 1.96.4.1 / (download) - annotate - [select for diffs], Tue Oct 24 16:33:44 2006 UTC (16 years, 3 months ago) by ghen
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.96: +12 -10 lines
Diff to previous 1.96 (colored) next main 1.97 (colored)

Pull up following revision(s) (requested by adrianp in ticket #1564):
	sys/compat/darwin/darwin_ktrace.c: revision 1.6 via patch
	sys/compat/darwin/darwin_iohidsystem.c: revision 1.35 via patch
	sys/compat/freebsd/freebsd_misc.c: revision 1.26 via patch
	sys/kern/kern_ktrace.c: revision 1.110 via patch
	sys/sys/ktrace.h: revision 1.45 via patch
make ktruser enforce the maximum buffer length, and return an error.
ktruser checks for length now.
ktruser now returns an error if the buffer length is too big.

Revision 1.96.6.1 / (download) - annotate - [select for diffs], Tue Oct 24 16:33:33 2006 UTC (16 years, 3 months ago) by ghen
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE
Changes since 1.96: +12 -10 lines
Diff to previous 1.96 (colored) next main 1.97 (colored)

Pull up following revision(s) (requested by adrianp in ticket #1564):
	sys/compat/darwin/darwin_ktrace.c: revision 1.6 via patch
	sys/compat/darwin/darwin_iohidsystem.c: revision 1.35 via patch
	sys/compat/freebsd/freebsd_misc.c: revision 1.26 via patch
	sys/kern/kern_ktrace.c: revision 1.110 via patch
	sys/sys/ktrace.h: revision 1.45 via patch
make ktruser enforce the maximum buffer length, and return an error.
ktruser checks for length now.
ktruser now returns an error if the buffer length is too big.

Revision 1.110 / (download) - annotate - [select for diffs], Sun Oct 22 18:19:49 2006 UTC (16 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.109: +11 -10 lines
Diff to previous 1.109 (colored)

make ktruser enforce the maximum buffer length, and return an error.

Revision 1.105.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:10 2006 UTC (16 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.105: +33 -5 lines
Diff to previous 1.105 (colored)

sync with head

Revision 1.109 / (download) - annotate - [select for diffs], Tue Oct 17 18:21:29 2006 UTC (16 years, 3 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.108: +2 -4 lines
Diff to previous 1.108 (colored)

now that we have -Wno-unused-parameter, back out all the tremendously ugly
code to gratuitously access said parameters.

Revision 1.108 / (download) - annotate - [select for diffs], Fri Oct 13 16:53:36 2006 UTC (16 years, 3 months ago) by dogcow
Branch: MAIN
Changes since 1.107: +4 -2 lines
Diff to previous 1.107 (colored)

More -Wunused fallout. sprinkle __unused when possible; otherwise, use the
	do { if (&x) {} } while (/* CONSTCOND */ 0);
construct as suggested by uwe in <20061012224845.GA9449@snark.ptc.spbu.ru>.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:15 2006 UTC (16 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.106: +5 -5 lines
Diff to previous 1.106 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.106 / (download) - annotate - [select for diffs], Sat Sep 23 22:01:04 2006 UTC (16 years, 4 months ago) by manu
Branch: MAIN
Changes since 1.105: +30 -2 lines
Diff to previous 1.105 (colored)

Add a -t+S flag to ktrace for tracing activity related to sysctl. MIB
names will be displayed, with data readen and written as well.

Revision 1.105.4.1 / (download) - annotate - [select for diffs], Mon Sep 11 18:07:25 2006 UTC (16 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.105: +7 -7 lines
Diff to previous 1.105 (colored)

- Convert some lockmgr() locks to mutexes and RW locks.
- Acquire proclist_lock and p_crmutex in some obvious places.

Revision 1.100.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:16 2006 UTC (16 years, 4 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.100: +42 -50 lines
Diff to previous 1.100 (colored) next main 1.101 (colored)

sync with head

Revision 1.101.2.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:46 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.101.2.2: +27 -28 lines
Diff to previous 1.101.2.2 (colored) to branchpoint 1.101 (colored) next main 1.102 (colored)

sync with head

Revision 1.105 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:11 2006 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.104: +27 -28 lines
Diff to previous 1.104 (colored)

Use the LWP cached credentials where sane.

Revision 1.101.2.2 / (download) - annotate - [select for diffs], Mon Jun 26 12:52:56 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.101.2.1: +8 -12 lines
Diff to previous 1.101.2.1 (colored) to branchpoint 1.101 (colored)

sync with head.

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:37 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97: +161 -81 lines
Diff to previous 1.97 (colored)

sync with head.

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:07:15 2006 UTC (16 years, 7 months ago) by chap
Branch: chap-midi
Changes since 1.103: +8 -12 lines
Diff to previous 1.103 (colored) next main 1.104 (colored)

Sync with head.

Revision 1.104 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:39 2006 UTC (16 years, 8 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base
Changes since 1.103: +8 -12 lines
Diff to previous 1.103 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.100.6.3 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:07 2006 UTC (16 years, 8 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.100.6.2: +13 -12 lines
Diff to previous 1.100.6.2 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored)

Sync with head.

Revision 1.101.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:40 2006 UTC (16 years, 8 months ago) by tron
Branch: peter-altq
Changes since 1.101: +14 -16 lines
Diff to previous 1.101 (colored) next main 1.102 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.101.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:41 2006 UTC (16 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.101: +14 -16 lines
Diff to previous 1.101 (colored)

sync with head.

Revision 1.103 / (download) - annotate - [select for diffs], Sun May 14 21:15:11 2006 UTC (16 years, 8 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.102: +13 -12 lines
Diff to previous 1.102 (colored)

integrate kauth.

Revision 1.101.4.3 / (download) - annotate - [select for diffs], Sat May 6 23:31:30 2006 UTC (16 years, 9 months ago) by christos
Branch: elad-kernelauth
Changes since 1.101.4.2: +3 -2 lines
Diff to previous 1.101.4.2 (colored) to branchpoint 1.101 (colored) next main 1.102 (colored)

- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.100.6.2 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:58 2006 UTC (16 years, 9 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.100.6.1: +4 -8 lines
Diff to previous 1.100.6.1 (colored) to branchpoint 1.100 (colored)

Sync with head.

Revision 1.101.4.2 / (download) - annotate - [select for diffs], Wed Apr 19 05:13:59 2006 UTC (16 years, 9 months ago) by elad
Branch: elad-kernelauth
Changes since 1.101.4.1: +3 -6 lines
Diff to previous 1.101.4.1 (colored) to branchpoint 1.101 (colored)

sync with head.

Revision 1.102 / (download) - annotate - [select for diffs], Sat Apr 15 04:56:14 2006 UTC (16 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.101: +3 -6 lines
Diff to previous 1.101 (colored)

Coverity CID 846: Simplify code.

Revision 1.101.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 00:53:40 2006 UTC (16 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.101: +12 -12 lines
Diff to previous 1.101 (colored)

Adapt to kernel authorization KPI.

Revision 1.101 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:21 2006 UTC (16 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.100: +3 -4 lines
Diff to previous 1.100 (colored)

merge yamt-uio_vmspace branch.

- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.

Revision 1.100.6.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:30:17 2006 UTC (17 years ago) by simonb
Branch: simonb-timecounters
Changes since 1.100: +8 -12 lines
Diff to previous 1.100 (colored)

Adapt for timecounters: mostly use get*time() and use "time_second"
instead of "time.tv_sec".

Revision 1.100.2.1 / (download) - annotate - [select for diffs], Sat Dec 31 11:14:01 2005 UTC (17 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.100: +3 -4 lines
Diff to previous 1.100 (colored) next main 1.101 (colored)

uio_segflg/uio_lwp -> uio_vmspace.

Revision 1.100 / (download) - annotate - [select for diffs], Sat Dec 24 19:12:23 2005 UTC (17 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.99: +3 -3 lines
Diff to previous 1.99 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.99 / (download) - annotate - [select for diffs], Tue Dec 13 13:12:18 2005 UTC (17 years, 1 month ago) by reinoud
Branch: MAIN
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored)

Fix of panic that was introduced since ktrace-lwp branch was merged. The
shortcut to the process of the passed lwp paniced the kernel since lwp
could/can be passwd as NULL in VOP_WRITE().

This was happening when ktracing to NFS. The function ktrwrite() set the
uio_lwp to NULL and then calls VOP_WRITE() with this argument. nfs_write()
then accessed lwp *l->l_proc wich paniced.

Thanks to David Laight for his help on tracking it down.

Revision 1.98 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.97: +144 -57 lines
Diff to previous 1.97 (colored)

merge ktrace-lwp.

Revision 1.74.2.15 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:44 2005 UTC (17 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.74.2.14: +23 -11 lines
Diff to previous 1.74.2.14 (colored) next main 1.75 (colored)

Sync with HEAD. Here we go again...

Revision 1.97 / (download) - annotate - [select for diffs], Sun May 29 22:24:15 2005 UTC (17 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.96: +7 -7 lines
Diff to previous 1.96 (colored)

- add const.
- remove unnecessary casts.
- add __UNCONST casts and mark them with XXXUNCONST as necessary.

Revision 1.95.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:23 2005 UTC (17 years, 9 months ago) by kent
Branch: kent-audio2
Changes since 1.95: +14 -12 lines
Diff to previous 1.95 (colored) next main 1.96 (colored)

sync with -current

Revision 1.74.2.14 / (download) - annotate - [select for diffs], Wed Feb 16 07:42:16 2005 UTC (17 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.74.2.13: +8 -25 lines
Diff to previous 1.74.2.13 (colored)

Simplify the record writing process as sizeof(struct ktr_header)
doesn't change. If it does increase in the future deal with it then.

Delete struct ktr_compat as it is not needed.

Revision 1.74.2.13 / (download) - annotate - [select for diffs], Tue Feb 15 21:33:29 2005 UTC (17 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.74.2.12: +14 -12 lines
Diff to previous 1.74.2.12 (colored)

Sync with HEAD.

Revision 1.74.2.12 / (download) - annotate - [select for diffs], Tue Feb 15 18:04:48 2005 UTC (17 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.74.2.11: +8 -15 lines
Diff to previous 1.74.2.11 (colored)

Use the gap between ktr_type and ktr_pid for a version field instead of
overloading ktr_type.

Revision 1.95.6.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:52 2005 UTC (17 years, 11 months ago) by yamt
Branch: yamt-km
Changes since 1.95: +14 -12 lines
Diff to previous 1.95 (colored) next main 1.96 (colored)

sync with head.

Revision 1.96 / (download) - annotate - [select for diffs], Wed Feb 9 16:15:16 2005 UTC (17 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, netbsd-3-base, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-1-RELEASE, kent-audio2-base
Branch point for: netbsd-3-0, netbsd-3
Changes since 1.95: +14 -12 lines
Diff to previous 1.95 (colored)

Don't de-reference a NULL ktd on error. Fix from enami, thanks.

Revision 1.74.2.11 / (download) - annotate - [select for diffs], Tue Nov 2 07:53:23 2004 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.74.2.10: +3 -3 lines
Diff to previous 1.74.2.10 (colored)

Sync with HEAD.

Revision 1.95 / (download) - annotate - [select for diffs], Tue Oct 26 06:58:05 2004 UTC (18 years, 3 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.94: +3 -3 lines
Diff to previous 1.94 (colored)

Fix bug in siginfo handling introduced in revision 1.93

Revision 1.74.2.10 / (download) - annotate - [select for diffs], Tue Oct 19 15:58:04 2004 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.74.2.9: +4 -4 lines
Diff to previous 1.74.2.9 (colored)

Sync with HEAD

Revision 1.74.2.9 / (download) - annotate - [select for diffs], Sun Oct 17 07:44:37 2004 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.74.2.8: +58 -12 lines
Diff to previous 1.74.2.8 (colored)

Provide a version mechanism for ktrace records and add new version that
uses struct timespec and records the lwpid.

Revision 1.94 / (download) - annotate - [select for diffs], Fri Oct 1 16:30:53 2004 UTC (18 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.93: +4 -4 lines
Diff to previous 1.93 (colored)

introduce a function, proclist_foreach_call, to iterate all procs on
a proclist and call the specified function for each of them.
primarily to fix a procfs locking problem, but i think that it's useful for
others as well.

while i'm here, introduce PROCLIST_FOREACH macro, which is similar to
LIST_FOREACH but skips marker entries which are used by proclist_foreach_call.

Revision 1.74.2.8 / (download) - annotate - [select for diffs], Fri Sep 24 10:53:42 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.74.2.7: +674 -275 lines
Diff to previous 1.74.2.7 (colored)

Sync with HEAD.

Revision 1.93 / (download) - annotate - [select for diffs], Wed Sep 22 22:15:03 2004 UTC (18 years, 4 months ago) by enami
Branch: MAIN
Changes since 1.92: +660 -249 lines
Diff to previous 1.92 (colored)

Create kernel thread and let it to issue the write request.  We can't
do this from trace target process since we can't sleep at certain
trace point (otherwise system may hang).  Address PR#23155.

Revision 1.74.2.7 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:04 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.74.2.6: +130 -65 lines
Diff to previous 1.74.2.6 (colored)

Fix the sync with head I botched.

Revision 1.74.2.6 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:02 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.74.2.5: +65 -130 lines
Diff to previous 1.74.2.5 (colored)

Sync with HEAD.

Revision 1.74.2.5 / (download) - annotate - [select for diffs], Tue Sep 14 08:10:48 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.74.2.4: +12 -13 lines
Diff to previous 1.74.2.4 (colored)

ktrops/ktrsetchildren no not need a struct lwp. Revert to struct proc and
fix a bug.

Noticed by enami. Thanks.

Revision 1.92 / (download) - annotate - [select for diffs], Sat Sep 4 07:09:35 2004 UTC (18 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.91: +3 -3 lines
Diff to previous 1.91 (colored)

Use "NULL" instead of "(struct foo *)0".

Revision 1.74.2.4 / (download) - annotate - [select for diffs], Thu Aug 12 11:42:19 2004 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.74.2.3: +30 -30 lines
Diff to previous 1.74.2.3 (colored)

Sync with HEAD.

Revision 1.74.2.3 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:45 2004 UTC (18 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.74.2.2: +192 -173 lines
Diff to previous 1.74.2.2 (colored)

Sync with HEAD

Revision 1.91 / (download) - annotate - [select for diffs], Thu Jun 24 15:06:35 2004 UTC (18 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.90: +5 -3 lines
Diff to previous 1.90 (colored)

Explain why the comment is a lie.

Revision 1.88.2.1 / (download) - annotate - [select for diffs], Thu Jun 24 14:04:46 2004 UTC (18 years, 7 months ago) by he
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2-1, netbsd-2
Changes since 1.88: +79 -125 lines
Diff to previous 1.88 (colored)

Pull up revisions 1.89-1.90 (requested by christos in ticket #544):
  Fix a panic induced by forcing ktrace to inject an emul
  record in a ktraced file descriptor that has already been
  invalidated.  Change all ktrace functions to propagate the
  error from ktrwrite() and check for it.
  Drag along revision ANSIfying function declarations.

Revision 1.90 / (download) - annotate - [select for diffs], Wed Jun 23 23:05:48 2004 UTC (18 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.89: +52 -30 lines
Diff to previous 1.89 (colored)

Fix a panic induced by forcing ktrace to inject an emul record on
a ktraced file descriptor that has already been invalidated. Change
all ktrace functions to propagate the error from ktrwrite() and
check for it. Thanks to Pavel Cahyna for finding this and giving
a perfect bug report.

[should be pulled up for 2.0]

Revision 1.89 / (download) - annotate - [select for diffs], Fri Apr 30 07:51:59 2004 UTC (18 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.88: +29 -97 lines
Diff to previous 1.88 (colored)

ANSI'fy the rest of functions.

Revision 1.88 / (download) - annotate - [select for diffs], Wed Feb 25 21:40:40 2004 UTC (18 years, 11 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.87: +31 -29 lines
Diff to previous 1.87 (colored)

Whitespace nits.

Revision 1.87 / (download) - annotate - [select for diffs], Wed Feb 25 21:34:18 2004 UTC (18 years, 11 months ago) by enami
Branch: MAIN
Changes since 1.86: +4 -2 lines
Diff to previous 1.86 (colored)

Make ktrwrite() and ktrinitheader() private again.  ktrsyscall32() no longer
exists.

Revision 1.86 / (download) - annotate - [select for diffs], Fri Jan 16 05:03:02 2004 UTC (19 years ago) by mrg
Branch: MAIN
Changes since 1.85: +6 -2 lines
Diff to previous 1.85 (colored)

clean up a little:
- delete ktrsyscall32()
- add a check #ifdef _LP64 to do the conversion if P_32 is set to the
standard ktrsyscall()
- add a couple of similar _LP64/P_32 checks to the systrace code.

this should get systrace working for 32 bit apps as well as complete
ktrace support for "trace_enter/trace_exit" using platforms such as amd64.

XXX: systrace isn't supported on sparc64 currently... (it doesn't use
trace_enter/trace_exit, or have it's own calls to systrace_xxx()...)

Revision 1.85 / (download) - annotate - [select for diffs], Thu Jan 15 14:29:20 2004 UTC (19 years ago) by mrg
Branch: MAIN
Changes since 1.84: +2 -4 lines
Diff to previous 1.84 (colored)

export ktrinitheader() and ktrwrite() for ktrsyscall32(), which is used
to write 32 bit syscall arguments in a 64 bit format.

Revision 1.84 / (download) - annotate - [select for diffs], Sun Dec 14 22:56:45 2003 UTC (19 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.83: +11 -5 lines
Diff to previous 1.83 (colored)

Defer writing of KTR_EMUL entry until first trace done by target process.
Stops ktrops sleeping with the pid table locked.

Revision 1.83 / (download) - annotate - [select for diffs], Mon Nov 24 16:51:33 2003 UTC (19 years, 2 months ago) by manu
Branch: MAIN
Changes since 1.82: +31 -2 lines
Diff to previous 1.82 (colored)

Enable tracing of out of line data sent with Mach message

Revision 1.82 / (download) - annotate - [select for diffs], Wed Nov 12 21:07:38 2003 UTC (19 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.81: +9 -6 lines
Diff to previous 1.81 (colored)

- Count number of zombies and stopped children and requeue them at the top
  of the sibling list so that find_stopped_child can be optimised to avoid
  traversing the entire sibling list - helps when a process has a lot of
  children.
- Modify locking in pfind() and pgfind() to that the caller can rely on the
  result being valid, allow caller to request that zombies be findable.
- Rename pfind() to p_find() to ensure we break binary compatibility.
- Remove svr4_pfind since p_find willnow do the job.
- Modify some of the SMP locking of the proc lists - signals are still stuffed.

Welcome to 1.6ZF

Revision 1.81 / (download) - annotate - [select for diffs], Sun Nov 2 12:01:40 2003 UTC (19 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.80: +5 -7 lines
Diff to previous 1.80 (colored)

use LIST_FOREACH() where appropriate

Revision 1.80 / (download) - annotate - [select for diffs], Wed Oct 8 00:28:42 2003 UTC (19 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.79: +4 -4 lines
Diff to previous 1.79 (colored)

* Shuffle some data structures so, and add a flags word to ksiginfo_t.
  Right now the only flag is used to indicate if a ksiginfo_t is a
  result of a trap.  Add a predicate macro to test for this flag.
* Add initialization macros for ksiginfo_t's.
* Add accssor macro for ksi_trap.  Expands to 0 if the ksiginfo_t was
  not the result of a trap.  This matches the sigcontext trapcode semantics.
* In kpsendsig(), use KSI_TRAP_P() to select the lwp that gets the signal.
  Inspired by Matthias Drochner's fix to kpsendsig(), but correctly handles
  the case of non-trap-generated signals that have a > 0 si_code.

This patch fixes a signal delivery problem with threaded programs noted by
Matthias Drochner on tech-kern.

As discussed on tech-kern.  Reviewed and OK's by Christos.

Revision 1.79 / (download) - annotate - [select for diffs], Thu Sep 25 21:59:18 2003 UTC (19 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.78: +4 -4 lines
Diff to previous 1.78 (colored)

constify sendsig/trapsignal

Revision 1.78 / (download) - annotate - [select for diffs], Fri Sep 19 22:51:05 2003 UTC (19 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.77: +21 -12 lines
Diff to previous 1.77 (colored)

support for siginfo_t in ktrace

Revision 1.74.2.2 / (download) - annotate - [select for diffs], Tue Aug 19 19:40:51 2003 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.74.2.1: +44 -2 lines
Diff to previous 1.74.2.1 (colored)

SA upcall support for ktrace(2) from my PR 19929.

This currently has problems when ktrwrite blocks and causes another
upcall, which causes another call to ktrsaupcall.

Revision 1.77 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:45 2003 UTC (19 years, 6 months ago) by agc
Branch: MAIN
Changes since 1.76: +3 -7 lines
Diff to previous 1.76 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.76 / (download) - annotate - [select for diffs], Mon Aug 4 18:53:06 2003 UTC (19 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)

sy_narg isn't very useful where an argument can span two register_t slots
(as off_t on 32-bit platforms)
see PR kern/22297 by myself

Revision 1.75 / (download) - annotate - [select for diffs], Wed Jul 16 22:42:47 2003 UTC (19 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.74: +17 -3 lines
Diff to previous 1.74 (colored)

Add ktrace of env and args during exec.

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:38 2003 UTC (19 years, 7 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.74: +105 -83 lines
Diff to previous 1.74 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.74 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:21 2003 UTC (19 years, 7 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.73: +83 -105 lines
Diff to previous 1.73 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Jun 29 09:59:59 2003 UTC (19 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored)

Intermediate cast to intptr_t when storing a lwp id in a caddr_t variable
for archs where those have different size.

Revision 1.72 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:54 2003 UTC (19 years, 7 months ago) by darrenr
Branch: MAIN
Changes since 1.71: +105 -83 lines
Diff to previous 1.71 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.71 / (download) - annotate - [select for diffs], Thu May 15 12:56:16 2003 UTC (19 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.70: +5 -4 lines
Diff to previous 1.70 (colored)

ktrace rval[1] - in order to get both fd numbers for pipe()

Revision 1.70 / (download) - annotate - [select for diffs], Fri May 2 12:43:01 2003 UTC (19 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.69: +12 -5 lines
Diff to previous 1.69 (colored)

fix locking.

Revision 1.69 / (download) - annotate - [select for diffs], Thu Apr 3 18:54:16 2003 UTC (19 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

Don't require a file if CLEAR is set [did not work before because we
could have the descend flag too]

Revision 1.68 / (download) - annotate - [select for diffs], Sun Feb 23 14:37:34 2003 UTC (19 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.67: +4 -2 lines
Diff to previous 1.67 (colored)

Make updating a file's reference and use count MP-safe.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:27 2003 UTC (20 years ago) by thorpej
Branch: MAIN
Changes since 1.66: +18 -12 lines
Diff to previous 1.66 (colored)

Merge the nathanw_sa branch.

Revision 1.53.2.12 / (download) - annotate - [select for diffs], Tue Jan 7 22:12:13 2003 UTC (20 years, 1 month ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.53.2.11: +4 -4 lines
Diff to previous 1.53.2.11 (colored) to branchpoint 1.53 (colored) next main 1.54 (colored)

In the SA universe, the switch-to-this-LWP decision is made at a
different level than where preempt() calls are made, which renders
the "newlwp" argument useless.  Replace it with a "more work to do"
boolean argument.  Returning to userspace preempt() calls pass 0.
"Voluntary" preemptions in e.g. uiomove() pass 1.  This will be used
to indicate to the SA subsystem that the LWP is not yet finished in
the kernel.

Collapse the SA vs. non-SA cases of preempt() together, making the
conditional code block much smaller, and don't call sa_preempt() if
more work is to come.

NOTE: THIS IS NOT A COMPLETE FIX TO THE preempt()-in-uiomove() PROBLEM
THAT CURRENTLY EXISTS FOR SA PROCESSES.

Revision 1.53.2.11 / (download) - annotate - [select for diffs], Sun Dec 29 20:54:41 2002 UTC (20 years, 1 month ago) by thorpej
Branch: nathanw_sa
Changes since 1.53.2.10: +9 -5 lines
Diff to previous 1.53.2.10 (colored) to branchpoint 1.53 (colored)

Sync with HEAD.

Revision 1.66 / (download) - annotate - [select for diffs], Sat Dec 21 16:23:57 2002 UTC (20 years, 1 month ago) by manu
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.65: +8 -4 lines
Diff to previous 1.65 (colored)

Pass the system call table to trace_enter() and ktrsys() so that it is
possible to use alternate system call tables. This is usefull for
displaying correctly the arguments in Mach binaries traces.

If NULL is given, then the regular systam call table for the process is used.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Dec 20 05:06:25 2002 UTC (20 years, 1 month ago) by gmcgarry
Branch: MAIN
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

yield() -> preempt().

Revision 1.53.2.10 / (download) - annotate - [select for diffs], Thu Dec 19 00:50:42 2002 UTC (20 years, 1 month ago) by thorpej
Branch: nathanw_sa
Changes since 1.53.2.9: +5 -17 lines
Diff to previous 1.53.2.9 (colored) to branchpoint 1.53 (colored)

Sync with HEAD.

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Wed Dec 18 01:06:09 2002 UTC (20 years, 1 month ago) by gmcgarry
Branch: gmcgarry_ucred
Changes since 1.64: +12 -14 lines
Diff to previous 1.64 (colored) next main 1.65 (colored)

Merge pcred and ucred, and poolify.  TBD: check backward compatibility
and factor-out some higher-level functionality.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Dec 17 18:42:54 2002 UTC (20 years, 1 month ago) by manu
Branch: MAIN
CVS Tags: gmcgarry_ucred_base, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Branch point for: gmcgarry_ucred
Changes since 1.63: +4 -14 lines
Diff to previous 1.63 (colored)

Added support for exchange of Mach messages between processes.

This does not buy us new functionnality for now, because we still have to
discover how mach_init (which acts as a name server, enabling processes to
discover each other's ports) is able to receive messages from other processes
(this is a bootstrap problem, and the bootstrap port might be the place to
search).

While we are there:
- removed a lot of debug which is now available using ktrace.
- reworked message handling to avoid mutliple copyin/copyout of the
same data. ktrace of Mach message now uses the in-kernel copy of the
message instead of copying it from userland.
- packed mach trap handlers arguments into a structure to avoid modifying
everything next time we have to add an argument.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Dec 12 17:40:40 2002 UTC (20 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.62: +3 -5 lines
Diff to previous 1.62 (colored)

always compile in mach ktrace support; it is to small to bother.

Revision 1.53.2.9 / (download) - annotate - [select for diffs], Wed Dec 11 06:43:04 2002 UTC (20 years, 1 month ago) by thorpej
Branch: nathanw_sa
Changes since 1.53.2.8: +108 -21 lines
Diff to previous 1.53.2.8 (colored) to branchpoint 1.53 (colored)

Sync with HEAD.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Dec 9 21:29:21 2002 UTC (20 years, 1 month ago) by manu
Branch: MAIN
Changes since 1.61: +109 -23 lines
Diff to previous 1.61 (colored)

Added support for dumping mach messages in ktrace/kdump. While we are
there, KNFify a few functions.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Nov 15 20:06:04 2002 UTC (20 years, 2 months ago) by manu
Branch: MAIN
Changes since 1.60: +5 -4 lines
Diff to previous 1.60 (colored)

Add a realcode argument to trace_enter and ktrsyscall. realcode is the
original system call number, which can be negative for a Mach trap.
We cannot just replace code by realcode, because ktrsyscall uses it as
an index in the system call table, thus crashing the kernel when the
value is negative.

Revision 1.53.2.8 / (download) - annotate - [select for diffs], Mon Nov 11 22:13:43 2002 UTC (20 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.53.2.7: +6 -1 lines
Diff to previous 1.53.2.7 (colored) to branchpoint 1.53 (colored)

Catch up to -current

Revision 1.60 / (download) - annotate - [select for diffs], Sun Nov 10 03:30:34 2002 UTC (20 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

Fix signed/unsigned comparison warnings.

Revision 1.59 / (download) - annotate - [select for diffs], Wed Oct 23 09:14:18 2002 UTC (20 years, 3 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge
Changes since 1.58: +7 -2 lines
Diff to previous 1.58 (colored)

merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

Revision 1.54.2.4 / (download) - annotate - [select for diffs], Fri Sep 6 08:47:49 2002 UTC (20 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.54.2.3: +10 -5 lines
Diff to previous 1.54.2.3 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored)

sync kqueue branch with HEAD

Revision 1.53.2.7 / (download) - annotate - [select for diffs], Thu Aug 1 02:46:19 2002 UTC (20 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.53.2.6: +4 -3 lines
Diff to previous 1.53.2.6 (colored) to branchpoint 1.53 (colored)

Catch up to -current.

Revision 1.55.8.2 / (download) - annotate - [select for diffs], Mon Jul 15 10:36:32 2002 UTC (20 years, 6 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.55.8.1: +9 -5 lines
Diff to previous 1.55.8.1 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored)

catch up with -current.

Revision 1.53.2.6 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:16 2002 UTC (20 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.53.2.5: +2 -3 lines
Diff to previous 1.53.2.5 (colored) to branchpoint 1.53 (colored)

No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Mon Jul 1 17:41:55 2002 UTC (20 years, 7 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.46: +3 -2 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

Pull up revision 1.58 (requested by itojun):
  Disallow ktrace on processes with P_SUGID set.

Revision 1.55.10.1 / (download) - annotate - [select for diffs], Sun Jun 30 23:44:49 2002 UTC (20 years, 7 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.55: +3 -2 lines
Diff to previous 1.55 (colored) next main 1.56 (colored)

Pull up revision 1.58 (requested by itojun in ticket #398):
disallow ktrace on P_SUGID.  from openbsd

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jun 28 01:59:36 2002 UTC (20 years, 7 months ago) by itojun
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, gehenna-devsw-base
Changes since 1.57: +4 -3 lines
Diff to previous 1.57 (colored)

disallow ktrace on P_SUGID.  from openbsd

Revision 1.55.8.1 / (download) - annotate - [select for diffs], Thu Jun 20 16:02:20 2002 UTC (20 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.55: +4 -3 lines
Diff to previous 1.55 (colored)

catch up with -current.

Revision 1.53.2.5 / (download) - annotate - [select for diffs], Thu Jun 20 03:47:14 2002 UTC (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.53.2.4: +8 -4 lines
Diff to previous 1.53.2.4 (colored) to branchpoint 1.53 (colored)

Catch up to -current.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Jun 18 08:01:30 2002 UTC (20 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.56: +7 -4 lines
Diff to previous 1.56 (colored)

Repair damage done in systrace commit. Since argsize is nog longer
passed, assume it's sy_narg * sizeof (register_t). The code
made this assumption implicitly anyway. Fixes compat_*32 tracing.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Jun 17 16:22:50 2002 UTC (20 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.55: +4 -3 lines
Diff to previous 1.55 (colored)

Niels Provos systrace work, ported to NetBSD by kittenz and reworked...

Revision 1.53.2.4 / (download) - annotate - [select for diffs], Wed May 29 21:33:10 2002 UTC (20 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.53.2.3: +3 -2 lines
Diff to previous 1.53.2.3 (colored) to branchpoint 1.53 (colored)

#include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)

Revision 1.54.2.3 / (download) - annotate - [select for diffs], Thu Feb 21 20:33:08 2002 UTC (20 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.54.2.2: +7 -3 lines
Diff to previous 1.54.2.2 (colored) to branchpoint 1.54 (colored)

ktrderef(): knote_fdclose() is not appropriate here - the descriptor
is not visible from userland and thus can't be watched

Revision 1.54.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:59:48 2002 UTC (21 years ago) by thorpej
Branch: kqueue
Changes since 1.54.2.1: +4 -1 lines
Diff to previous 1.54.2.1 (colored) to branchpoint 1.54 (colored)

Sync kqueue branch with -current.

Revision 1.53.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:35 2001 UTC (21 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.53.2.2: +4 -1 lines
Diff to previous 1.53.2.2 (colored) to branchpoint 1.53 (colored)

Catch up to -current.

Revision 1.54.6.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:47 2001 UTC (21 years, 2 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.54: +4 -1 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.55 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:10 2001 UTC (21 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, newlock-base, newlock, netbsd-1-6-base, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.54: +4 -1 lines
Diff to previous 1.54 (colored)

add RCSIDs

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Tue Jul 10 13:51:46 2001 UTC (21 years, 6 months ago) by lukem
Branch: kqueue
Changes since 1.54: +2 -1 lines
Diff to previous 1.54 (colored)

highlight possible problem?

Revision 1.53.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:06:48 2001 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.53.2.1: +6 -4 lines
Diff to previous 1.53.2.1 (colored) to branchpoint 1.53 (colored)

Catch up to -current.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Jun 14 20:32:47 2001 UTC (21 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache, kqueue
Changes since 1.53: +6 -4 lines
Diff to previous 1.53 (colored)

Fix a partial construction problem that can cause race conditions
between creation of a file descriptor and close(2) when using kernel
assisted threads.  What we do is stick descriptors in the table, but
mark them as "larval".  This causes essentially everything to treat
it as a non-existent descriptor, except for fdalloc(), which sees a
filled slot so that it won't (incorrectly) allocate it again.  When
a descriptor is fully constructed, the code that has constructed it
marks it as "mature" (which actually clears the "larval" flag), and
things continue to work as normal.

While here, gather all the code that gets a descriptor from the table
into a fd_getfile() function, and call it, rather than having the
same (sometimes incorrect) code copied all over the place.

Revision 1.53.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:40 2001 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.53: +13 -7 lines
Diff to previous 1.53 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.38.2.4 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:43 2001 UTC (22 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.38.2.3: +5 -2 lines
Diff to previous 1.38.2.3 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jan 5 22:25:26 2001 UTC (22 years, 1 month ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.52: +4 -1 lines
Diff to previous 1.52 (colored)

utrace(2): limit size of user data to KTR_USER_MAXLEN (currently 2048); return EINVAL if 'len' is bigger

Revision 1.52 / (download) - annotate - [select for diffs], Fri Jan 5 21:42:09 2001 UTC (22 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)

utrace(2): rename 'id' parameter to 'label'

Revision 1.38.2.3 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:38 2001 UTC (22 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.38.2.2: +66 -4 lines
Diff to previous 1.38.2.2 (colored) to branchpoint 1.38 (colored)

Sync with HEAD

Revision 1.51 / (download) - annotate - [select for diffs], Thu Dec 28 11:10:15 2000 UTC (22 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.50: +65 -3 lines
Diff to previous 1.50 (colored)

add utrace(2) - this syscall allows to add user ktrace entries
idea from FreeBSD, but added argument (const char *id) so that it's possible
to differentiate between entries from different sources

Revision 1.50 / (download) - annotate - [select for diffs], Tue Dec 19 22:08:36 2000 UTC (22 years, 1 month ago) by scw
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

Change struct emul's "char e_name[8]" field to "const char *e_name"
to allow for emulation names >= 8 characters.

Revision 1.38.2.2 / (download) - annotate - [select for diffs], Wed Dec 13 15:50:20 2000 UTC (22 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.38.2.1: +4 -1 lines
Diff to previous 1.38.2.1 (colored) to branchpoint 1.38 (colored)

Sync with HEAD (for UBC fixes).

Revision 1.49 / (download) - annotate - [select for diffs], Mon Dec 11 19:53:06 2000 UTC (22 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.48: +3 -1 lines
Diff to previous 1.48 (colored)

Make this compilable again on ports without __HAVE_SYSCALL_INTERN.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Dec 11 16:39:01 2000 UTC (22 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.47: +2 -1 lines
Diff to previous 1.47 (colored)

Call e_syscall_intern every time ktrace flags are modified.

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:00 2000 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.38: +235 -280 lines
Diff to previous 1.38 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.47 / (download) - annotate - [select for diffs], Tue Aug 1 04:57:30 2000 UTC (22 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.46: +30 -76 lines
Diff to previous 1.46 (colored)

ANSI'ify.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:09:07 2000 UTC (22 years, 7 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.42: +28 -8 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.46 / (download) - annotate - [select for diffs], Wed May 31 05:02:32 2000 UTC (22 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.45: +4 -2 lines
Diff to previous 1.45 (colored)

Track which process a CPU is running/has last run on by adding a
p_cpu member to struct proc.  Use this in certain places when
accessing scheduler state, etc.  For the single-processor case,
just initialize p_cpu in fork1() to avoid having to set it in the
low-level context switch code on platforms which will never have
multiprocessing.

While I'm here, comment a few places where there are known issues
for the SMP implementation.

Revision 1.45 / (download) - annotate - [select for diffs], Mon May 29 22:29:01 2000 UTC (22 years, 8 months ago) by sommerfeld
Branch: MAIN
Changes since 1.44: +3 -2 lines
Diff to previous 1.44 (colored)

Add null-pointer tests in ktrsamefile

Revision 1.44 / (download) - annotate - [select for diffs], Mon May 29 22:04:11 2000 UTC (22 years, 8 months ago) by sommerfeld
Branch: MAIN
Changes since 1.43: +20 -4 lines
Diff to previous 1.43 (colored)

Fix clearing of ktrace points:
 - need deep compare of open files, not a shallow pointer compare.
 - reorder fdrelease()/FILE_UNUSE() invocations so fdrelease doesn't
block waiting for something which can't happen until after it returns.

Revision 1.43 / (download) - annotate - [select for diffs], Sun May 28 15:27:51 2000 UTC (22 years, 8 months ago) by sommerfeld
Branch: MAIN
Changes since 1.42: +5 -4 lines
Diff to previous 1.42 (colored)

Deal with NULL file pointer for KTROP_CLEAR

Revision 1.42 / (download) - annotate - [select for diffs], Sat May 27 00:40:45 2000 UTC (22 years, 8 months ago) by sommerfeld
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.41: +137 -173 lines
Diff to previous 1.41 (colored)

Reduce use of curproc in several places:

 - Change ktrace interface to pass in the current process, rather than
p->p_tracep, since the various ktr* function need curproc anyway.

 - Add curproc as a parameter to mi_switch() since all callers had it
handy anyway.

 - Add a second proc argument for inferior() since callers all had
curproc handy.

Also, miscellaneous cleanups in ktrace:

 - ktrace now always uses file-based, rather than vnode-based I/O
(simplifies, increases type safety); eliminate KTRFLAG_FD & KTRFAC_FD.
Do non-blocking I/O, and yield a finite number of times when receiving
EWOULDBLOCK before giving up.

 - move code duplicated between sys_fktrace and sys_ktrace into ktrace_common.

 - simplify interface to ktrwrite()

Revision 1.41 / (download) - annotate - [select for diffs], Fri May 26 21:20:30 2000 UTC (22 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

First sweep at scheduler state cleanup.  Collect MI scheduler
state into global and per-CPU scheduler state:

	- Global state: sched_qs (run queues), sched_whichqs (bitmap
	  of non-empty run queues), sched_slpque (sleep queues).
	  NOTE: These may collectively move into a struct schedstate
	  at some point in the future.

	- Per-CPU state, struct schedstate_percpu: spc_runtime
	  (time process on this CPU started running), spc_flags
	  (replaces struct proc's p_schedflags), and
	  spc_curpriority (usrpri of processes on this CPU).

	- Every platform must now supply a struct cpu_info and
	  a curcpu() macro.  Simplify existing cpu_info declarations
	  where appropriate.

	- All references to per-CPU scheduler state now made through
	  curcpu().  NOTE: this will likely be adjusted in the future
	  after further changes to struct proc are made.

Tested on i386 and Alpha.  Changes are mostly mechanical, but apologies
in advance if it doesn't compile on a particular platform.

Revision 1.40 / (download) - annotate - [select for diffs], Mon May 8 20:01:05 2000 UTC (22 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

ktrgenio(): __predict_false() ktrwrite() failing.
ktrwrite(): __predict_true() no error occuring.

Revision 1.33.6.2 / (download) - annotate - [select for diffs], Sun Apr 30 20:13:33 2000 UTC (22 years, 9 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.33.6.1: +2 -2 lines
Diff to previous 1.33.6.1 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

Modify/re-do last pullup (via patch, requested by sommerfeld):
  Fix two bugs:
   o A malicious or erroneous program can hog the CPU in uiomove()
   o A ktrace of such a program can hog large amounts of kernel memory
  This version of the fix does not increase the size of struct proc
  compared to 1.4.2.

Revision 1.33.6.1 / (download) - annotate - [select for diffs], Sun Apr 30 12:08:33 2000 UTC (22 years, 9 months ago) by he
Branch: netbsd-1-4
Changes since 1.33: +105 -83 lines
Diff to previous 1.33 (colored)

Pull up revisions 1.38-1.39 (via patch, requested by sommerfeld):
  Fix two bugs:
   o A malicious or erroneous program can hog the CPU in uiomove()
   o A ktrace of such a program can hog large amounts of kernel memory
  This increses the size of struct proc, so kernel-grovellers need
  rebuild after this.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Apr 19 19:14:17 2000 UTC (22 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.38: +101 -84 lines
Diff to previous 1.38 (colored)

- Allocate the ktrace operation header on the stack rather than using
  MALLOC()/FREE().
- In ktrgenio():
	- Don't allocate the entire size of the I/O for the temporary
	  buffer used to write the data to the trace file.  Instead,
	  do it in page-sized chunks.
	- As in uiomove(), preempt the process if we are hogging the CPU.
	- If writing to the trace file errors, abort rather than continuing
	  to loop through the buffer.

From Artur Grabowski <art@stacken.kth.se>, with some additional cleanup
by me.

Revision 1.33.8.2 / (download) - annotate - [select for diffs], Mon Aug 2 22:19:12 1999 UTC (23 years, 6 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.33.8.1: +13 -4 lines
Diff to previous 1.33.8.1 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

Update from trunk.

Revision 1.38 / (download) - annotate - [select for diffs], Sun Jul 25 13:59:08 1999 UTC (23 years, 6 months ago) by darrenr
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base
Branch point for: thorpej_scsipi
Changes since 1.37: +7 -4 lines
Diff to previous 1.37 (colored)

don't log an error for ktrace if it's EPIPE - an error that should be
expected with fktrace/ktruss (i.e the error is `noise').

Revision 1.37 / (download) - annotate - [select for diffs], Sun Jul 25 06:30:34 1999 UTC (23 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored)

Turn the proclist lock into a read/write spinlock.  Update proclist locking
calls to reflect this.  Also, block statclock rather than softclock during
in the proclist locking functions, to address a problem reported on
current-users by Sean Doran.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Jul 22 21:08:31 1999 UTC (23 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.35: +7 -1 lines
Diff to previous 1.35 (colored)

Add a read/write lock to the proclists and PID hash table.  Use the
write lock when doing PID allocation, and during the process exit path.
Use a read lock every where else, including within schedcpu() (interrupt
context).  Note that holding the write lock implies blocking schedcpu()
from running (blocks softclock).

PID allocation is now MP-safe.

Note this actually fixes a bug on single processor systems that was probably
extremely difficult to tickle; it was possible that schedcpu() would run
off a bad pointer if the right clock interrupt happened to come in the
middle of a LIST_INSERT_HEAD() or LIST_REMOVE() to/from allproc.

Revision 1.33.8.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:24:01 1999 UTC (23 years, 7 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.33: +6 -1 lines
Diff to previous 1.33 (colored)

Sync w/ -current.

Revision 1.35 / (download) - annotate - [select for diffs], Wed May 5 20:01:08 1999 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.34: +4 -1 lines
Diff to previous 1.34 (colored)

Add "use counting" to file entries.  When closing a file, and it's reference
count is 0, wait for use count to drain before finishing the close.

This is necessary in order for multiple processes to safely share file
descriptor tables.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Apr 11 18:44:00 1999 UTC (23 years, 9 months ago) by kleink
Branch: MAIN
Changes since 1.33: +3 -1 lines
Diff to previous 1.33 (colored)

* Add a comment to ktrgetheader() mentioning that ktr_len and ktr_buf are
being left uninitialized intentionally; addresses PR kern/6987.
* In ktrsysret(), initialize the unused ktr_eosys to avoid writing random junk.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Sep 11 12:50:10 1998 UTC (24 years, 4 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc-base, chs-ubc
Branch point for: netbsd-1-4, chs-ubc2
Changes since 1.32: +4 -3 lines
Diff to previous 1.32 (colored)

Substantial signal handling changes:
* Increase the size of sigset_t to accomodate 128 signals -- adding new
  versions of sys_setprocmask(), sys_sigaction(), sys_sigpending() and
  sys_sigsuspend() to handle the changed arguments.
* Abstract the guts of sys_sigaltstack(), sys_setprocmask(), sys_sigaction(),
  sys_sigpending() and sys_sigsuspend() into separate functions, and call them
  from all the emulations rather than hard-coding everything.  (Avoids uses
  the stackgap crap for these system calls.)
* Add a new flag (p_checksig) to indicate that a process may have signals
  pending and userret() needs to do the full (slow) check.
* Eliminate SAS_ALTSTACK; it's exactly the inverse of SS_DISABLE.
* Correct emulation bugs with restoring SS_ONSTACK.
* Make the signal mask in the sigcontext always use the emulated mask format.
* Store signals internally in sigaction structures, rather than maintaining a
  bunch of little sigsets for each SA_* bit.
* Keep track of where we put the signal trampoline, rather than figuring it out
  in *_sendsig().
* Issue a warning when a non-emulated sigaction bit is observed.
* Add missing emulated signals, and a native SIGPWR (currently not used).
* Implement the `not reset when caught' semantics for relevant signals.

Note: Only code touched by the i386 port has been modified.  Other ports and
emulations need to be updated.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:54 1998 UTC (24 years, 6 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.30: +7 -7 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Revert cdevsw mmap routines to return int.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Aug 4 04:03:12 1998 UTC (24 years, 6 months ago) by perry
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one.
  bcopy(x, y, z) ->  memcpy(y, x, z)
ovbcopy(x, y, z) -> memmove(y, x, z)
   bcmp(x, y, z) ->  memcmp(x, y, z)
  bzero(x, y)    ->  memset(x, 0, y)

Revision 1.31 / (download) - annotate - [select for diffs], Fri Jul 31 22:50:49 1998 UTC (24 years, 6 months ago) by perry
Branch: MAIN
Changes since 1.30: +7 -7 lines
Diff to previous 1.30 (colored)

fix sizeofs so they comply with the KNF style guide. yes, it is pedantic.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Jun 30 05:33:12 1998 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.29: +3 -2 lines
Diff to previous 1.29 (colored)

Add two additional arguments to the fileops read and write calls, a
pointer to the offset to use, and a flags word.  Define a flag that
specifies whether or not to update the offset passed by reference.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Jun 25 21:17:16 1998 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.28: +3 -1 lines
Diff to previous 1.28 (colored)

defopt KTRACE

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Tue May 5 12:43:17 1998 UTC (24 years, 9 months ago) by mycroft
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002
Changes since 1.24: +4 -10 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Pull up 1.27, per request of nathanw@mit.edu.

Revision 1.28 / (download) - annotate - [select for diffs], Sat May 2 18:33:20 1998 UTC (24 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.27: +204 -70 lines
Diff to previous 1.27 (colored)

New fktrace syscall from Darren Reed [with fixes from me]

Revision 1.27 / (download) - annotate - [select for diffs], Tue Apr 28 22:27:22 1998 UTC (24 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.26: +4 -10 lines
Diff to previous 1.26 (colored)

Fix KTROP_CLEARFILE so it does the same thing as KTROP_CLEAR (i.e. vrele()
rather than vn_close()).  Fixes PR 5357.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Mar 29 05:19:43 1998 UTC (24 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

remove register from decl.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:28 1998 UTC (24 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.24: +6 -6 lines
Diff to previous 1.24 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:12:56 1998 UTC (24 years, 11 months ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +47 -38 lines
Diff to previous 1.1.1.2 (colored)

Import 4.4BSD-Lite2

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:09:40 1998 UTC (24 years, 11 months ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1.1.1: +82 -30 lines
Diff to previous 1.1.1.1 (colored)

Import 4.4BSD-Lite for reference

Revision 1.24 / (download) - annotate - [select for diffs], Sun Oct 19 02:00:28 1997 UTC (25 years, 3 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Add const where appropriate.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Feb 9 18:59:36 1996 UTC (26 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, thorpej-setroot, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, mrg-vm-swap, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, is-newarp-before-merge, is-newarp-base, is-newarp, bouyer-scsipi
Changes since 1.22: +1 -3 lines
Diff to previous 1.22 (colored)

More proto fixes

Revision 1.22 / (download) - annotate - [select for diffs], Sun Feb 4 02:15:39 1996 UTC (27 years ago) by christos
Branch: MAIN
Changes since 1.21: +15 -3 lines
Diff to previous 1.21 (colored)

First pass at prototyping

Revision 1.21 / (download) - annotate - [select for diffs], Sun Oct 22 00:35:06 1995 UTC (27 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.20: +8 -1 lines
Diff to previous 1.20 (colored)

Make the ktrace code emit a record that indicates the current emulation
every time there is an attach or detach event.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Oct 7 06:28:16 1995 UTC (27 years, 4 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Prefix names of system call implementation functions with `sys_'.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Sep 19 21:45:00 1995 UTC (27 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +6 -5 lines
Diff to previous 1.18 (colored)

Make system calls conform to a standard prototype and bring those
prototypes into scope.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jul 19 15:19:13 1995 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.17: +19 -1 lines
Diff to previous 1.17 (colored)

Add KTR_EMUL to indicate a switch between syscall emulations.
Currently this record is emitted only on exec. Maybe it should
be emitted on ktrace() attach too.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Mar 26 07:48:47 1995 UTC (27 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.16: +13 -6 lines
Diff to previous 1.16 (colored)

don't default return types to ints; specify them.
ktrsyscall takes (vp, code, argsize, args), and stores argsize rather
than nargs.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Mar 9 08:55:47 1995 UTC (27 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +8 -3 lines
Diff to previous 1.15 (colored)

Update types.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Dec 14 19:07:08 1994 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Remove extra arg to vn_open().

Revision 1.14 / (download) - annotate - [select for diffs], Mon Nov 14 06:01:18 1994 UTC (28 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

added extra argument in vn_open and VOP_OPEN to allow cloning devices

Revision 1.13 / (download) - annotate - [select for diffs], Thu Oct 20 04:22:49 1994 UTC (28 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.12: +24 -20 lines
Diff to previous 1.12 (colored)

update for new syscall args description mechanism

Revision 1.12 / (download) - annotate - [select for diffs], Tue Aug 30 03:05:37 1994 UTC (28 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +9 -13 lines
Diff to previous 1.11 (colored)

Convert process, file, and namei lists and hash tables to use queue.h.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 29 06:32:29 1994 UTC (28 years, 7 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jun 8 11:28:37 1994 UTC (28 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +1 -7 lines
Diff to previous 1.9 (colored)

Update to 4.4-Lite fs code.

Revision 1.9 / (download) - annotate - [select for diffs], Wed May 18 05:12:37 1994 UTC (28 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.8: +70 -29 lines
Diff to previous 1.8 (colored)

mostly-machine-indepedent switch, and changes to match.  also, hack init_main

Revision 1.8 / (download) - annotate - [select for diffs], Thu May 5 05:38:13 1994 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

lots of changes: prototype migration, move lots of variables, definitions,
and structure elements around.  kill some unnecessary type and macro
definitions.  standardize clock handling.  More changes than you'd want.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Dec 18 04:20:37 1993 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.6: +10 -10 lines
Diff to previous 1.6 (colored)

Canonicalize all #includes.

Revision 1.5.4.2 / (download) - annotate - [select for diffs], Sun Nov 14 20:31:54 1993 UTC (29 years, 2 months ago) by mycroft
Branch: magnum
Changes since 1.5.4.1: +10 -10 lines
Diff to previous 1.5.4.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Canonicalize all #includes.

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Fri Sep 24 08:51:06 1993 UTC (29 years, 4 months ago) by mycroft
Branch: magnum
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Make all files using spl*() #include cpu.h.  Changes from trunk.
init_main.c: New method of pseudo-device of initialization.
kern_clock.c: hardclock() and softclock() now take a pointer to a clockframe.
softclock() only does callouts.
kern_synch.c: Remove spurious declaration of endtsleep().  Adjust uses of
averunnable for new struct loadav.
subr_prf.c: Allow printf() formats in panic().
tty.c: averunnable changes.
vfs_subr.c: va_size and va_bytes are now quads.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Sep 15 22:30:35 1993 UTC (29 years, 4 months ago) by cgd
Branch: MAIN
CVS Tags: magnum-base
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

make allproc be volatile, and cast things accordingly.
suggested by torek, because CSRG had problems with reordering
of assignments to allproc leading to strange panics from kernels
compiled with gcc2...

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jul 13 22:13:22 1993 UTC (29 years, 6 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Branch point for: magnum
Changes since 1.4: +10 -7 lines
Diff to previous 1.4 (colored)

break args structs out, into syscallname_args structs, so gcc2 doesn't
whine so much.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jun 27 06:01:37 1993 UTC (29 years, 7 months ago) by andrew
Branch: MAIN
Changes since 1.3: +19 -1 lines
Diff to previous 1.3 (colored)

ANSIfications - removed all implicit function return types and argument
definitions.  Ensured that all files include "systm.h" to gain access to
general prototypes.  Casts where necessary.

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 20 02:54:26 1993 UTC (29 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

add $Id$ strings, and clean up file headers where necessary

Revision 1.2 / (download) - annotate - [select for diffs], Fri Mar 26 22:16:30 1993 UTC (29 years, 10 months ago) by glass
Branch: MAIN
CVS Tags: netbsd-alpha-1, netbsd-0-8
Changes since 1.1: +0 -4 lines
Diff to previous 1.1 (colored)

removed unnecessary #ifdefing, fixed conf/files appropriately

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (29 years, 10 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (29 years, 10 months ago) by cgd
Branch: MAIN

Initial revision

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>