The NetBSD Project

CVS log for src/sys/ddb/db_xxx.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.75 / (download) - annotate - [select for diffs], Sat May 23 23:42:42 2020 UTC (6 months, 1 week ago) by ad
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, HEAD
Changes since 1.74: +5 -5 lines
Diff to previous 1.74 (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.74 / (download) - annotate - [select for diffs], Tue Mar 10 15:58:37 2020 UTC (8 months, 3 weeks ago) by christos
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.73: +3 -3 lines
Diff to previous 1.73 (colored)

Make the db_kernelonly() macro visible to all files and re-use it.
Register access is kernel only.

Revision 1.73 / (download) - annotate - [select for diffs], Sat Feb 1 02:23:23 2020 UTC (10 months ago) by riastradh
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored)

Load struct fdfile::ff_file with atomic_load_consume.

Exceptions: when we're only testing whether it's there, not about to
dereference it.

Note: We do not use atomic_store_release to set it because the
preceding mutex_exit should be enough.

(That said, it's not clear the mutex_enter/exit is needed unless
refcnt > 0 already, in which case maybe it would be a win to switch
from the membar implied by mutex_enter to the membar implied by
atomic_store_release -- which I would generally expect to be much
cheaper.  And a little clearer without a long comment.)

Revision 1.72 / (download) - annotate - [select for diffs], Sat Feb 1 02:23:04 2020 UTC (10 months ago) by riastradh
Branch: MAIN
Changes since 1.71: +4 -3 lines
Diff to previous 1.71 (colored)

Load struct filedesc::fd_dt with atomic_load_consume.

Exceptions: when fd_refcnt <= 1, or when holding fd_lock.

While here:

- Restore KASSERT(mutex_owned(&fdp->fd_lock)) in fd_unused.
  => This is used only in fd_close and fd_abort, where it holds.
- Move bounds check assertion in fd_putfile to where it matters.
- Store fd_dt with atomic_store_release.
- Move load of fd_dt under lock in knote_fdclose.
- Omit membar_consumer in fdesc_readdir.
  => atomic_load_consume serves the same purpose now.
  => Was needed only on alpha anyway.

Revision 1.71 / (download) - annotate - [select for diffs], Fri Feb 27 00:47:30 2015 UTC (5 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: phil-wifi, ad-namecache
Changes since 1.70: +8 -2 lines
Diff to previous 1.70 (colored)

Don't use an unset value as an address

Instead, show usage if no address is passed.

Revision 1.70 / (download) - annotate - [select for diffs], Fri Sep 5 09:27:24 2014 UTC (6 years, 3 months ago) by matt
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.69: +10 -12 lines
Diff to previous 1.69 (colored)

Try not to use f_data, use f_{vnode,socket,pipe,mqueue,kqueue,ksem} to get
a correctly typed pointer.

Revision 1.69 / (download) - annotate - [select for diffs], Sun Jan 6 03:34:52 2013 UTC (7 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, khorben-n900, agc-symver-base, agc-symver
Changes since 1.68: +2 -32 lines
Diff to previous 1.68 (colored)

remove previous, dmesg just works.

Revision 1.68 / (download) - annotate - [select for diffs], Sun Jan 6 03:23:55 2013 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.67: +32 -2 lines
Diff to previous 1.67 (colored)

Add "show dmesg" that prints the contents of the message buffer.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Jan 5 15:23:27 2013 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.66: +16 -2 lines
Diff to previous 1.66 (colored)

Add "show panic" that shows the current panic string. two ports had it, and
it could be easily made MI.

Revision 1.66 / (download) - annotate - [select for diffs], Sat Dec 3 16:25:49 2011 UTC (9 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp
Branch point for: tls-maxphys
Changes since 1.65: +16 -6 lines
Diff to previous 1.65 (colored)

If we are DIAGNOSTIC don't try to go further if we failed to take the
lock, because we are going to trigger a KASSERT. Also hold the lock
longer and take the proc lock for kpsignal(). Maybe we should add
mutex_steal() and mutex_return() for the debugger? Lock correction
suggestion from jmcneill.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Dec 2 23:57:58 2011 UTC (9 years ago) by christos
Branch: MAIN
Changes since 1.64: +6 -3 lines
Diff to previous 1.64 (colored)

deal with the proc_lock mutex.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:51 2011 UTC (9 years, 5 months ago) by rmind
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.63: +3 -3 lines
Diff to previous 1.63 (colored)

Welcome to 5.99.53!  Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.

Revision 1.63 / (download) - annotate - [select for diffs], Tue May 31 03:40:22 2011 UTC (9 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.62: +41 -2 lines
Diff to previous 1.62 (colored)

re-instate db_kill_proc

Revision 1.62 / (download) - annotate - [select for diffs], Sun Jul 19 02:37:33 2009 UTC (11 years, 4 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr
Changes since 1.61: +5 -2 lines
Diff to previous 1.61 (colored)

Add #ifdef MQUEUE for db_show_mqueue_cmd().

XXX: Wrong.  DDB should be dynamic, modular, etc.

Revision 1.61 / (download) - annotate - [select for diffs], Sun May 24 21:41:25 2009 UTC (11 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5
Changes since 1.60: +6 -4 lines
Diff to previous 1.60 (colored)

More changes to improve kern_descrip.c.

- Avoid atomics in more places.
- Remove the per-descriptor mutex, and just use filedesc_t::fd_lock.
  It was only being used to synchronize close, and in any case we needed
  to take fd_lock to free the descriptor slot.
- Optimize certain paths for the <NDFDFILE case.
- Sprinkle more comments and assertions.
- Cache more stuff in filedesc_t.
- Fix numerous minor bugs spotted along the way.
- Restructure how the open files array is maintained, for clarity and so
  that we can eliminate the membar_consumer() call in fd_getfile().  This is
  mostly syntactic sugar; the main functional change is that fd_nfiles now
  lives alongside the open file array.

Some measurements with libmicro:

- simple file syscalls are like close() are between 1 to 10% faster.
- some nice improvements, e.g. poll(1000) which is ~50% faster.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Mar 21 13:06:39 2009 UTC (11 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.59: +21 -18 lines
Diff to previous 1.59 (colored)

Make 'show event', 'dmesg' work with crash(8).
XXX dmesg fails exactly the same way as /sbin/dmesg.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Mar 9 06:07:05 2009 UTC (11 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.58: +6 -2 lines
Diff to previous 1.58 (colored)

include <stdbool.h> if not _KERNEL, and don't include kauth.h if _KERNEL.

now crash builds on i386.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Mar 8 11:40:00 2009 UTC (11 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.57: +3 -4 lines
Diff to previous 1.57 (colored)

include ddb headers *after* sys/types.h or sys/param.h.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Mar 7 22:02:17 2009 UTC (11 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.56: +26 -161 lines
Diff to previous 1.56 (colored)

Make ddb compile and work in userspace. Mostly this is comprised of three
types of changes:

- Add a few new methods to replace stuff like p_find(), CPU_INFO_FOREACH.

- Use db_read_bytes() instead of accessing kernel structures directly,
  and similar changes.

- Add ifdef _KERNEL where the above hasn't been done, and an XXX comment.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Feb 18 13:31:59 2009 UTC (11 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.55: +11 -2 lines
Diff to previous 1.55 (colored)

- fix vmem unittest.  rename VMEM_DEBUG so that it won't be abused again.
- reimplement vmem sanity checks with less code duplication.
- reimplement ddb vmem-related commands in a more consistent ways.
  remove automatic whatis.

Revision 1.55 / (download) - annotate - [select for diffs], Wed Feb 4 20:17:58 2009 UTC (11 years, 10 months ago) by ad
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.54: +25 -21 lines
Diff to previous 1.54 (colored)

Default 'show all procs' to /l. People tend to type 'ps' without modifiers
when providing information about deadlocks. Without the thread info it's
not very useful.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Nov 25 15:14:07 2008 UTC (12 years ago) by ad
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.53: +10 -2 lines
Diff to previous 1.53 (colored)

Add some basic DDB stuff for modules.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Nov 14 23:37:50 2008 UTC (12 years ago) by ad
Branch: MAIN
Changes since 1.52: +5 -2 lines
Diff to previous 1.52 (colored)

ifdef AIO

Revision 1.52 / (download) - annotate - [select for diffs], Fri Oct 3 14:52:11 2008 UTC (12 years, 2 months ago) by rmind
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, netbsd-5-base, netbsd-5-0-RC2, netbsd-5-0-RC1, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)

Replace more intptr_t to uintptr_t when casting VA.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Jul 14 10:15:11 2008 UTC (12 years, 4 months ago) by blymn
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Changes since 1.50: +11 -7 lines
Diff to previous 1.50 (colored)

Take care not to dereference NULL datapointer from fd table
Make output more readable and label what lock we are examining.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Jul 10 13:28:23 2008 UTC (12 years, 4 months ago) by blymn
Branch: MAIN
Changes since 1.49: +7 -8 lines
Diff to previous 1.49 (colored)

Fix indents.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Jul 10 12:42:24 2008 UTC (12 years, 4 months ago) by blymn
Branch: MAIN
Changes since 1.48: +51 -6 lines
Diff to previous 1.48 (colored)

Add a show files command that prints the vnodes associated with a
given struct proc and, if LOCKDEBUG is built in, the lock status of
the uvmobject.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Dec 2 19:35:33 2007 UTC (13 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, wrstuden-revivesa-base-1, wrstuden-revivesa-base, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, ad-socklock-base1
Branch point for: yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl, mjf-devfs2, haad-dm
Changes since 1.47: +17 -27 lines
Diff to previous 1.47 (colored)

ps/w: display LWP info.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Sep 7 18:56:07 2007 UTC (13 years, 3 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.46: +10 -2 lines
Diff to previous 1.46 (colored)

Implementation of POSIX message queues.

Reviewed by: <ad>, <tech-kern>

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jul 19 21:54:51 2007 UTC (13 years, 4 months ago) by dsl
Branch: MAIN
CVS Tags: matt-mips64-base, hpcarm-cleanup
Branch point for: matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.45: +4 -4 lines
Diff to previous 1.45 (colored)

include cdefs.h before opt_xxx.h

Revision 1.45 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:47 2007 UTC (13 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.44: +17 -11 lines
Diff to previous 1.44 (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.44 / (download) - annotate - [select for diffs], Thu May 17 14:51:37 2007 UTC (13 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.43: +4 -29 lines
Diff to previous 1.43 (colored)

merge yamt-idlelwp branch.  asked by core@.  some ports still needs work.

from doc/BRANCHES:

	idle lwp, and some changes depending on it.

	1. separate context switching and thread scheduling.
	   (cf. gmcgarry_ctxsw)
	2. implement idle lwp.
	3. clean up related MD/MI interfaces.
	4. make scheduler(s) modular.

Revision 1.43 / (download) - annotate - [select for diffs], Mon Apr 30 14:44:30 2007 UTC (13 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.42: +9 -2 lines
Diff to previous 1.42 (colored)

Import of POSIX Asynchronous I/O.
Seems to be quite stable. Some work still left to do.

Please note, that syscalls are not yet MP-safe, because
of the file and vnode subsystems.

Reviewed by: <tech-kern>, <ad>

Revision 1.42 / (download) - annotate - [select for diffs], Thu Feb 22 04:38:06 2007 UTC (13 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.41: +8 -8 lines
Diff to previous 1.41 (colored)

Fix lossage from boolean_t -> bool and updated x86 bus_dma.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:26 2007 UTC (13 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

Merge newlock2 to head.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:44 2006 UTC (14 years ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, newlock2-nbase, newlock2-base, 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, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.39: +14 -14 lines
Diff to previous 1.39 (colored)

__unused removal on arguments; approved by core.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Oct 12 01:30:50 2006 UTC (14 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.38: +14 -8 lines
Diff to previous 1.38 (colored)

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

Revision 1.38 / (download) - annotate - [select for diffs], Sun May 14 21:25:49 2006 UTC (14 years, 6 months ago) by elad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.37: +4 -3 lines
Diff to previous 1.37 (colored)

integrate kauth.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Jan 22 01:08:50 2006 UTC (14 years, 10 months ago) by uwe
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

db_show_sched_qs: fix pointer cast lint considers troublesome.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Jan 22 00:50:51 2006 UTC (14 years, 10 months ago) by uwe
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

Add /l to show all procs usage.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Jan 22 00:47:50 2006 UTC (14 years, 10 months ago) by uwe
Branch: MAIN
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

This is not IOCCC.  Replace " >"[cp == p] with conditional expression.
Makes lint happy.  Probably generates better code too (does on sh3).

Revision 1.34 / (download) - annotate - [select for diffs], Sat Dec 3 22:47:25 2005 UTC (15 years ago) by he
Branch: MAIN
CVS Tags: ktrace-lwp-base
Branch point for: yamt-uio_vmspace
Changes since 1.33: +3 -2 lines
Diff to previous 1.33 (colored)

After addition of "show all pools", we now need <sys/pool.h> here.
Fixes build problem for mac68k.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Dec 1 13:21:05 2005 UTC (15 years ago) by yamt
Branch: MAIN
Changes since 1.32: +9 -2 lines
Diff to previous 1.32 (colored)

add "show all pools" command for ddb.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Oct 15 17:29:11 2005 UTC (15 years, 1 month ago) by yamt
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
Changes since 1.31: +6 -4 lines
Diff to previous 1.31 (colored)

- change the way to specify a bufq strategy.  (by string rather than by number)
- rather than embedding bufq_state in driver softc,
  have a pointer to the former.
- move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c.
- rename method to strategy for consistency.
- move some definitions which don't need to be exposed to the rest of kernel
  from sys/bufq.h to sys/bufq_impl.h.
  (is it better to move it to kern/ or somewhere?)
- fix some obvious breakage in dev/qbus/ts.c.  (not tested)

Revision 1.31 / (download) - annotate - [select for diffs], Wed Jun 1 12:25:27 2005 UTC (15 years, 6 months ago) by drochner
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.30: +11 -10 lines
Diff to previous 1.30 (colored)

more constification fallout

Revision 1.30 / (download) - annotate - [select for diffs], Sat Feb 26 23:04:17 2005 UTC (15 years, 9 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, 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-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored)

nuke trailing whitespace

Revision 1.29 / (download) - annotate - [select for diffs], Tue Jul 27 02:15:07 2004 UTC (16 years, 4 months ago) by nathanw
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.28: +9 -3 lines
Diff to previous 1.28 (colored)

Make ddb's "show sched_qs" aware of big-endian sched_qs arrangements.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Sep 20 03:02:04 2003 UTC (17 years, 2 months ago) by thorpej
Branch: MAIN
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-1, netbsd-2-0-base, 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, netbsd-2-0, netbsd-2
Changes since 1.27: +26 -2 lines
Diff to previous 1.27 (colored)

Add a "show sched_qs" command to dump the run queues.  Format is:
 1	pid.lid (p_comm)
	pid.lid (p_comm)
 ...

If a queue has procs, but no sched_whichqs bit, it shows:
!1	pid.lid (p_comm)

Revision 1.27 / (download) - annotate - [select for diffs], Sun Sep 7 14:14:36 2003 UTC (17 years, 3 months ago) by uwe
Branch: MAIN
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored)

Widen FLAGS column for ps/l so that all defined l_flag flags fit.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Aug 7 16:30:49 2003 UTC (17 years, 4 months ago) by agc
Branch: MAIN
Changes since 1.25: +3 -7 lines
Diff to previous 1.25 (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.25 / (download) - annotate - [select for diffs], Wed Jul 2 07:05:29 2003 UTC (17 years, 5 months ago) by simonb
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.24: +10 -2 lines
Diff to previous 1.24 (colored)

Allow the dmesg command to show the last N bytes of the kernel message
buffer.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jun 29 22:29:55 2003 UTC (17 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.23: +1 -2 lines
Diff to previous 1.23 (colored)

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

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:29 2003 UTC (17 years, 5 months ago) by darrenr
Branch: MAIN
Changes since 1.22: +4 -3 lines
Diff to previous 1.22 (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.22 / (download) - annotate - [select for diffs], Thu May 15 13:18:18 2003 UTC (17 years, 6 months ago) by atatat
Branch: MAIN
Changes since 1.21: +7 -2 lines
Diff to previous 1.21 (colored)

(1) Don't print the message buffer (via ddb's dmesg command) if the
message buffer has not yet been set up, mimicking code from the top of
the sysctl routine for retrieving the message buffer.

(2) Add a /l modifier to the trace command.  This makes it print the
backtrace using printf() instead of db_printf(), which has the nice
side-effect of also putting it into the message buffer.  A kernel with
ddb in it but disabled (ie, ddb.onpanic set to zero) will print a
backtrace (which ends up in the message buffer) before dumping (or
not, depending on the value of kern.dump_on_panic) and rebooting, but
if ddb is not disabled, the backtrace is not printed, and there's no
way to get it to display a backtrace such that you can retrieve it
after the dump.  The backtrace printed by gdb is sometimes a little
different.

(3) Documentation for the above.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Apr 28 02:49:55 2003 UTC (17 years, 7 months ago) by briggs
Branch: MAIN
Changes since 1.20: +17 -2 lines
Diff to previous 1.20 (colored)

Add a rudimentary 'trap to kgdb' command if KGDB is defined.  This allows
systems with only one serial port for console, etc., to have at least some
basic access to remote-kgdb-over-serial, even if it is a bit awkward.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Feb 4 01:21:04 2003 UTC (17 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.19: +2 -33 lines
Diff to previous 1.19 (colored)

New callout implementation.  This is based on callwheel implementation
done by Artur Grabowski and Thomas Nordin for OpenBSD, which is more
efficient in several ways than the callwheel implementation that it is
replacing.  It has been adapted to our pre-existing callout API, and
also provides the slightly more efficient (and much more intuitive)
API (adapted to the callout_*() naming scheme) that the OpenBSD version
provides.

Among other things, this shaves a bunch of cycles off rescheduling-in-
the-future a callout which is already scheduled, which the common case
for TCP timers (notably REXMT and KEEP).

The API has been simplified a bit, as well.  The (very confusing to
a good many people) "ACTIVE" state for callouts has gone away.  There
is now only "PENDING" (scheduled to fire in the future) and "EXPIRED"
(has fired, and the function called).

Kernel version bump not done; we'll ride the 1.6N bump that happened
with the malloc(9) change.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jan 23 12:41:33 2003 UTC (17 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.18: +11 -8 lines
Diff to previous 1.18 (colored)

Zombie procs have no lwps.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jan 18 08:54:22 2003 UTC (17 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.17: +44 -17 lines
Diff to previous 1.17 (colored)

Merge the nathanw_sa branch.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Aug 26 11:34:29 2002 UTC (18 years, 3 months ago) by scw
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, fvdl_fs64_base
Branch point for: gmcgarry_ucred
Changes since 1.16: +4 -3 lines
Diff to previous 1.16 (colored)

Casting from a pointer, to a db_expr_t, has to go via an intptr_t.
(db_expr_t == int64_t on sh5, for example).

Revision 1.16 / (download) - annotate - [select for diffs], Fri Feb 15 07:33:54 2002 UTC (18 years, 9 months ago) by simonb
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, 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, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.15: +12 -31 lines
Diff to previous 1.15 (colored)

ANSIfy, KNF.
Make some variables and functions static when not used outside of a module.
Make variables in headers extern.
Delete the unused db_find_watchpoint() function.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Nov 12 22:54:07 2001 UTC (19 years ago) by lukem
Branch: MAIN
Changes since 1.14: +4 -1 lines
Diff to previous 1.14 (colored)

add RCSIDs

Revision 1.14 / (download) - annotate - [select for diffs], Sat Sep 15 18:20:53 2001 UTC (19 years, 2 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, pre-chs-ubcperf, post-chs-ubcperf
Changes since 1.13: +11 -13 lines
Diff to previous 1.13 (colored)

use a for loop instead of goto.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Sep 11 04:32:19 2001 UTC (19 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.12: +20 -10 lines
Diff to previous 1.12 (colored)

Optimization suggested by Bill Sommerfeld:  Keep a hint as to the
"earliest" firing callout in a bucket.  This allows us to skip
the scan up the bucket if no callouts are due in the bucket.

A cheap O(1) hint update is done at callout insertion (if new callout
is earlier than hint) and removal (is bucket empty).  A thorough
refresh of the hint is done when the bucket is traversed.

This doesn't matter much on machines with small values of hz
(e.g. i386), but on systems with large values of hz (e.g. Alpha),
it has a definite positive effect.

Also, keep the callwheel stats in evcnts, so that you can view them
with "vmstat -e".

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jul 31 04:28:16 2001 UTC (19 years, 4 months ago) by atatat
Branch: MAIN
CVS Tags: thorpej-devvp-base
Branch point for: thorpej-devvp
Changes since 1.11: +40 -1 lines
Diff to previous 1.11 (colored)

Add an easy way to dump the message buffer from ddb.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Nov 28 21:44:34 2000 UTC (20 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa, kqueue
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored)

Make sure values for a %llx are long long.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Nov 28 19:20:37 2000 UTC (20 years ago) by eeh
Branch: MAIN
Changes since 1.9: +17 -2 lines
Diff to previous 1.9 (colored)

Implement db_show_callout() again.

Revision 1.9 / (download) - annotate - [select for diffs], Thu May 25 19:57:36 2000 UTC (20 years, 6 months ago) by jhawk
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Interface change: db_printsym() takes a third argument, pr, a function
pointer indicating how to print the symbol. This allows db_printsym()
to called in places where db_printf() is not an appropriate output
function.

While straightforward, apologies in advance if I've introduced any minor
syntax errors; I was unable to test compilation this on all the affected
platforms.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Mar 26 20:24:12 2000 UTC (20 years, 8 months ago) by kleink
Branch: MAIN
Changes since 1.7: +4 -3 lines
Diff to previous 1.7 (colored)

Cast timeval members to types we know the printf conversions of.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 23 07:01:25 2000 UTC (20 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.6: +2 -22 lines
Diff to previous 1.6 (colored)

New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jul 22 21:11:26 1999 UTC (21 years, 4 months ago) by thorpej
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.5: +2 -1 lines
Diff to previous 1.5 (colored)

XXX LOCKING XXX of allproc; DDB runs with interrupts blocked, and MD
code should suspend other processors, so this probably isn't a problem,
but the comment is added anyhow.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Sep 8 23:50:13 1998 UTC (22 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, 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: chs-ubc2
Changes since 1.4: +9 -10 lines
Diff to previous 1.4 (colored)

- Use proclists[], rather than checking allproc and zombproc explicitly.
- Add some comments about locking.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Aug 13 02:10:50 1998 UTC (22 years, 3 months ago) by eeh
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Merge paddr_t changes into the main branch.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jan 31 04:14:48 1998 UTC (22 years, 10 months ago) by ross
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.2: +23 -10 lines
Diff to previous 1.2 (colored)

Print more info on ps/w, note the current proc, and properly declare db_maxoff.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Oct 24 18:26:36 1997 UTC (23 years, 1 month ago) by chuck
Branch: MAIN
Changes since 1.1: +56 -19 lines
Diff to previous 1.1 (colored)

fix printf formatting of "ps" (aka "show all proc") so that lines never
overflow (always hated that).

replaced "/m" flag with:
	/a == show process address info
	/n == show normal process info [currently the default]
	/w == show process wait/emul info

Revision 1.1 / (download) - annotate - [select for diffs], Wed May 21 19:54:00 1997 UTC (23 years, 6 months ago) by gwr
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi

Move some DDB stuff here from kern_clock.c and kern_proc.c

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>