Page MenuHomeFreeBSD

brooks (Brooks Davis)
User

Projects

User Details

User Since
Jul 1 2014, 6:02 PM (635 w, 5 h)

Recent Activity

Thu, Aug 27

brooks committed R11:e4be6d84c3fd: devel/llvm23: 23.1.0 Release (authored by brooks).
devel/llvm23: 23.1.0 Release
Thu, Aug 27, 11:59 AM

Wed, Aug 26

brooks added inline comments to D59034: sendfile(2): rework compat implementation.
Wed, Aug 26, 12:39 PM
brooks requested review of D59198: sendfile: remove COMPAT_FREEBSD4 from kern_sendfile.
Wed, Aug 26, 12:34 PM

Tue, Aug 25

brooks added a comment to D59034: sendfile(2): rework compat implementation.
In D59034#1354663, @kib wrote:

Why passing struct sendile_args to kern_sendfile()? This is not how all other kern_* wrappers are done, and IMO is worse than flattening the args. You have to explicitly initialize the literal anyway, which makes it equivalent to list the function's argument in the call.

Tue, Aug 25, 9:56 AM
brooks updated the diff for D59034: sendfile(2): rework compat implementation.
  • freebsd32_copyin_hdtr: take a void *, fix trailer count
  • make copyinuio_t take a void * (but don't update the functions yet)
Tue, Aug 25, 9:56 AM

Thu, Aug 20

brooks committed rG2ff0ca5272c8: uexterror(3): install the right manpage (authored by brooks).
uexterror(3): install the right manpage
Thu, Aug 20, 1:32 PM
brooks committed rG94f86eff72ed: uexterror_gettext: add tests for invalid formats (authored by brooks).
uexterror_gettext: add tests for invalid formats
Thu, Aug 20, 10:42 AM
brooks committed rG95e33099c74d: runtime: add the ability to set exterrors in userspace (authored by brooks).
runtime: add the ability to set exterrors in userspace
Thu, Aug 20, 10:42 AM
brooks committed rG2f024a7cfddd: exterr: relax format restrictions (authored by brooks).
exterr: relax format restrictions
Thu, Aug 20, 10:42 AM
brooks committed rGddf6065122e8: exterr(9): add a few tests of new message formats (authored by brooks).
exterr(9): add a few tests of new message formats
Thu, Aug 20, 10:42 AM
brooks closed D58413: uexterror_gettext: add tests for invalid formats.
Thu, Aug 20, 10:42 AM
brooks closed D58059: runtime: add the ability to set exterrors in userspace.
Thu, Aug 20, 10:42 AM
brooks closed D58060: exterr(9): add a few tests of new message formats.
Thu, Aug 20, 10:42 AM
brooks closed D58058: exterr: relax format restrictions.
Thu, Aug 20, 10:42 AM
brooks committed R11:7df677c128d2: Uses/llvm.mk: add 23 to valid versions list (authored by brooks).
Uses/llvm.mk: add 23 to valid versions list
Thu, Aug 20, 10:18 AM
brooks committed R11:d30aaf1a494b: devel/llvm-devel: add missing patch (authored by brooks).
devel/llvm-devel: add missing patch
Thu, Aug 20, 9:47 AM
brooks added a comment to D59034: sendfile(2): rework compat implementation.

Merging the implementations will avoid future instances of oversights like the one fixed in 4b17776d9afd0009ac8547126c59c97eda0f3fc9 as well as avoiding a third copy of this code from freebsd64 when it lands.

Thu, Aug 20, 9:19 AM
brooks requested review of D59034: sendfile(2): rework compat implementation.
Thu, Aug 20, 9:16 AM

Wed, Aug 19

brooks committed R11:e6173e930111: devel/llvm-devel: new snapshot (authored by brooks).
devel/llvm-devel: new snapshot
Wed, Aug 19, 1:55 PM

Tue, Aug 18

brooks added a comment to D58756: llvm21: Fix build on libcxx 22.

Please name the file following the exiting convention (patch-backport-4bed796a5fea) and produce with --no-prefix.

Tue, Aug 18, 9:04 AM

Sat, Aug 15

brooks committed R11:1b90ca14615b: devel/llvm-devel: fix py-furo depend (authored by brooks).
devel/llvm-devel: fix py-furo depend
Sat, Aug 15, 5:56 PM

Fri, Aug 14

brooks committed R11:a85780960dcb: devel/llvm-devel: new snapshot (authored by brooks).
devel/llvm-devel: new snapshot
Fri, Aug 14, 9:18 AM
brooks committed R11:8855efffd4fa: devel/llvm23: 23.1.0-rc3 (authored by brooks).
devel/llvm23: 23.1.0-rc3
Fri, Aug 14, 9:17 AM

Mon, Aug 3

brooks committed rG7516130eb912: kdump(1): minimally adapt to exterror category sources (authored by brooks).
kdump(1): minimally adapt to exterror category sources
Mon, Aug 3, 9:44 PM
brooks committed rG5dff273d680a: uexterr_gettext(3): support dynamic kernel categories (authored by brooks).
uexterr_gettext(3): support dynamic kernel categories
Mon, Aug 3, 9:44 PM
brooks committed rG295f10230903: exterror(9): dynamic kernel categories (authored by brooks).
exterror(9): dynamic kernel categories
Mon, Aug 3, 9:44 PM
brooks committed rGbbf95a9b8481: exterror(9): split category into multiple sources (authored by brooks).
exterror(9): split category into multiple sources
Mon, Aug 3, 9:44 PM
brooks closed D58412: kdump(1): minimally adapt to exterror category sources.
Mon, Aug 3, 9:44 PM
brooks closed D58238: uexterr_gettext(3): support dynamic kernel categories.
Mon, Aug 3, 9:44 PM
brooks closed D58237: exterror(9): dynamic kernel categories.
Mon, Aug 3, 9:44 PM
brooks closed D58236: exterr: split category into multiple sources.
Mon, Aug 3, 9:44 PM
brooks committed R11:02fb4e16e84b: devel/llvm23: welcome 23.1.0-rc2 (authored by brooks).
devel/llvm23: welcome 23.1.0-rc2
Mon, Aug 3, 6:18 PM
brooks committed R11:9159d5a81604: devel/llvm23: bootstrap from devel/llvm22 (authored by brooks).
devel/llvm23: bootstrap from devel/llvm22
Mon, Aug 3, 6:18 PM
brooks committed rG6880edbfd5aa: rtld: fix indentation of multiline conditional (authored by brooks).
rtld: fix indentation of multiline conditional
Mon, Aug 3, 4:48 PM
brooks accepted D33964: proc: Use more appropriate types for KERN_PROC_VM_LAYOUT.
Mon, Aug 3, 4:47 PM

Jul 28 2026

brooks accepted D58489: rpcgen: Const correctness for C23.

Seems reasonable to me.

Jul 28 2026, 1:55 PM

Jul 27 2026

brooks committed R11:a89113945498: devel/llvm-devel: pre llvm23 branch snapshot (authored by brooks).
devel/llvm-devel: pre llvm23 branch snapshot
Jul 27 2026, 2:13 PM
brooks committed R11:9517234e9af5: devel/llvm22: backport commit 93a67259cf23 from llvm git (authored by brooks).
devel/llvm22: backport commit 93a67259cf23 from llvm git
Jul 27 2026, 10:10 AM
brooks committed R11:a4f732450dd3: devel/llvm12: greatly slim the set of options (authored by brooks).
devel/llvm12: greatly slim the set of options
Jul 27 2026, 10:10 AM
brooks committed R11:8247b52ba488: devel/llvm-{cheri,morello}: new snapshots (authored by brooks).
devel/llvm-{cheri,morello}: new snapshots
Jul 27 2026, 10:10 AM
brooks committed R11:f397b2a6f6f3: devel/oclgrind: update to 26.03.1 (authored by brooks).
devel/oclgrind: update to 26.03.1
Jul 27 2026, 10:10 AM
brooks committed R11:4d0a5a9f13c7: devel/llvm22: 22.1.8 release (authored by brooks).
devel/llvm22: 22.1.8 release
Jul 27 2026, 10:10 AM
brooks updated the diff for D58059: runtime: add the ability to set exterrors in userspace.

Correct feature introduction to 16.0. Bump doc date.

Jul 27 2026, 9:49 AM

Jul 24 2026

brooks updated subscribers of D58059: runtime: add the ability to set exterrors in userspace.
Jul 24 2026, 10:53 AM
brooks added a comment to D58237: exterror(9): dynamic kernel categories.
Jul 24 2026, 10:50 AM
brooks updated the diff for D58412: kdump(1): minimally adapt to exterror category sources.

Put the common case inside the switch statement

Jul 24 2026, 10:49 AM
brooks updated the diff for D58413: uexterror_gettext: add tests for invalid formats.

Actually describe this test

Jul 24 2026, 10:37 AM
brooks updated the diff for D58060: exterr(9): add a few tests of new message formats.

Improve test description

Jul 24 2026, 10:37 AM
brooks updated the diff for D58059: runtime: add the ability to set exterrors in userspace.

Move global struct uexterror and constructor to its own file

Jul 24 2026, 10:36 AM
brooks updated the diff for D58237: exterror(9): dynamic kernel categories.

Switch to rwlock, hoist free outside the locked region.

Jul 24 2026, 10:35 AM

Jul 23 2026

brooks updated the diff for D58413: uexterror_gettext: add tests for invalid formats.

Fix some whitespace

Jul 23 2026, 3:04 PM
brooks requested review of D58413: uexterror_gettext: add tests for invalid formats.
Jul 23 2026, 3:04 PM
brooks updated the summary of D58059: runtime: add the ability to set exterrors in userspace.
Jul 23 2026, 3:01 PM
brooks added inline comments to D58059: runtime: add the ability to set exterrors in userspace.
Jul 23 2026, 3:00 PM
brooks updated the diff for D58059: runtime: add the ability to set exterrors in userspace.

Move to its own file, document, update copyrights

Jul 23 2026, 3:00 PM
brooks updated the diff for D58238: uexterr_gettext(3): support dynamic kernel categories.

Make "sys/" prefix depend on category source. Move test to D58237

Jul 23 2026, 2:57 PM
brooks updated the diff for D58237: exterror(9): dynamic kernel categories.

Move test here from D58238

Jul 23 2026, 2:56 PM
brooks requested review of D58412: kdump(1): minimally adapt to exterror category sources.
Jul 23 2026, 2:51 PM
brooks updated the summary of D58236: exterr: split category into multiple sources.
Jul 23 2026, 2:48 PM
brooks updated the summary of D58058: exterr: relax format restrictions.
Jul 23 2026, 2:47 PM
brooks updated the diff for D58058: exterr: relax format restrictions.

When an unsupported or broken format is encoutered emite a warning like "<unsupported-format>".

Jul 23 2026, 2:46 PM
brooks updated the diff for D58058: exterr: relax format restrictions.

Emit errors in formatted text for unsupported or invalid formats.

Jul 23 2026, 11:18 AM
brooks added inline comments to D58060: exterr(9): add a few tests of new message formats.
Jul 23 2026, 8:41 AM

Jul 22 2026

brooks updated the diff for D58060: exterr(9): add a few tests of new message formats.

Update for UEXTERROR returning void.

Jul 22 2026, 3:27 PM
brooks updated the diff for D58059: runtime: add the ability to set exterrors in userspace.

Add docs. Make uexterr_set return void.

Jul 22 2026, 3:25 PM
brooks updated the diff for D58060: exterr(9): add a few tests of new message formats.

Use UEXTERROR().

Jul 22 2026, 1:59 PM
brooks updated the diff for D58059: runtime: add the ability to set exterrors in userspace.

Add UEXTERROR() analog to EXTERROR(). It differs in that it just wraps uexterr_set and thus it gets a different name.

Jul 22 2026, 1:58 PM
brooks retitled D58059: runtime: add the ability to set exterrors in userspace from runtime: add uexterr_set(3) to set errors in userspace to runtime: add the ability to set exterrors in userspace.
Jul 22 2026, 1:54 PM

Jul 20 2026

brooks added inline comments to D58058: exterr: relax format restrictions.
Jul 20 2026, 4:04 PM
brooks updated the diff for D58238: uexterr_gettext(3): support dynamic kernel categories.

Look up kern.exterr.categories mib once on the first error

Jul 20 2026, 3:39 PM
brooks updated the diff for D58236: exterr: split category into multiple sources.

Reserve 4 bits for sources (up from 2)

Jul 20 2026, 3:37 PM
brooks added inline comments to D58237: exterror(9): dynamic kernel categories.
Jul 20 2026, 10:47 AM
brooks added a comment to D58238: uexterr_gettext(3): support dynamic kernel categories.

I don't think performance of this path matters at all because users have to go out of their way to enable this code path with EXTERROR_VERBOSE.

Jul 20 2026, 10:45 AM
brooks updated the diff for D58058: exterr: relax format restrictions.

Drop used of __unreachable()

Jul 20 2026, 9:48 AM
brooks added inline comments to D58058: exterr: relax format restrictions.
Jul 20 2026, 9:44 AM

Jul 15 2026

brooks committed rGb3b4763bc1ed: sys/exterrvar.h: forward declare struct thread (authored by brooks).
sys/exterrvar.h: forward declare struct thread
Jul 15 2026, 9:33 AM
brooks committed rG844009378da9: exterr: allow exterr to fit pointers on CHERI targets (authored by brooks).
exterr: allow exterr to fit pointers on CHERI targets
Jul 15 2026, 9:33 AM
brooks committed rGdb3eca2be206: exterrctl(2): add kern_exterrctl (authored by brooks).
exterrctl(2): add kern_exterrctl
Jul 15 2026, 9:33 AM
brooks closed D58235: sys/exterrvar.h: forward declare struct thread.
Jul 15 2026, 9:33 AM
brooks closed D58056: exterr: allow exterr to fit pointers on CHERI targets.
Jul 15 2026, 9:33 AM
brooks closed D58055: exterrctl(2): add kern_exterrctl.
Jul 15 2026, 9:33 AM
brooks updated the diff for D58059: runtime: add the ability to set exterrors in userspace.

Add helper in libc. Tag categories as user space.

Jul 15 2026, 8:31 AM

Jul 14 2026

brooks added a comment to D58238: uexterr_gettext(3): support dynamic kernel categories.

Having just hit submit... I wonder if we want to spend the available bit in EXTERR_CAT_SRC_MASK on in-tree vs out of tree or maybe just make pre-pending sys/ a legacy category source thing.

Jul 14 2026, 8:28 PM
brooks added a comment to D58238: uexterr_gettext(3): support dynamic kernel categories.

I think I want to refactor cat_to_filename() to take a buffer and to handle the selective prepending of sys/, perhaps bumping the uexterr_gettext ABI. It's fine for in-tree code, but definitely wrong for out of tree modules.

Jul 14 2026, 8:25 PM
brooks added a comment to D58237: exterror(9): dynamic kernel categories.

This addresses an issue I realized during Kirk's talk at BSDCan. In the existing model, it's quite hard to support third-party modules and even in-tree modules for downstreams would require reserving a portion of the identifier space. This approach adds cost to the EXTERROR_VERBOSE reporting path, but significantly decouples the kernel and libc. I'm not sure I'd want to go as far moving entirely to dynamic, but it's probably not a problem in practice.

Jul 14 2026, 8:21 PM
brooks requested review of D58238: uexterr_gettext(3): support dynamic kernel categories.
Jul 14 2026, 8:08 PM
brooks requested review of D58237: exterror(9): dynamic kernel categories.
Jul 14 2026, 8:08 PM
brooks requested review of D58236: exterr: split category into multiple sources.
Jul 14 2026, 8:08 PM
brooks requested review of D58235: sys/exterrvar.h: forward declare struct thread.
Jul 14 2026, 8:07 PM
brooks updated the diff for D58058: exterr: relax format restrictions.

Address feedback

Jul 14 2026, 8:05 PM
brooks updated the diff for D58056: exterr: allow exterr to fit pointers on CHERI targets.

Expand __uint64ptr_t to spares

Jul 14 2026, 8:03 PM

Jul 6 2026

brooks added inline comments to D58056: exterr: allow exterr to fit pointers on CHERI targets.
Jul 6 2026, 4:13 PM
brooks added a comment to D58059: runtime: add the ability to set exterrors in userspace.

The big thing that needs to be dealt with for this to make sense is to have a way to specify the filename that isn't a table embedded in libc. A first cut could be a special index that means no-file and perhaps using -1 as the line, but without that, we can't scale beyond files in the base system. (This also poses a problem for out of tree kernel modules.) We might also want macros like the kernel, but I'm less sure of that.

Jul 6 2026, 4:11 PM
brooks requested review of D58060: exterr(9): add a few tests of new message formats.
Jul 6 2026, 4:06 PM
brooks requested review of D58059: runtime: add the ability to set exterrors in userspace.
Jul 6 2026, 4:06 PM
brooks requested review of D58058: exterr: relax format restrictions.
Jul 6 2026, 4:06 PM
brooks requested review of D58057: exterr: clear tags from arguments on CHERI targets.
Jul 6 2026, 4:06 PM
brooks requested review of D58056: exterr: allow exterr to fit pointers on CHERI targets.
Jul 6 2026, 4:05 PM
brooks requested review of D58055: exterrctl(2): add kern_exterrctl.
Jul 6 2026, 4:05 PM

Jul 1 2026

brooks committed rG524fb0444f3a: fetch.9: fix a typo (authored by brooks).
fetch.9: fix a typo
Jul 1 2026, 2:11 PM