[DTrace-devel] [PATCH v2 1/5] test: Reduce volume of test log output for link-idempotence

Nick Alcock nick.alcock at oracle.com
Thu Feb 22 13:19:47 UTC 2024


On 21 Feb 2024, eugene loh outgrape:

> From: Eugene Loh <eugene.loh at oracle.com>
>
> Spare 100s to 1000s of lines of output in the normal, PASS case.

There's an easier approach...

>  ${CC} ${CFLAGS} -o test test.o prov.o
> -DTRACE_DEBUG=t $dtrace -G -s prov.d test.o
> +DTRACE_DEBUG=t $dtrace -G -s prov.d test.o > dtrace.out 2>&1

The DTRACE_DEBUG=t is not necessary for test operation, and is just a
debugging hack I left in by mistake.

Rather than doing all this complicated redirection and catting, just
take the DTRACE_DEBUG=t out. :) If and when we ever need it, we can
rerun the test with DTRACE_DEBUG=t set by hand. (The important part of
the test is the -nt stuff, and that is unaffected by turning off
debugging.)

-- 
NULL && (void)



More information about the DTrace-devel mailing list