[DTrace-devel] [PATCH v2 5/5] dlibs, test: reduce complexity of tests
Nick Alcock
nick.alcock at oracle.com
Wed Nov 8 10:31:32 UTC 2023
On 7 Nov 2023, Kris Van Hees via DTrace-devel said:
> Some tests depended on kernel variable type information that is not
> currently available when only BTF type data can be found. Use
> explicit casting:
>
> Some tests used kernel variables without needing to. Use other
> sources that provide the same functionality:
>
> Some tests should be skipped when there is no CTF archive:
> Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Nick Alcock <nick.alcock at oracle.com>
on the basis that this is clearly necessary for the BTF stuff to pass
its tests at all, but with the understanding that I'll be bringing a
bunch of this stuff back, probably in a different not-run-by-default
'ctf' testsuite, along with an option used by that testsuite to turn
fallback to BTF off, so I can keep using these tests to test sanity of
the kernel's CTF generation :) (I do plan to introduce more CTF tests in
binutils, and am doing so, but the sheer diversity of the Linux kernel's
type system makes it a hard testcase to replace, and I can't require
*that* in foundational toolchain stuff like binutils!)
--
NULL && (void)
More information about the DTrace-devel
mailing list