This is an archive of the discontinued LLVM Phabricator instance.

Support XRay in the NetBSD driver
ClosedPublic

Authored by krytarowski on May 10 2018, 1:15 PM.

Details

Summary

While there, perform a small cleanup, reducing delta
with drivers for other OSes.

Sponsored by <The NetBSD Foundation>

Diff Detail

Repository
rC Clang

Event Timeline

krytarowski created this revision.May 10 2018, 1:15 PM
dberris accepted this revision.May 10 2018, 5:20 PM

LGTM for the XRay side.

To confirm, are there bots/tests that confirm whether XRay "just works" on NetBSD?

This revision is now accepted and ready to land.May 10 2018, 5:20 PM

This is an intermediate commit. I'm unloading local patches.

********************
Testing Time: 1.36s
********************
Failing Tests (16):
    XRay-Unit :: unit/./XRayFDRLoggingTest-x86_64-Test/FDRLoggingTest.MultiThreadedCycling
    XRay-Unit :: unit/./XRayFDRLoggingTest-x86_64-Test/FDRLoggingTest.Multiple
    XRay-Unit :: unit/./XRayFDRLoggingTest-x86_64-Test/FDRLoggingTest.Simple
    XRay-x86_64-netbsd :: TestCases/Posix/arg1-arg0-logging.cc
    XRay-x86_64-netbsd :: TestCases/Posix/arg1-logger.cc
    XRay-x86_64-netbsd :: TestCases/Posix/arg1-logging-implicit-this.cc
    XRay-x86_64-netbsd :: TestCases/Posix/argv0-log-file-name.cc
    XRay-x86_64-netbsd :: TestCases/Posix/basic-filtering.cc
    XRay-x86_64-netbsd :: TestCases/Posix/coverage-sample.cc
    XRay-x86_64-netbsd :: TestCases/Posix/fdr-mode.cc
    XRay-x86_64-netbsd :: TestCases/Posix/fdr-single-thread.cc
    XRay-x86_64-netbsd :: TestCases/Posix/fdr-thread-order.cc
    XRay-x86_64-netbsd :: TestCases/Posix/fixedsize-logging.cc
    XRay-x86_64-netbsd :: TestCases/Posix/logging-modes.cc
    XRay-x86_64-netbsd :: TestCases/Posix/patching-unpatching.cc
    XRay-x86_64-netbsd :: TestCases/Posix/pic_test.cc

  Expected Passes    : 26
  Unsupported Tests  : 1
  Unexpected Failures: 16

The failures are related to a bug in logging. I will need to resolve it (flags()->xray_mode is NULL).

We are now preparing for integration of libfuzzer into userland (as a part of GSoC).. this will be followed up with LSan and LLDB.
And I will be heading for enabling the features on a bot to be built tested and later to perform tests. Please be patient.

This revision was automatically updated to reflect the committed changes.