Details
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Can you upload the diff using either of the following commands to get the context (or use arc).
git diff -U999999 other-branch svn diff --diff-cmd=diff -x -U999999
There needs to be a warning on CDDL code being compiled into the kernel.
You should move the list of files to build from sys/conf/files.arm to sys/conf/files as its doesn't appear to be arm specific.
This seems to be half dealing with dtrace on arm, and half allowing dtrace to be in kernel config files.
Or, I'm misreading it and it's going to break the latter.
I'd suggest splitting things.
sys/cddl/dev/dtrace/arm/dtrace_asm.S | ||
---|---|---|
32 ↗ | (On Diff #4068) | Why would this be defined already? |
sys/conf/files | ||
107–112 ↗ | (On Diff #4068) | And how are these picked up now with zfs? |
sys/conf/kern.post.mk | ||
188–191 ↗ | (On Diff #4068) | How was this not working before? |
sys/conf/kern.pre.mk | ||
152 ↗ | (On Diff #4068) | Lots of repetition with ZFS_CLFAGS. Perhaps you could combine the lists? |
The reason why we have DTrace and ZFS only as modules is because of the CDDL. Can you please make sure core is okay with this change? They will have access to all the email archives discussing the problems and the outcomes. They can tell you exactly the reasons why we never had DTrace/ZFS in the kernel.
core is ok. this only allows to proceed the build for someone who want to try it locally
sys/cddl/dev/dtrace/arm/dtrace_asm.S | ||
---|---|---|
32 ↗ | (On Diff #4068) | It is defined here: <built-in>:316:9: note: previous definition is here what it that <built-in> ? clang ? |
sys/conf/files | ||
107–112 ↗ | (On Diff #4068) | Now it is assumed people should include 'device opensolaris' also with 'device zfs' in their kernel configs |
107–112 ↗ | (On Diff #4068) | alternatively we can do something like: is it better ? |
sys/conf/kern.post.mk | ||
188–191 ↗ | (On Diff #4068) | these was working before fine for ZFS, but now it also work for dtrace. |
sys/conf/kern.post.mk | ||
---|---|---|
187–192 ↗ | (On Diff #4090) | defines renamed to 'CDDL' assuming it is both for zfs and dtrace now |
sys/cddl/dev/dtrace/arm/dtrace_asm.S | ||
---|---|---|
32 ↗ | (On Diff #4090) | Doesn't it come from the command line? |
sys/cddl/dev/dtrace/arm/dtrace_asm.S | ||
---|---|---|
32 ↗ | (On Diff #4090) | yes it comes from sys/conf/kern.pre.mk: DTRACE_ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${DTRACE_CFLAGS} (I copied it from ZFS_ASM_CFLAGS) should it be removed both from ZFS_ASM_CFLAGS and DTRACE_ASM_CFLAGS ? |
sys/cddl/dev/dtrace/arm/dtrace_asm.S | ||
---|---|---|
32 ↗ | (On Diff #4090) | The other way around I think: since it's now defined in the command line, can't you remove it from this file? |
sys/cddl/dev/dtrace/arm/dtrace_asm.S | ||
---|---|---|
32 ↗ | (On Diff #4090) | yes it is also works both with modules & with no modules |
sys/conf/files | ||
---|---|---|
248 ↗ | (On Diff #5680) | I think you should make the 'device' or 'options' lines match with the layout of the modules, so I would maybe make this 'optional dtmalloc | dtraceall' and similarly for the other things like lockstat, sdt, etc. |
255 ↗ | (On Diff #5680) | This one should be something like 'optional dtnfscl nfscl | dtraceall nfscl'. |
In addition, there should be some updates to some NOTES files, either sys/conf/NOTES for things that are truly MI or MD NOTES files for things that are only supported on a subset of platforms.
Thanks. I would please ask that you consider adding the dtrace lines to the x86 and powerpc NOTES file as well (the other architectures that build the dtrace modules).
sys/amd64/conf/NOTES | ||
---|---|---|
20 ↗ | (On Diff #5688) | nitpick: DTrace - two initial capitals I also wonder if we should mention the license issue in here, something like NOTE: introduces CDDL-licensed components into the kernel |