Skip to content
  1. Oct 16, 2018
  2. Oct 15, 2018
    • Dean Michael Berris's avatar
      [XRay][compiler-rt] FDR Mode Controller · 3c015084
      Dean Michael Berris authored
      Summary:
      This change implements a controller for abstracting away the details of
      what happens when tracing with FDR mode. This controller type allows us
      to test in isolation the various cases where we're encountering function
      entry, exit, and other kinds of events we are handling when FDR mode is
      enabled.
      
      This change introduces a number of testing facilities we've needed to
      better support expressing the conditions we need for the unit tests. We
      leave some TODOs for moving those utilities into the LLVM project,
      sitting in the `Testing` library, to make matching conditions on XRay
      `Trace` instances through googlemock more manageable and declarative.
      
      We don't wire in the controller right away, to allow us to incrementally
      update the implementation(s) as we increase testing coverage of the
      controller type. There's a need to re-think the way we're managing
      buffers in a multi-threaded environment, which is more invasive than
      this implementation.
      
      This step in the process allows us to encode our assumptions in the
      implementation of the controller, and then evolve the buffer queue
      implementation to support generational buffer management to ensure we
      can continue to support the cases we're already supporting with the
      controller.
      
      Reviewers: mboerger, eizan
      
      Subscribers: mgorny, llvm-commits, jfb
      
      Differential Revision: https://reviews.llvm.org/D52588
      
      llvm-svn: 344488
      3c015084
  3. Oct 14, 2018
  4. Oct 13, 2018
    • Dan Liew's avatar
      [lit] Support the `%shared_libasan` lit substitution on Apple platforms. · 74c6aaf8
      Dan Liew authored
      Summary:
      The previous value looks Linux specific so that has been guarded with
      the host OS being Linux.
      
      On Apple platforms `%shared_libasan` expands to the absolute path of the
      ASan dylib.
      
      Previously on Linux `%shared_libasan` expanded to just the file name
      of the shared library rather than the absolute path to the library.
      This is likely a bug because it would rely on the OS's dynamic linker
      to find the shared library which could accidentally pick up a system copy
      rather than the shared library that was just built.
      
      For other platforms we emit a warning if `config.asan_dynamic` is true.
      
      This patch also only defines the substitution when `config.asan_dynamic`
      is true because using this substitution only makes sense when the
      dynamic library is available.
      
      Reviewers: kubamracek, george.karpenkov, mgorny, phosek, etienneb, samsonov, kcc
      
      Subscribers: #sanitizers, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D53111
      
      llvm-svn: 344434
      74c6aaf8
    • Evgeniy Stepanov's avatar
      [sanitizer] Avoid extra newlines in syslog. · 9ab897dc
      Evgeniy Stepanov authored
      Fix line splitting logic to avoid sending empty lines to syslog, as
      that adds extra newlines.
      
      llvm-svn: 344426
      9ab897dc
  5. Oct 12, 2018
  6. Oct 11, 2018
  7. Oct 10, 2018
  8. Oct 09, 2018
  9. Oct 08, 2018
    • Kamil Rytarowski's avatar
      Remove remnant code of using indirect syscall on NetBSD · 88e545ec
      Kamil Rytarowski authored
      Summary:
      The NetBSD version of internal routines no longer call
      the indirect syscall interfaces, as these functions were
      switched to lib calls.
      
      Remove the remnant code complication that is no
      longer needed after this change. Remove the variations
      of internal_syscall, as they were NetBSD specific.
      
      No functional change intended.
      
      Reviewers: vitalybuka, joerg, javed.absar
      
      Reviewed By: vitalybuka
      
      Subscribers: kubamracek, fedor.sergeev, llvm-commits, #sanitizers
      
      Tags: #sanitizers
      
      Differential Revision: https://reviews.llvm.org/D52955
      
      llvm-svn: 343988
      88e545ec
    • Kamil Rytarowski's avatar
      Don't harcode -ldl test/sanitizer_common/TestCases · bfd14ca6
      Kamil Rytarowski authored
      Summary:
      The dl library does not exist on all system and in particular
      this breaks build on NetBSD. Make it conditional and
      enable only for Linux, following the approach from other
      test suites in the same repository.
      
      Reviewers: joerg, vitalybuka
      
      Reviewed By: vitalybuka
      
      Subscribers: kubamracek, llvm-commits, #sanitizers
      
      Tags: #sanitizers
      
      Differential Revision: https://reviews.llvm.org/D52994
      
      llvm-svn: 343987
      bfd14ca6
    • Kamil Rytarowski's avatar
      Disable TestCases/pthread_mutexattr_get on NetBSD · 0fbf3e99
      Kamil Rytarowski authored
      The pshared feature is unsupported on NetBSD as of today.
      
      llvm-svn: 343981
      0fbf3e99
    • Kamil Rytarowski's avatar
      Fix Posix/devname_r for NetBSD · 73214e31
      Kamil Rytarowski authored
      NetBSD returns a different type as a return value of
      devname_r(3) than FreeBSD and Darwin (int vs char*).
      
      This implies that checking for successful completion of this
      function has to be handled differently.
      
      This test used to work well, but was switched to fix Darwin,
      which broke NetBSD.
      
      Add a dedicated ifdef for NetBSD and make it functional again
      for this OS.
      
      llvm-svn: 343980
      73214e31
    • David Carlier's avatar
      · b07407e6
      David Carlier authored
      [Sanitizer] fix internal_sysctlbyname build for FreeBSD.
      
      llvm-svn: 343964
      b07407e6
  10. Oct 05, 2018
  11. Oct 04, 2018
Loading