[compiler-rt] r337929 - [XRay tests] Don't filter test-critical calls

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 25 07:48:53 PDT 2018


Author: jmorse
Date: Wed Jul 25 07:48:53 2018
New Revision: 337929

URL: http://llvm.org/viewvc/llvm-project?rev=337929&view=rev
Log:
[XRay tests] Don't filter test-critical calls

By default, xray filters events that takes less than 5uS from its log.
In this existing test, should printf complete very quickly this will
lead to test-critical function calls being filtered (i.e. print_parent_tid).
Given that we're not testing the filtering feature, disable it for this
test.

Modified:
    compiler-rt/trunk/test/xray/TestCases/Posix/fork_basic_logging.cc

Modified: compiler-rt/trunk/test/xray/TestCases/Posix/fork_basic_logging.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/xray/TestCases/Posix/fork_basic_logging.cc?rev=337929&r1=337928&r2=337929&view=diff
==============================================================================
--- compiler-rt/trunk/test/xray/TestCases/Posix/fork_basic_logging.cc (original)
+++ compiler-rt/trunk/test/xray/TestCases/Posix/fork_basic_logging.cc Wed Jul 25 07:48:53 2018
@@ -2,7 +2,7 @@
 // RUN: %clangxx_xray -g -std=c++11 %s -o %t
 // RUN: rm -f fork-basic-logging-test-*
 // RUN: XRAY_OPTIONS="patch_premain=true xray_logfile_base=fork-basic-logging-test- \
-// RUN:     xray_mode=xray-basic verbosity=1" \
+// RUN:     xray_mode=xray-basic verbosity=1 xray_naive_log_func_duration_threshold_us=0" \
 // RUN:     %run %t 2>&1 | FileCheck %s
 // RUN: %llvm_xray convert --symbolize --output-format=yaml -instr_map=%t \
 // RUN:     "`ls -S fork-basic-logging-test-* | head -1`" \




More information about the llvm-commits mailing list