forked from OSchip/llvm-project
Fix LLDB build on old Linux kernels
Usage of aux_size is guarded against elsewhere in this file, but is missing here. Reviewed By: wallace Differential Revision: https://reviews.llvm.org/D110269 Original Author: calebzulawski
This commit is contained in:
parent
576301d922
commit
d35702efe7
|
@ -145,7 +145,11 @@ static Error CheckPsbPeriod(size_t psb_period) {
|
|||
}
|
||||
|
||||
size_t IntelPTThreadTrace::GetTraceBufferSize() const {
|
||||
#ifndef PERF_ATTR_SIZE_VER5
|
||||
llvm_unreachable("Intel PT Linux perf event not supported");
|
||||
#else
|
||||
return m_mmap_meta->aux_size;
|
||||
#endif
|
||||
}
|
||||
|
||||
static Expected<uint64_t>
|
||||
|
|
Loading…
Reference in New Issue