This allows ddb(4) commands to construct a static dumperinfo during
panic/debug and invoke doadump(false) using the provided dumper
configuration (always inserted first in the list).
The intended usecase is a ddb(4)-time netdump(4) command.
Differential D21448
Add a very limited DDB dumpon(8)-alike to MI dumper code cem on Aug 28 2019, 3:08 AM. Authored by Tags None Referenced Files
Subscribers
Details This allows ddb(4) commands to construct a static dumperinfo during The intended usecase is a ddb(4)-time netdump(4) command.
Diff Detail
Event TimelineComment Actions Like a consumer? :-) Work is in progress; I intend to post that as a separate revision. Comment Actions Ah, ok. Looks fine to me, but KPIs for use by DDB are typically named *_ddb (witness_ddb_*, stack_*_ddb, linker_ddb_*, etc.), so I'd suggest naming it dumper_ddb_{insert,remove}() instead. db_* is for interfaces implemented by DDB itself. Comment Actions In the absence of consumers it's hard to see whether dumper_remove() might ever try to free one of the static dumperinfos. Depending on how it pans out, it might make sense to give static dumperinfos a special flag to help catch that. Comment Actions Thanks — I'll plan to make the name change. Re: the flag, the idea is that this type of dumper is only added to the list during db/panic time, when no external event would cause a dumper_remove (unless I'm forgetting something). And then removed before normal context resumes (if !panic). So maybe the flag is redundant? It wouldn't hurt to add in any case. |