[PATCH 7/9] Simple testsuite for DTrace USDT probes.

Jose E. Marchesi jose.marchesi@oracle.com
Fri Oct 10 16:38:00 GMT 2014


    > +    # Generate the demo program, which contains USDT probes.  This
    > +    # involves running the `dtrace' program in order to generate some
    > +    # auxiliary files: a header file and an object file with the ELF
    > +    # sections containing the probes information.
    > +    
    > +    set dscript_file "${srcdir}/${subdir}/${testfile}.d"
    > +    set out_header_file "${srcdir}/${subdir}/${testfile}.h"
    > +    set result \
    > +        [catch "exec $dtrace -h -s $dscript_file -o $out_header_file" output]
    > +    verbose -log $output
    > +    if {$result != 0} {
    > +        fail "invoke dtrace -h to generate the header file for USDT probes"
    > +        return -1
    > +    }
    > +    
    > +    standard_testfile .c
    
    This is unecessary, I believe.  You already called standard_testfile above.

Yep, I just removed it.



More information about the Gdb-patches mailing list