summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/profile/instrprof-basic.c
Commit message (Collapse)AuthorAgeFilesLines
* [profile] Support merge pool size >= 10Fangrui Song2020-01-121-0/+7
| | | | | | | | | | | The executable acquires an advisory record lock (`fcntl(fd, F_SETLKW, *)`) on a profile file. Merge pool size >= 10 may be beneficial when the concurrency is large. Also fix a small problem about snprintf. It can cause the filename to be truncated after %m. Reviewed By: davidxl Differential Revision: https://reviews.llvm.org/D71970
* [Profile] Add new testXinliang David Li2016-07-221-0/+26
| | | | | | To test that online merging is enabled by default. llvm-svn: 276493
* [Profile] More test clean up to read profile from directory specified by ↵Xinliang David Li2016-07-211-0/+2
| | | | | | -fprofile-generate= llvm-svn: 276226
* [Profile] Cleanup test to use new dir input featureXinliang David Li2016-07-211-8/+7
| | | | llvm-svn: 276225
* [libprofile] Define an expansion `%clang_profgen=`Sean Silva2016-06-121-1/+1
| | | | llvm-svn: 272498
* Fix win bot failureXinliang David Li2016-06-091-0/+1
| | | | llvm-svn: 272316
* [profile] in-process merging support part-3Xinliang David Li2016-06-081-6/+21
| | | | | | Differential Revision: http://reviews.llvm.org/D21056 llvm-svn: 272227
* Update lib/profile tests for metadata assembly changeDuncan P. N. Exon Smith2014-12-151-2/+2
| | | | | | | | | Running the upgrade script from PR21532. Hopefully this will unstick compiler-rt bots [1] after r224257. [1]: http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA_check/181/ llvm-svn: 224276
* profile: Robustify instrprof testsJustin Bogner2014-11-181-5/+5
| | | | | | | Change these tests not to rely on the exact metadata numbers the profile data gets. llvm-svn: 222279
* profile: Avoid name collisions between instrumentation and runtimeJustin Bogner2014-09-041-2/+21
| | | | | | | | | | | | The naming scheme we're using for counters in profile data shares a prefix with some fixed names we use for the runtime, notably __llvm_profile_data_begin and _end. Embarrassingly, this means a function called begin() can't be instrumented. This modifies the runtime names so as not to collide with the instrumentation. llvm-svn: 217166
* Allow any test to be executed via a %run command.Greg Fitzgerald2014-04-301-1/+1
| | | | | | | | Configure %run with COMPILER_RT_EMULATOR: $ cmake -DCOMPILER_RT_EMULATOR="qemu-arm -L $SYSROOT" llvm-svn: 207707
* InstrProf: Remove LTO dependency from testDuncan P. N. Exon Smith2014-04-011-1/+1
| | | | | | | | | The -flto flag relies on linker features that are not available on all platforms. <rdar://problem/16458307> llvm-svn: 205318
* InstrProf: Add simple compiler-rt testDuncan P. N. Exon Smith2014-03-311-0/+12
Add the test infrastructure for testing lib/profile and a single test. This initial commit only enables the tests on Darwin, but they'll be enabled on Linux soon after. <rdar://problem/16458307> llvm-svn: 205256
OpenPOWER on IntegriCloud