freebsd-dev/sys/ddb
Julian Elischer 93a7aa79d6 Add code to ddb to allow backtracing an arbitrary thread.
(show thread {address})

Remove the IDLE kse state and replace it with a change in
the way threads sahre KSEs. Every KSE now has a thread, which is
considered its "owner" however a KSE may also be lent to other
threads in the same group to allow completion of in-kernel work.
n this case the owner remains the same and the KSE will revert to the
owner when the other work has been completed.

All creations of upcalls etc. is now done from
kse_reassign() which in turn is called from mi_switch or
thread_exit(). This means that special code can be removed from
msleep() and cv_wait().

kse_release() does not leave a KSE with no thread any more but
converts the existing thread into teh KSE's owner, and sets it up
for doing an upcall. It is just inhibitted from being scheduled until
there is some reason to do an upcall.

Remove all trace of the kse_idle queue since it is no-longer needed.
"Idle" KSEs are now on the loanable queue.
2002-12-28 01:23:07 +00:00
..
db_access.c
db_access.h Remove __P. 2002-03-20 05:14:42 +00:00
db_break.c Remove __P. 2002-03-20 05:14:42 +00:00
db_break.h Remove __P. 2002-03-20 05:14:42 +00:00
db_command.c Add code to ddb to allow backtracing an arbitrary thread. 2002-12-28 01:23:07 +00:00
db_command.h Remove __P. 2002-03-20 05:14:42 +00:00
db_elf.c Garbage-collected __ELF__ ifdefs. 2002-09-15 22:28:39 +00:00
db_examine.c - Rename the DDB specific %z printf format to %y. 2002-10-25 19:41:32 +00:00
db_expr.c Don't assume that pointers are 4 bytes or sizeof(int) in size. This fixes 2002-06-25 15:59:24 +00:00
db_input.c Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
db_kld.c Reconnect db_elf.c to the build (now under "options DDB_NOKLDSYM"). It 2002-05-07 10:59:52 +00:00
db_lex.c Remove __P. 2002-03-20 05:14:42 +00:00
db_lex.h Remove __P. 2002-03-20 05:14:42 +00:00
db_output.c Remove __P. 2002-03-20 05:14:42 +00:00
db_output.h Remove __P. 2002-03-20 05:14:42 +00:00
db_print.c
db_ps.c Add code to ddb to allow backtracing an arbitrary thread. 2002-12-28 01:23:07 +00:00
db_run.c Split the declaration and the initialization of two variables. 2002-06-23 20:03:03 +00:00
db_sym.c Remove __P. 2002-03-20 05:14:42 +00:00
db_sym.h When talking about c_db_sym_t, mention that it is not just like db_sym_t: 2002-08-14 17:56:47 +00:00
db_sysctl.c
db_trap.c
db_variables.c Remove __P. 2002-03-20 05:14:42 +00:00
db_variables.h Remove __P. 2002-03-20 05:14:42 +00:00
db_watch.c Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
db_watch.h
db_write_cmd.c
ddb.h Add code to ddb to allow backtracing an arbitrary thread. 2002-12-28 01:23:07 +00:00