|
Revision tags: llvmorg-20.1.0, llvmorg-20.1.0-rc3, llvmorg-20.1.0-rc2, llvmorg-20.1.0-rc1, llvmorg-21-init, llvmorg-19.1.7, llvmorg-19.1.6, llvmorg-19.1.5, llvmorg-19.1.4, llvmorg-19.1.3, llvmorg-19.1.2, llvmorg-19.1.1, llvmorg-19.1.0, llvmorg-19.1.0-rc4, llvmorg-19.1.0-rc3, llvmorg-19.1.0-rc2, llvmorg-19.1.0-rc1, llvmorg-20-init, llvmorg-18.1.8, llvmorg-18.1.7, llvmorg-18.1.6, llvmorg-18.1.5, llvmorg-18.1.4, llvmorg-18.1.3, llvmorg-18.1.2, llvmorg-18.1.1, llvmorg-18.1.0, llvmorg-18.1.0-rc4, llvmorg-18.1.0-rc3, llvmorg-18.1.0-rc2, llvmorg-18.1.0-rc1, llvmorg-19-init, llvmorg-17.0.6, llvmorg-17.0.5, llvmorg-17.0.4, llvmorg-17.0.3, llvmorg-17.0.2, llvmorg-17.0.1, llvmorg-17.0.0, llvmorg-17.0.0-rc4, llvmorg-17.0.0-rc3, llvmorg-17.0.0-rc2, llvmorg-17.0.0-rc1, llvmorg-18-init, llvmorg-16.0.6, llvmorg-16.0.5, llvmorg-16.0.4, llvmorg-16.0.3, llvmorg-16.0.2, llvmorg-16.0.1, llvmorg-16.0.0, llvmorg-16.0.0-rc4, llvmorg-16.0.0-rc3, llvmorg-16.0.0-rc2, llvmorg-16.0.0-rc1, llvmorg-17-init, llvmorg-15.0.7, llvmorg-15.0.6, llvmorg-15.0.5, llvmorg-15.0.4, llvmorg-15.0.3, llvmorg-15.0.2, llvmorg-15.0.1, llvmorg-15.0.0, llvmorg-15.0.0-rc3, llvmorg-15.0.0-rc2, llvmorg-15.0.0-rc1, llvmorg-16-init, llvmorg-14.0.6, llvmorg-14.0.5, llvmorg-14.0.4, llvmorg-14.0.3, llvmorg-14.0.2, llvmorg-14.0.1 |
|
| #
bdbfaf0c |
| 09-Apr-2022 |
Aaron Ballman <[email protected]> |
Giving a lot more functions prototypes; NFC
This should address https://lab.llvm.org/buildbot/#/builders/37/builds/12315 and speculatively fix other similar diagnostics.
|
|
Revision tags: llvmorg-14.0.0, llvmorg-14.0.0-rc4, llvmorg-14.0.0-rc3 |
|
| #
9c353039 |
| 03-Mar-2022 |
Ellis Hoag <[email protected]> |
[InstrProf][NFC] Fix warning by removing typecast
This fixes a warning about comparing mismatched types. Since `mmap()` already returns a `void *` use that as the pointer type for comparison.
Revie
[InstrProf][NFC] Fix warning by removing typecast
This fixes a warning about comparing mismatched types. Since `mmap()` already returns a `void *` use that as the pointer type for comparison.
Reviewed By: kyulee, zequanwu
Differential Revision: https://reviews.llvm.org/D120945
show more ...
|
|
Revision tags: llvmorg-14.0.0-rc2, llvmorg-14.0.0-rc1, llvmorg-15-init, llvmorg-13.0.1, llvmorg-13.0.1-rc3, llvmorg-13.0.1-rc2 |
|
| #
f2147375 |
| 29-Dec-2021 |
Ellis Hoag <[email protected]> |
[InstrProf][NFC] Do not assume size of counter type
Existing code tended to assume that counters had type `uint64_t` and computed size from the number of counters. Fix this code to directly compute
[InstrProf][NFC] Do not assume size of counter type
Existing code tended to assume that counters had type `uint64_t` and computed size from the number of counters. Fix this code to directly compute the counters size in number of bytes where possible. When the number of counters is needed, use `__llvm_profile_counter_entry_size()` or `getCounterTypeSize()`. In a later diff these functions will depend on the profile mode.
Change the meaning of `DataSize` and `CountersSize` to make them more clear. * `DataSize` (`CountersSize`) - the size of the data (counter) section in bytes. * `NumData` (`NumCounters`) - the number of data (counter) entries.
Reviewed By: kyulee
Differential Revision: https://reviews.llvm.org/D116179
show more ...
|
|
Revision tags: llvmorg-13.0.1-rc1 |
|
| #
4e8efff5 |
| 05-Oct-2021 |
Zequan Wu <[email protected]> |
[Profile] Add missing fflush in __llvm_profile_set_file_object
|
| #
ab694cd8 |
| 01-Oct-2021 |
Zequan Wu <[email protected]> |
[Profile] Add a warning when lock file failed in __llvm_profile_set_file_object with continuous mode
|
|
Revision tags: llvmorg-13.0.0, llvmorg-13.0.0-rc4, llvmorg-13.0.0-rc3, llvmorg-13.0.0-rc2 |
|
| #
1b052451 |
| 17-Aug-2021 |
Zequan Wu <[email protected]> |
[Profile] Support __llvm_profile_set_file_object in continuous mode.
Replace D107203, because __llvm_profile_set_file_object is usually used when the process doesn't have permission to open/create f
[Profile] Support __llvm_profile_set_file_object in continuous mode.
Replace D107203, because __llvm_profile_set_file_object is usually used when the process doesn't have permission to open/create file. That patch trying to copy from old profile to new profile contradicts with the usage.
Differential Revision: https://reviews.llvm.org/D108242
show more ...
|
| #
8111f2f7 |
| 24-Aug-2021 |
Petr Hosek <[email protected]> |
[profile] Update counter offset to account for binary ids
In the raw profile, binary ids immediately follow the header so when computing counters offset we need to account for the new section.
Diff
[profile] Update counter offset to account for binary ids
In the raw profile, binary ids immediately follow the header so when computing counters offset we need to account for the new section.
Differential Revision: https://reviews.llvm.org/D108608
show more ...
|
| #
4cfb047d |
| 15-Aug-2021 |
Nikita Popov <[email protected]> |
[profile] Don't use pragma comment linker on mingw
At least when compiling with gcc, this is not supported and will result in errors when linking against the profiler runtime. Only use the pragma co
[profile] Don't use pragma comment linker on mingw
At least when compiling with gcc, this is not supported and will result in errors when linking against the profiler runtime. Only use the pragma comment linker based code with MSVC, but not with a mingw toolchain. This also undoes D107620, which shouldn't be relevant anymore.
Differential Revision: https://reviews.llvm.org/D108095
show more ...
|
| #
2129c4a8 |
| 06-Aug-2021 |
Zequan Wu <[email protected]> |
Fix Windows bots failure caused by 8c4208d5c1671d1b44eaf87e8f876b7d635f5114
|
| #
8c4208d5 |
| 05-Aug-2021 |
Zequan Wu <[email protected]> |
[Profile][NFC] Clean up initializeProfileForContinuousMode
Merge two versions of `initializeProfileForContinuousMode` function into one.
Differential Revision: https://reviews.llvm.org/D107591
|
|
Revision tags: llvmorg-13.0.0-rc1 |
|
| #
3b0a9e7b |
| 02-Aug-2021 |
Vedant Kumar <[email protected]> |
[profile] Move assertIsZero to InstrProfilingUtil.c
... and rename it to 'warnIfNonZero' to better-reflect what it actually does.
The goal is to minimize the amount of logic that's conditionally co
[profile] Move assertIsZero to InstrProfilingUtil.c
... and rename it to 'warnIfNonZero' to better-reflect what it actually does.
The goal is to minimize the amount of logic that's conditionally compiled under '#if __APPLE__'.
show more ...
|
| #
ef2627e1 |
| 28-Jul-2021 |
Arthur Eubanks <[email protected]> |
[profile] Add underscore to /alternatename for Win/x86
/alternatename should use the mangled name. On x86 we need an extra underscore.
Copied from sanitizer_win_defs.h
Fixes https://crbug.com/1233
[profile] Add underscore to /alternatename for Win/x86
/alternatename should use the mangled name. On x86 we need an extra underscore.
Copied from sanitizer_win_defs.h
Fixes https://crbug.com/1233589.
Reviewed By: phosek
Differential Revision: https://reviews.llvm.org/D107000
show more ...
|
|
Revision tags: llvmorg-14-init |
|
| #
ff427909 |
| 20-Jul-2021 |
Petr Hosek <[email protected]> |
[NFC][profile] Move writeMMappedFile to ELF ifdef block
This avoids the compiler warning on Darwin where that function is unused.
|
| #
54902e00 |
| 08-Jul-2021 |
Petr Hosek <[email protected]> |
[InstrProfiling] Use weak alias for bias variable
We need the compiler generated variable to override the weak symbol of the same name inside the profile runtime, but using LinkOnceODRLinkage result
[InstrProfiling] Use weak alias for bias variable
We need the compiler generated variable to override the weak symbol of the same name inside the profile runtime, but using LinkOnceODRLinkage results in weak symbol being emitted in which case the symbol selected by the linker is going to depend on the order of inputs which can be fragile.
This change replaces the use of weak definition inside the runtime with a weak alias. We place the compiler generated symbol inside a COMDAT group so dead definition can be garbage collected by the linker.
We also disable the use of runtime counter relocation on Darwin since Mach-O doesn't support weak external references, but Darwin already uses a different continous mode that relies on overmapping so runtime counter relocation isn't needed there.
Differential Revision: https://reviews.llvm.org/D105176
show more ...
|
|
Revision tags: llvmorg-12.0.1, llvmorg-12.0.1-rc4, llvmorg-12.0.1-rc3, llvmorg-12.0.1-rc2, llvmorg-12.0.1-rc1, llvmorg-12.0.0, llvmorg-12.0.0-rc5, llvmorg-12.0.0-rc4, llvmorg-12.0.0-rc3, llvmorg-12.0.0-rc2 |
|
| #
25dade54 |
| 21-Feb-2021 |
Petr Hosek <[email protected]> |
[profile] Decommit memory after counter relocation
After we relocate counters, we no longer need to keep the original copy around so we can return the memory back to the operating system.
Different
[profile] Decommit memory after counter relocation
After we relocate counters, we no longer need to keep the original copy around so we can return the memory back to the operating system.
Differential Revision: https://reviews.llvm.org/D104839
show more ...
|
| #
a9296477 |
| 02-Jul-2021 |
Nico Weber <[email protected]> |
Revert "[InstrProfiling] Use external weak reference for bias variable"
This reverts commit 33a7b4d9d8e6a113108aa71ed78ca32a83c68523. Breaks check-profile on macOS, see comments on https://reviews.l
Revert "[InstrProfiling] Use external weak reference for bias variable"
This reverts commit 33a7b4d9d8e6a113108aa71ed78ca32a83c68523. Breaks check-profile on macOS, see comments on https://reviews.llvm.org/D105176
show more ...
|
| #
33a7b4d9 |
| 30-Jun-2021 |
Petr Hosek <[email protected]> |
[InstrProfiling] Use external weak reference for bias variable
We need the compiler generated variable to override the weak symbol of the same name inside the profile runtime, but using LinkOnceODRL
[InstrProfiling] Use external weak reference for bias variable
We need the compiler generated variable to override the weak symbol of the same name inside the profile runtime, but using LinkOnceODRLinkage results in weak symbol being emitted which leads to an issue where the linker might choose either of the weak symbols potentially disabling the runtime counter relocation.
This change replaces the use of weak definition inside the runtime with an external weak reference to address the issue. We also place the compiler generated symbol inside a COMDAT group so dead definition can be garbage collected by the linker.
Differential Revision: https://reviews.llvm.org/D105176
show more ...
|
| #
189428c8 |
| 10-Jun-2021 |
Arthur Eubanks <[email protected]> |
[Profile] Handle invalid profile data
This mostly follows LLVM's InstrProfReader.cpp error handling. Previously, attempting to merge corrupted profile data would result in crashes. See https://crbug
[Profile] Handle invalid profile data
This mostly follows LLVM's InstrProfReader.cpp error handling. Previously, attempting to merge corrupted profile data would result in crashes. See https://crbug.com/1216811#c4.
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D104050
show more ...
|
| #
7014a101 |
| 18-May-2021 |
Vedant Kumar <[email protected]> |
[profile] Skip mmap() if there are no counters
If there are no counters, an mmap() of the counters section would fail due to the size argument being too small (EINVAL).
rdar://78175925
Differentia
[profile] Skip mmap() if there are no counters
If there are no counters, an mmap() of the counters section would fail due to the size argument being too small (EINVAL).
rdar://78175925
Differential Revision: https://reviews.llvm.org/D102735
show more ...
|
| #
e29063b1 |
| 26-Feb-2021 |
Vitaly Buka <[email protected]> |
[NFC] Suppress "warning: ignoring return value"
|
| #
a7d48261 |
| 23-Feb-2021 |
Vedant Kumar <[email protected]> |
[profile] Fix buffer overrun when parsing %c in filename string
Fix a buffer overrun that can occur when parsing '%c' at the end of a filename pattern string.
rdar://74571261
Reviewed By: kastigli
[profile] Fix buffer overrun when parsing %c in filename string
Fix a buffer overrun that can occur when parsing '%c' at the end of a filename pattern string.
rdar://74571261
Reviewed By: kastiglione
Differential Revision: https://reviews.llvm.org/D97239
show more ...
|
|
Revision tags: llvmorg-11.1.0, llvmorg-11.1.0-rc3, llvmorg-12.0.0-rc1, llvmorg-13-init, llvmorg-11.1.0-rc2, llvmorg-11.1.0-rc1, llvmorg-11.0.1, llvmorg-11.0.1-rc2, llvmorg-11.0.1-rc1 |
|
| #
33fb9679 |
| 20-Nov-2020 |
Martin Storsjö <[email protected]> |
[compiler-rt] [profile] Silence a warning about an unused function on mingw targets
This function is only used within the ifdef below.
Differential Revision: https://reviews.llvm.org/D91850
|
| #
a77a739a |
| 26-Oct-2020 |
Vedant Kumar <[email protected]> |
[profile] Suppress spurious 'expected profile to require unlock' warning
In %c (continuous sync) mode, avoid attempting to unlock an already-unlocked profile.
The profile is only locked when profil
[profile] Suppress spurious 'expected profile to require unlock' warning
In %c (continuous sync) mode, avoid attempting to unlock an already-unlocked profile.
The profile is only locked when profile merging is enabled.
show more ...
|
|
Revision tags: llvmorg-11.0.0, llvmorg-11.0.0-rc6, llvmorg-11.0.0-rc5, llvmorg-11.0.0-rc4, llvmorg-11.0.0-rc3 |
|
| #
62c37277 |
| 08-Sep-2020 |
Vedant Kumar <[email protected]> |
[profile] Add %t LLVM_PROFILE_FILE option to substitute $TMPDIR
Add support for expanding the %t filename specifier in LLVM_PROFILE_FILE to the TMPDIR environment variable. This is supported on all
[profile] Add %t LLVM_PROFILE_FILE option to substitute $TMPDIR
Add support for expanding the %t filename specifier in LLVM_PROFILE_FILE to the TMPDIR environment variable. This is supported on all platforms.
On Darwin, TMPDIR is used to specify a temporary application-specific scratch directory. When testing apps on remote devices, it can be challenging for the host device to determine the correct TMPDIR, so it's helpful to have the runtime do this work.
rdar://68524185
Differential Revision: https://reviews.llvm.org/D87332
show more ...
|
|
Revision tags: llvmorg-11.0.0-rc2 |
|
| #
896f797b |
| 30-Jul-2020 |
Vedant Kumar <[email protected]> |
[profile] Remove dependence on getpagesize from InstrProfilingBuffer.c.o
InstrProfilingBuffer.c.o is generic code that must support compilation into freestanding projects. This gets rid of its depen
[profile] Remove dependence on getpagesize from InstrProfilingBuffer.c.o
InstrProfilingBuffer.c.o is generic code that must support compilation into freestanding projects. This gets rid of its dependence on the _getpagesize symbol from libc, shifting it to InstrProfilingFile.c.o.
This fixes a build failure seen in a firmware project.
rdar://66249701
show more ...
|