1// RUN: rm -fr %t && mkdir %t && cd %t
2// RUN: %clang_xray %s -o a.out
3// RUN: %run %t/a.out 2>&1 | FileCheck %s
4
5// REQUIRES: built-in-llvm-tree
6
7extern "C" __attribute__((xray_never_instrument)) const char *
8__xray_default_options() {
9 return "patch_premain=true:verbosity=1:xray_mode=xray-basic";
10}
11
12__attribute__((xray_always_instrument)) void always() {}
13
14int main() { always(); }
15
16// CHECK: =={{[0-9].*}}==XRay: Log file in '{{.*}}'
17

source code of compiler-rt/test/xray/TestCases/Posix/default-options.cpp