summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/profile
Commit message (Collapse)AuthorAgeFilesLines
...
* [profile] Don't return `Node` when it is null.Sean Silva2016-05-251-5/+7
| | | | | | | | | The max warning check was masking the "return 0" codepath. See the thread "Warnings and compile-time failure on 458.sjeng" for more info. llvm-svn: 270762
* [profile] Further cleanup/refactor file handling codeXinliang David Li2016-05-251-34/+26
| | | | | | Also get rid of the redundant strncpy calls. llvm-svn: 270730
* Fix braced initializer list (NFC)Teresa Johnson2016-05-251-1/+1
| | | | | | | | | | | | | | After r270617 I am getting an error when building: projects/compiler-rt/lib/profile/InstrProfilingFile.c:33:36: error: missing field 'PidChars' initializer [-Werror,-Wmissing-field-initializers] lprofFilename lprofCurFilename = {0}; ^ Fix the aggregate initializer. llvm-svn: 270697
* [profile] clean up profile file handling codeXinliang David Li2016-05-242-94/+139
| | | | | | Differentianl Revision: http://reviews.llvm.org/D20572 llvm-svn: 270617
* Fix typo in commentXinliang David Li2016-05-241-1/+1
| | | | llvm-svn: 270524
* [profile] clean up file initialization codeXinliang David Li2016-05-241-15/+23
| | | | | | Also added more documentation. llvm-svn: 270519
* [profile] clean up runtime warnings.Xinliang David Li2016-05-231-3/+7
| | | | | | | | o make warning message more meaningful to users. o add suggestion to fix the problem o limit the max number of output. llvm-svn: 270483
* [profile] initialize static pool properly Xinliang David Li2016-05-224-12/+19
| | | | | | | Remove dependency on runtime initializer to avoid issues related to initialization order. llvm-svn: 270371
* bug fix: trim section specifier name lengthXinliang David Li2016-05-221-2/+2
| | | | llvm-svn: 270350
* Fix a typo (darwin only)Xinliang David Li2016-05-211-1/+1
| | | | llvm-svn: 270339
* Fix typoXinliang David Li2016-05-212-2/+2
| | | | llvm-svn: 270338
* [profile] Static counter allocation for value profiling (part-2)Xinliang David Li2016-05-217-11/+89
| | | | | | Differential Revision: http://reviews.llvm.org/D20460 llvm-svn: 270337
* Use C-style comment.Sean Silva2016-05-201-1/+1
| | | | | | | I think we allow use of C99 for libprofile, but use a C-style comment for consistency. llvm-svn: 270187
* Fix bot failureXinliang David Li2016-05-201-1/+1
| | | | llvm-svn: 270186
* [profile] PROF_ERR, PROF_WARNXinliang David Li2016-05-202-5/+7
| | | | | | | | 1) Move common prefix to the macro def 2) Introduced PROF_WARN 3) Make error message unconditionally printed out. llvm-svn: 270185
* [profile] Remove anther malloc useXinliang David Li2016-05-201-2/+6
| | | | llvm-svn: 270181
* Add #include for PS4 getenv shim.Sean Silva2016-05-201-0/+1
| | | | llvm-svn: 270179
* Small typo and whitespace fix.Sean Silva2016-05-201-2/+2
| | | | llvm-svn: 270177
* [profile] entry eviction support in value profilerXinliang David Li2016-05-192-1/+49
| | | | | | Differential revision: http://reviews.llvm.org/D20408 llvm-svn: 270141
* Reapply^3 "[ProfileData] (compiler-rt) Use Error in InstrProf and Coverage, NFC"Vedant Kumar2016-05-191-4/+3
| | | | | | Sync up with "(llvm) Use Error in InstrProf and Coverage". llvm-svn: 270022
* Fix typo.Sean Silva2016-05-191-1/+1
| | | | llvm-svn: 270005
* [profile] Allow max vals per site to be controllable at runtimeXinliang David Li2016-05-183-1/+18
| | | | llvm-svn: 269993
* [profile] add runtime variable documentationXinliang David Li2016-05-181-0/+29
| | | | llvm-svn: 269964
* Avoid leak. Free before resetting.Sean Silva2016-05-161-1/+1
| | | | llvm-svn: 269724
* [profile] Add portability macro for atomic fetch_and_addXinliang David Li2016-05-163-1/+19
| | | | | | | This is another enabler patch to support value profiling without dynamic memory allocation. llvm-svn: 269719
* Revert "Reapply^2 "[ProfileData] (compiler-rt) Use Error in InstrProf and ↵Vedant Kumar2016-05-161-3/+4
| | | | | | | | Coverage, NFC"" This reverts commit r269696. The llvm commit does not pass the MSVC bot. llvm-svn: 269702
* Reapply^2 "[ProfileData] (compiler-rt) Use Error in InstrProf and Coverage, NFC"Vedant Kumar2016-05-161-4/+3
| | | | | | | | Sync up with "(llvm) Use Error in InstrProf and Coverage". Differential Revision: http://reviews.llvm.org/D19903 llvm-svn: 269696
* [profile] minor code restructuring /NFCXinliang David Li2016-05-164-15/+40
| | | | | | | This is one of the enabler patch to allow value profiler to allocate counter statically. llvm-svn: 269689
* [PS4] Change the names of some "environmental" things to what ourPaul Robinson2016-05-162-3/+3
| | | | | | | | licensees actually see in the toolchain we deliver to them. This will reduce the set of local patches we have to maintain. The triple is not changing. (The term ORBIS is an internal code name for PS4.) llvm-svn: 269672
* Use __builtin_alloca with __GNUC__Xinliang David Li2016-05-152-7/+3
| | | | llvm-svn: 269592
* Fix FreeBSD build failureXinliang David Li2016-05-151-0/+2
| | | | llvm-svn: 269587
* [profile] Eliminate dynamic memory allocation for vp writingXinliang David Li2016-05-146-151/+226
| | | | | | | | | | This is part-3 of the effort to eliminate dependency on libc allocator in instr profiler runtime. With this change, the profile dumper is completely free of malloc/calloc. Value profile instr API implementation is the only remaining piece with calloc dependency. llvm-svn: 269576
* Revert "Reapply "[ProfileData] (compiler-rt) Use Error in InstrProf and ↵Chandler Carruth2016-05-141-3/+4
| | | | | | | | | | Coverage, NFC"" This reverts commit r269493 as the corresponding LLVM commit was reverted due to lots of warnings. See the review thread for the original LLVM commit (r269491) for details. llvm-svn: 269550
* minor cleanup -- reset buffer pointerXinliang David Li2016-05-141-1/+4
| | | | llvm-svn: 269533
* Reapply "[ProfileData] (compiler-rt) Use Error in InstrProf and Coverage, NFC"Vedant Kumar2016-05-131-4/+3
| | | | | | | | Sync up with "(llvm) Use Error in InstrProf and Coverage". Differential Revision: http://reviews.llvm.org/D19903 llvm-svn: 269493
* Revert "(HEAD -> master, origin/master, origin/HEAD) [ProfileData] ↵Vedant Kumar2016-05-131-3/+4
| | | | | | | | (compiler-rt) Use Error in InstrProf and Coverage, NFC" This reverts commit r269464. It fails two llvm-profdata tests. llvm-svn: 269469
* [ProfileData] (compiler-rt) Use Error in InstrProf and Coverage, NFCVedant Kumar2016-05-131-4/+3
| | | | | | Sync up with "(llvm) Use Error in InstrProf and Coverage". llvm-svn: 269464
* [profile] Eliminate dynamic memory allocation for buffered writerXinliang David Li2016-05-133-28/+35
| | | | | | | | With this change, dynamic memory allocation is only used for testing purpose. This change is one of the many steps to make instrument profiler dynamic allocation free. llvm-svn: 269453
* [profile] Code refactoringXinliang David Li2016-05-122-119/+112
| | | | | | | Move runtime specific code from the common header file to runtime source. llvm-svn: 269357
* Minor code refactoring /NFCXinliang David Li2016-05-121-6/+15
| | | | llvm-svn: 269351
* [profile] profile writing cleanupXinliang David Li2016-05-111-34/+16
| | | | | | | | Do not precompute value counts for all sites. This eliminates one more use of dynamic allocation in profiler writer. llvm-svn: 269254
* cleanup: Enforce caller to set total size to avoid redundant size computeXinliang David Li2016-05-112-2/+6
| | | | llvm-svn: 269237
* Reapply r268840: [profile] Simplify value profile writingXinliang David Li2016-05-106-88/+53
| | | | | | | Revert r268864 that reverted 268840 after underlying problem is fixed for arm bot. llvm-svn: 268992
* Fix variable visibilityXinliang David Li2016-05-093-6/+6
| | | | llvm-svn: 268952
* Revert "[profile] Simplify value profile writing"Renato Golin2016-05-076-54/+88
| | | | | | | | This reverts commit r268840, as it breaks Thumb2 self-hosting. There is something unstable in the profiling for Thumb2 that needs to be sorted out before we continue implementing these changes to the profiler. See PR27667. llvm-svn: 268864
* [profile] Simplify value profile writingXinliang David Li2016-05-076-88/+54
| | | | | | | | With this patch, value data are longer pre-collected before writing. The code is simplified and requires less heap space for dumping. llvm-svn: 268840
* [profile] Remove another unneeded field in raw profile readerXinliang David Li2016-05-062-3/+1
| | | | | | | DataValueSize is now removed. The change is consolidated with previous raw version bump. llvm-svn: 268704
* Sync up with master fileXinliang David Li2016-05-051-2/+1
| | | | llvm-svn: 268603
* sync up with master copyXinliang David Li2016-04-061-1/+1
| | | | llvm-svn: 265609
* [PGO] More comments how function pointers for indirect calls are mappedAdam Nemet2016-03-281-0/+9
| | | | | | | | | | | | | | | | to function names Summary: Hopefully this will make it easier for the next person to figure all this out... Reviewers: bogner, davidxl Subscribers: davidxl, cfe-commits Differential Revision: http://reviews.llvm.org/D18489 llvm-svn: 264680
OpenPOWER on IntegriCloud