diff options
author | Vy Nguyen <vyng@google.com> | 2020-07-27 12:38:05 -0400 |
---|---|---|
committer | Vy Nguyen <vyng@google.com> | 2020-07-27 12:38:05 -0400 |
commit | ee7caa75939afb75547c00744c5df4d04d45e517 (patch) | |
tree | 157aa765d22d683657f1e1611b3f51c417fbdd44 /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | 52dd18ab1d3848f0156e4033bba2b65c3ae18a9e (diff) | |
download | llvm-ee7caa75939afb75547c00744c5df4d04d45e517.zip llvm-ee7caa75939afb75547c00744c5df4d04d45e517.tar.gz llvm-ee7caa75939afb75547c00744c5df4d04d45e517.tar.bz2 |
Reland [llvm-exegesis] Add benchmark latency option on X86 that uses LBR for more precise measurements.
Starting with Skylake, the LBR contains the precise number of cycles between the two
consecutive branches.
Making use of this will hopefully make the measurements more precise than the
existing methods of using RDTSC.
Differential Revision: https://reviews.llvm.org/D77422
New change: check for existence of field `cycles` in perf_branch_entry before enabling this mode.
This should prevent compilation errors when building for older kernel whose headers don't support it.
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
0 files changed, 0 insertions, 0 deletions