NetBSD/sys/ddb
ad d991fcb3b6 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.
2009-05-24 21:41:25 +00:00
..
db_access.c Make ddb compile and work in userspace. Mostly this is comprised of three 2009-03-07 22:02:16 +00:00
db_access.h Make ddb compile and work in userspace. Mostly this is comprised of three 2009-03-07 22:02:16 +00:00
db_aout.c TRUE -> true, FALSE -> false 2007-02-22 06:34:42 +00:00
db_aout.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
db_break.c TRUE -> true, FALSE -> false 2007-02-22 06:34:42 +00:00
db_break.h Fix lossage from boolean_t -> bool and updated x86 bus_dma. 2007-02-22 04:38:02 +00:00
db_command.c Make 'show event', 'dmesg' work with crash(8). 2009-03-21 13:06:39 +00:00
db_command.h Make ddb compile and work in userspace. Mostly this is comprised of three 2009-03-07 22:02:16 +00:00
db_cpu.c include <stdbool.h> if not _KERNEL, and don't include kauth.h if _KERNEL. 2009-03-09 06:07:05 +00:00
db_cpu.h Make ddb compile and work in userspace. Mostly this is comprised of three 2009-03-07 22:02:16 +00:00
db_elf.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
db_examine.c Make ddb compile and work in userspace. Mostly this is comprised of three 2009-03-07 22:02:16 +00:00
db_expr.c Make ddb compile and work in userspace. Mostly this is comprised of three 2009-03-07 22:02:16 +00:00
db_extern.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
db_input.c Make ddb compile and work in userspace. Mostly this is comprised of three 2009-03-07 22:02:16 +00:00
db_interface.h - fix vmem unittest. rename VMEM_DEBUG so that it won't be abused again. 2009-02-18 13:31:59 +00:00
db_kernel.c include ddb headers *after* sys/types.h or sys/param.h. 2009-03-08 11:40:00 +00:00
db_lex.c Make ddb compile and work in userspace. Mostly this is comprised of three 2009-03-07 22:02:16 +00:00
db_lex.h make DDB_COMMANDONENTER sysctl. (ddb.commandonenter) 2005-11-27 13:05:28 +00:00
db_lwp.c include <stdbool.h> if not _KERNEL, and don't include kauth.h if _KERNEL. 2009-03-09 06:07:05 +00:00
db_lwp.h Make ddb compile and work in userspace. Mostly this is comprised of three 2009-03-07 22:02:16 +00:00
db_output.c Make ddb compile and work in userspace. Mostly this is comprised of three 2009-03-07 22:02:16 +00:00
db_output.h Remove all the __P() from sys (excluding sys/dist) 2009-03-14 14:45:51 +00:00
db_print.c Make ddb compile and work in userspace. Mostly this is comprised of three 2009-03-07 22:02:16 +00:00
db_proc.c include <stdbool.h> if not _KERNEL, and don't include kauth.h if _KERNEL. 2009-03-09 06:07:05 +00:00
db_proc.h Make ddb compile and work in userspace. Mostly this is comprised of three 2009-03-07 22:02:16 +00:00
db_run.c Minor clenaup - db_cmd_loop_done is a bool nowadays, so use true/false 2007-09-23 23:55:54 +00:00
db_run.h Fix lossage from boolean_t -> bool and updated x86 bus_dma. 2007-02-22 04:38:02 +00:00
db_sym.c Make ddb compile and work in userspace. Mostly this is comprised of three 2009-03-07 22:02:16 +00:00
db_sym.h Fix lossage from boolean_t -> bool and updated x86 bus_dma. 2007-02-22 04:38:02 +00:00
db_trap.c Replace the Mach-derived boolean_t type with the C99 bool type. A 2007-02-21 22:59:35 +00:00
db_user.h Make ddb compile and work in userspace. Mostly this is comprised of three 2009-03-07 22:02:16 +00:00
db_variables.c Switch the default value (if no options DDB_ONPANIC is defined) for 2009-03-11 23:22:57 +00:00
db_variables.h Fix lossage from boolean_t -> bool and updated x86 bus_dma. 2007-02-22 04:38:02 +00:00
db_watch.c TRUE -> true, FALSE -> false 2007-02-22 06:34:42 +00:00
db_watch.h Fix lossage from boolean_t -> bool and updated x86 bus_dma. 2007-02-22 04:38:02 +00:00
db_write_cmd.c Make ddb compile and work in userspace. Mostly this is comprised of three 2009-03-07 22:02:16 +00:00
db_xxx.c More changes to improve kern_descrip.c. 2009-05-24 21:41:25 +00:00
ddb.h add boilerplate missed in initial commit 2009-04-10 22:29:30 +00:00
ddbvar.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
files.ddb KGDB does no longer refers to ddb/db_access. Fixes compilation problems of KGDB 2009-03-31 15:50:45 +00:00
TODO merge ktrace-lwp. 2005-12-11 12:16:03 +00:00