Re: git: 1926d5cef6ea - main - init_main: Record completed SYSINITs

From: Colin Percival <cperciva_at_freebsd.org>
Date: Thu, 07 Sep 2023 01:46:59 UTC
On 9/6/23 18:12, Zhenlei Huang wrote:
>> On Sep 7, 2023, at 2:37 AM, Colin Percival <cperciva@FreeBSD.org> wrote:
>>     init_main: Record completed SYSINITs
>>
>>     When removing them from sysinit_list, append them to sysinit_done_list;
>>     print this list from 'show sysinit' along with the list of future
>>     sysinits.
> 
> So the `sysinit_done_list` is for DDB only.

Well... sort of.  You can open up kgdb and run 'p sysinit_done_list'.

>> static STAILQ_HEAD(sysinitlist, sysinit) sysinit_list;
>> +static struct sysinitlist sysinit_done_list =
>> +    STAILQ_HEAD_INITIALIZER(sysinit_done_list);
> 
> Then it should be wrapped around with #ifdef DDB and #endif
I considered that, but since we're literally talking about 2 pointers of
memory I figured it wasn't worth making it conditional.

-- 
Colin Percival
FreeBSD Deputy Release Engineer & EC2 platform maintainer
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid