Re: git: e60ca52b72e5 - main - Out of tree modules should be built with DTrace by default.

From: gnn <gnn_at_freebsd.org>
Date: Wed, 01 May 2024 17:19:09 UTC

On 1 May 2024, at 13:08, Jessica Clarke wrote:

> On 1 May 2024, at 18:01, George V. Neville-Neil <gnn@FreeBSD.org> wrote:
>>
>> The branch main has been updated by gnn:
>>
>> URL: https://cgit.FreeBSD.org/src/commit/?id=e60ca52b72e518f8394615bdad9cd9c85764caa2
>>
>> commit e60ca52b72e518f8394615bdad9cd9c85764caa2
>> Author:     George V. Neville-Neil <gnn@FreeBSD.org>
>> AuthorDate: 2024-05-01 17:00:52 +0000
>> Commit:     George V. Neville-Neil <gnn@FreeBSD.org>
>> CommitDate: 2024-05-01 17:00:52 +0000
>>
>>    Out of tree modules should be built with DTrace by default.
>> ---
>> share/examples/modules/Makefile | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/share/examples/modules/Makefile b/share/examples/modules/Makefile
>> index 0f0a2fb01e8a..bc7f6f6a57ac 100644
>> --- a/share/examples/modules/Makefile
>> +++ b/share/examples/modules/Makefile
>> @@ -4,3 +4,5 @@ KMOD= skel
>> SRCS= skel.c
>>
>> .include <bsd.kmod.mk>
>> +
>> +CFLAGS:= ${CFLAGS:N -DKDTRACE_HOOKS}
>
> I believe this is a no-op in practice, and definitely doesn’t do what
> you want? :N is "select all words that don’t match the given pattern",
> so this expands to CFLAGS with any instances of " -DKDTRACE_HOOKS"
> removed. But that’s a no-op, because the space won’t be present in the
> word itself unless you start quoting things, and it then wouldn’t be a
> valid compiler flag.
>

Interesting because it built with the hooks out of tree.  Let me clean it up anyways.

Thanks,
George