summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
Commit message (Collapse)AuthorAgeFilesLines
* [profile] Port the runtime to Solaris (retry)Vedant Kumar2017-12-141-2/+4
| | | | | | | | | | | | | This includes a few nice bits of refactoring (e.g splitting out the exclusive locking code into a common utility). Hopefully the Windows support is fixed now. Patch by Rainer Orth! Differential Revision: https://reviews.llvm.org/D40944 llvm-svn: 320731
* Revert "(HEAD -> master, origin/master, origin/HEAD) [profile] Port the ↵Vedant Kumar2017-12-141-4/+2
| | | | | | | | | | | runtime to Solaris" This reverts commit r320726. It looks like flock isn't available on Windows: http://lab.llvm.org:8011/builders/sanitizer-windows/builds/21317/steps/build%20compiler-rt/logs/stdio llvm-svn: 320728
* [profile] Port the runtime to SolarisVedant Kumar2017-12-141-2/+4
| | | | | | | | | | | This includes a few nice bits of refactoring (e.g splitting out the exclusive locking code into a common utility). Patch by Rainer Orth! Differential Revision: https://reviews.llvm.org/D40944 llvm-svn: 320726
* [profile] initialize static pool properly Xinliang David Li2016-05-221-2/+4
| | | | | | | Remove dependency on runtime initializer to avoid issues related to initialization order. llvm-svn: 270371
* [profile] Static counter allocation for value profiling (part-2)Xinliang David Li2016-05-211-0/+14
| | | | | | Differential Revision: http://reviews.llvm.org/D20460 llvm-svn: 270337
* [PGO] cleanup: unify prefix for portability macrosXinliang David Li2015-12-161-15/+16
| | | | llvm-svn: 255748
* [PGO] Unify section name, section symbol definitions (Linux)Xinliang David Li2015-11-231-15/+26
| | | | | | | Replace hard-coded references to names to key section and section symbols with common macro definitions. llvm-svn: 253897
* [PGO] Compiler-rt cleanup -- introduces macros for various macrosXinliang David Li2015-11-231-23/+15
| | | | | | | This makes code more readable and be made more portable in the future. There is no functional change. llvm-svn: 253845
* [PGO] Ensure profile section symbols are created (linux)Xinliang David Li2015-11-131-0/+7
| | | | | | | | | | | | | - This is to handle a corner case where profile lib is linked in but non of the modules are instrumented (On linux, since we avoided the overhead to emit runtime hook use functions so this is the side effect of that size optimization). - Added a profile runtime test case to cover all scenarios of shared library builds. Differential Revision: http://reviews.llvm.org/D14468 llvm-svn: 253098
* [PGO] Eliminate prof data register calls on FreeBSD platformXinliang David Li2015-10-191-1/+1
| | | | | | | This is a follow up patch of r250199 after verifying the start/stop section symbols work as spected on FreeBSD. llvm-svn: 250680
* [PGO]: Eliminate calls to __llvm_profile_register_function for Linux.Xinliang David Li2015-10-131-0/+48
On Linux, the profile runtime can use __start_SECTNAME and __stop_SECTNAME symbols defined by the linker to locate the start and end location of a named section (with C name). This eliminates the need for instrumented binary to call __llvm_profile_register_function during start-up time. llvm-svn: 250200
OpenPOWER on IntegriCloud