summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/profile/instrprof-write-file-only.c
Commit message (Collapse)AuthorAgeFilesLines
* [libprofile] Adjust dummy condition to be more forgiving.Sean Silva2016-03-261-1/+1
| | | | | | | | | | | On PS4, we have to fake environment variables by passing extra command line arguments, so the dummy test `argc > 1` was failing. The condition is just a dummy condition that the compiler can't fold away, so the number is arbitrary as long as the condition is false. Increase the number it compares against. llvm-svn: 264491
* Update lib/profile tests for metadata assembly changeDuncan P. N. Exon Smith2014-12-151-1/+1
| | | | | | | | | 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-2/+2
| | | | | | | Change these tests not to rely on the exact metadata numbers the profile data gets. llvm-svn: 222279
* InstrProf: support PowerPC64Jay Foad2014-11-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Summary: I don't know anything about profiling but it seems to work out of the box on PowerPC64. At least "make check-profile" works. A few tests needed tweaking because PowerPC64 IR declares main with "define signext i32 @main" instead of just "define i32 @main". This also fixes the asan asan_and_llvm_coverage_test test, which compiles with -coverage so requires that a profiling version of libclang_rt has been built. Reviewers: dexonsmith, kcc, samsonov Reviewed By: samsonov Subscribers: samsonov, llvm-commits Differential Revision: http://reviews.llvm.org/D6233 llvm-svn: 221877
* profile: explicitly initialize file name in the testSaleem Abdulrasool2014-05-181-0/+5
| | | | | | | | | | | | The instrprofile-write-file-only test was failing on the builtbots. The runtime library initialization is explicitly being discarded to avoid the atexit hook. However, this would also prevent the filename from being initialized. Thus, when the write file was invoked, the filename would not be setup, and the test would fail as the profiling data would never be written out. Explicitly initialize the filename to ensure that the data is written out when requested. This should hopefully finally get the build bots all green again. llvm-svn: 209099
* Fix typosAlp Toker2014-05-151-1/+1
| | | | llvm-svn: 208841
* InstrProf: Test the functions in the runtimeDuncan P. N. Exon Smith2014-05-091-0/+30
Check that the profile runtime works as expected. This tests the functions that are meant to be available to advanced users. In particular, check that the `atexit()` hook can be disabled by defining a custom `__llvm_profile_runtime` variable, that the libc dependencies are optional, and that the various functions for writing out files work for basic cases. llvm-svn: 208460
OpenPOWER on IntegriCloud