From c4172c751a39313efd9c7588a103482c3648987e Mon Sep 17 00:00:00 2001 From: Walter Erquinigo Date: Mon, 9 May 2022 21:12:09 -0700 Subject: [PATCH] [lldb] Fix 7b73de9ec2b19df040c919d3004dfbead9b6ac59 It turns out that the issue in https://lab.llvm.org/buildbot/#/builders/17/builds/21754 is that a size_t is attempted to be used interchangeably with uint64_t. --- lldb/source/Plugins/Process/Linux/IntelPTSingleBufferTrace.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lldb/source/Plugins/Process/Linux/IntelPTSingleBufferTrace.cpp b/lldb/source/Plugins/Process/Linux/IntelPTSingleBufferTrace.cpp index 30c30eb..a1cd30b 100644 --- a/lldb/source/Plugins/Process/Linux/IntelPTSingleBufferTrace.cpp +++ b/lldb/source/Plugins/Process/Linux/IntelPTSingleBufferTrace.cpp @@ -179,9 +179,7 @@ GeneratePerfEventConfigValue(bool enable_tsc, Optional psb_period) { /// or an \a llvm::Error otherwise. static Expected CreateIntelPTPerfEventConfiguration(bool enable_tsc, - llvm::Optional psb_period) { - return createStringError(inconvertibleErrorCode(), - "Intel PT Linux perf event not supported"); + llvm::Optional psb_period) { perf_event_attr attr; memset(&attr, 0, sizeof(attr)); attr.size = sizeof(attr); -- 2.7.4