Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 May 2023 17:37:14 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Alexander Richardson <arichardson@freebsd.org>
Cc:        Colin Percival <cperciva@freebsd.org>, src-committers <src-committers@freebsd.org>, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: 40b287054521 - main - mi_startup: Instrument the bubblesort with TSLOG
Message-ID:  <04d7c000-d26d-e918-ce48-3381ebfa5c8b@selasky.org>
In-Reply-To: <CA%2BZ_v8obns91AHmY50jWRKe=Tt94fYM0SLy=vEiGzsydFJU0Lg@mail.gmail.com>
References:  <202305191349.34JDnp8J060770@gitrepo.freebsd.org> <c9fd849b-5293-8cae-f08d-7e233799d3bd@selasky.org> <CA%2BZ_v8obns91AHmY50jWRKe=Tt94fYM0SLy=vEiGzsydFJU0Lg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5/19/23 16:48, Alexander Richardson wrote:
> Sorting at compile time would be ideal and in theory the priority argument
> in the constructor attribute should work.

Hi,

SYSINIT's in FreeBSD need 64-bits of priority and I'm not sure if clang 
supports that. Could probably do something there though.

Having all the SYSINIT's printed at compile time, maybe containing some 
additional debug output in a single C-file, is not only educational, but 
also nice to have when debugging startup issues. This is something I 
developed many many years ago for an embedded project, mimicing the 
FreeBSD kernel.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?04d7c000-d26d-e918-ce48-3381ebfa5c8b>