summaryrefslogtreecommitdiff
path: root/sys/ddb
AgeCommit message (Collapse)Author
2023-05-25ddb: PR kern/57435 - fix duplicate "show mount"uwe
Bolivar cannot carry double. One of these commands should have been "show mounts", cf. page/pages and a few others. While here fix the function name to be db_show_all_mounts to conform to the pattern.
2022-10-27ddb(4): Declare extern db_active if _KMEMUSER too, not just DDB.riastradh
crash(8) is built with _KMEMUSER defined but DDB not defined except for a few specific files or on MIPS. Seems to me crash(8) should really be built with DDB defined in all .c files but that leads to other fallout I'm not really inclined to diagnose right now.
2022-10-26ddb/db_active.h: New home for extern db_active.riastradh
This can be included unconditionally, and db_active can then be queried unconditionally; if DDB is not in the kernel, then db_active is a constant zero. Reduces need for #include opt_ddb.h, #ifdef DDB.
2022-08-30ddb(9): Make db_symstr safe to use concurrently with pserialize(9).riastradh
2022-08-30ddb(4): Use db_num_to_strbuf in db_symstr.riastradh
Simplifies it and will make safer to use.
2022-08-30ddb(9): New db_num_to_strbuf.riastradh
Like db_num_to_str, but writes to caller-provided buffer instead of returning pointer to static storage.
2022-04-28Remove 'a' modifier from "show vmem". It was removed in sbur_vmem.c rev. 1.55.msaitoh
2022-04-20ddb: guard invocation of db_cmd_on_enter properly.uwe
db_command_loop - do not ignore the return value from setjmp used to guard db_cmd_on_enter. We do not want to re-execute the enter command if it fails. Note that "fails" includes e.g. aborting long output from the enter command with "q" at the --db more-- prompt, which is quite likely as the default enter command is "bt". While here, don't even bother with the whole song and dance if the enter command is not set.
2022-04-10fix various typos in comments and output/log messages.andvar
2022-03-28sys: Split struct device into a private device_impl.h.riastradh
Include this only inside autoconf itself, and a few files that abuse autoconf in ways I can't confidently make easy fixes for. XXX kernel ABI change requires bump -- no more use of struct device internals allowed, previously done by some drivers
2021-12-13mv out: label into the #ifdef _KERNEL section, as it is onlykre
referenced from there. Hopefully ubbreak buikd of usr.sbin/crash
2021-12-13ddb: fix function names of "noreturn" functions in stack traces.chs
when looking up function names for stack traces (where the addresses are the return addresses of function calls), if the address is the first instruction in the function, assume that the function being called is marked "noreturn" and that the function containing the call is actually the function immediately before the address that we looked up. to find the correct function name, do the lookup again with (address - 1) and then add one to the offset within the function that we find.
2021-10-10Add a "show kqueue <addr>" command.thorpej
2021-10-06Sort variable declarations. Add short comments while here.uwe
The list was neither sorted nor grouped logically when db_dumpstack and db_panicstackframes were added to modify the panic behavior.
2021-10-06KNF: The function type must be declared on a line by itself.uwe
2021-10-06Add DDB_DUMPSTACK to opt_ddbparam.h.uwe
PR kern/56445
2021-10-06One option per-line for opt_ddbparam.h options. Sort.uwe
2021-08-21fix mainly same typos as in my previous commit but outside sys/dev/dm.andvar
2021-08-13fix typos in words "pointer" and s/fram /frame/andvar
2021-08-09fix various typos in compatibility, mainly in comments.andvar
2021-07-20need <sys/param.h> for COHERENCY_UNITchristos
2021-04-18don't provide db_lstacktrace() for crash (yet?).mrg
2021-04-18db_lstacktrace() can't use db_stacktrace_print and log() directly.mrg
log() takes a 'int level' first argument, that must be supplied. add an inline wrapper that calls vlog() with LOG_INFO, and the supplied va_list. (not noticed because this macro is not used anywhere in src but i have a use in some uncommited code, that now failed to compile.)
2021-04-12avoid assigning both signed and unsigned variables in the same statement.mrg
2021-02-23introduce DDB_END_CMD and replace more than 20 copies of the samemrg
list of NULLs and 0. idea from rillig@. all touched ports built, several booted.
2021-02-10Allow for MD code to use a different function than db_stack_trace_print()simonb
to be used with db_stacktrace() and friends by pre-defining the db_stacktrace_print macro.
2021-02-06defparam DB_MAX_WIDTHdbj
2021-01-11For "ps/a" print all of p_comm instead of just the first 10 chars, add asimonb
space after PID, left justify the command name.
2020-12-19update several items that are done or dead.mrg
2020-10-30Remove "also;"skrll
2020-10-30Add a "show fdt" ddb commandskrll
2020-10-30Sort the db_show_cmd entriesskrll
2020-10-30Put the 'added from all sub cmds' comment above the four commands thatskrll
were added as part of the work in r1.98
2020-10-30Whitespaceskrll
2020-10-30Trailing whitespaceskrll
2020-07-29db_get_line - raw access to the DDB command line.uwe
Provide a way for DDB commands to access the remainder of the command line as-is.
2020-06-28Protect against multiple inclusion.simonb
2020-05-31Switch from kmem_intr_alloc(sz, KM_NOSLEEP) to kmem_alloc(sz, KM_SLEEP).rin
Clearly document these functions are *not* for DDB session, but for permanent data storage when initializing DDB.
2020-05-31Revert introduction of db_alloc.h.rin
db_alloc() and friends are already provided in crash.c. Sorry for confusing you...
2020-05-31XXXrin
DDB can be running in the interrupt context, e.g., when activated from console. Therefore, we use kmem_intr_alloc(9) and friends in order to avoid assertion failure.
2020-05-31Introduce db_alloc.h.rin
Provide db_alloc() and friends to userland, i.e., crash(8).
2020-05-23Move proc_lock into the data segment. It was dynamically allocated becausead
at the time we had mutex_obj_alloc() but not __cacheline_aligned.
2020-04-13Handle "no count" properly in db_kernhist_print_cmdskrll
2020-04-04also print the LWP reference count.mlelstv
2020-03-30Remove a.out leftovers (unused)maya
2020-03-10Make the db_kernelonly() macro visible to all files and re-use it.christos
Register access is kernel only.
2020-03-09print a message for the commands crash does not support.christos
Allow "show lock"
2020-02-26Correct PPID of "show all procs/n"hikaru
2020-02-15- Move the LW_RUNNING flag back into l_pflag: updating l_flag without lockad
in softint_dispatch() is risky. May help with the "softint screwup" panic. - Correct the memory barriers around zombies switching into oblivion.
2020-02-01Load struct fdfile::ff_file with atomic_load_consume.riastradh
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.)