search for: xray_log_initialized

Displaying 4 results from an estimated 4 matches for "xray_log_initialized".

2017 Jan 25
2
Unstable XRay test on ARM
...XRay-Unit :: unit/XRayFDRLoggingTest/FDRLoggingTest.Simple' FAILED llvm/projects/compiler-rt/lib/xray/tests/unit/fdr_logging_test.cc:55: Failure Expected: FDRLogging_init(kBufferSize, kBufferMax, &Options, sizeof(FDRLoggingOptions)) Which is: 0 To be equal to: XRayLogInitStatus::XRAY_LOG_INITIALIZED Which is: 2 [ FAILED ] FDRLoggingTest.Simple (0 ms) ... 1 FAILED TEST ==11476==XRay instrumentation map missing. Not initializing XRay. Then a similar, but not identical error: http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15-full/builds/3191 'XRay-Unit :: unit/XRayFDRLoggingT...
2017 Jan 25
2
Unstable XRay test on ARM
...are_exchange_weak spurious failure. ARM is a weakly > ordered CPU, but I am not sure whether spurious failures are really > possible in a single threaded app. On the other hand, there is no other way > for FDRLogging_init to fail in such a way (return XRAY_LOG_UNINITIALIZED > instead of XRAY_LOG_INITIALIZED) without any extra output. This is also > true for the 2nd test failure in FDRLogging_finalize, which uses a weak > exchange too. > > Probably, the weak exchange needs to be either replaced with a strong one > or looped with more detailed CurrentStatus checks. > > Oleg > &gt...
2017 Jan 26
2
Unstable XRay test on ARM
...This might be a compare_exchange_weak spurious failure. ARM is a weakly ordered CPU, but I am not sure whether spurious failures are really possible in a single threaded app. On the other hand, there is no other way for FDRLogging_init to fail in such a way (return XRAY_LOG_UNINITIALIZED instead of XRAY_LOG_INITIALIZED) without any extra output. This is also true for the 2nd test failure in FDRLogging_finalize, which uses a weak exchange too. >>> >>> Probably, the weak exchange needs to be either replaced with a strong one or looped with more detailed CurrentStatus checks. >>> >&gt...
2018 Jun 08
2
XRay FDR mode doesn’t log main thread calls
...// CHECK: Logging before init. assert(__xray_log_select_mode("xray-fdr") == XRayLogRegisterStatus::XRAY_REGISTRATION_OK); auto status = __xray_log_init_mode("xray-fdr", "buffer_size=16384:buffer_max=10"); assert(status == XRayLogInitStatus::XRAY_LOG_INITIALIZED); std::cout << "Init status " << status << std::endl; // CHECK: Init status {{.*}} std::cout << "Patching..." << std::endl; // CHECK: Patching... __xray_patch(); fA(); fC(); fB(); fA(); fC(); std::thread other_thread...