llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-lldb Author: Nikita (root-kidik) <details> <summary>Changes</summary> Close: #<!-- -->105705 --- Full diff: https://github.com/llvm/llvm-project/pull/105715.diff 1 Files Affected: - (modified) lldb/source/Plugins/Process/Linux/Perf.cpp (+2) ``````````diff diff --git a/lldb/source/Plugins/Process/Linux/Perf.cpp b/lldb/source/Plugins/Process/Linux/Perf.cpp index 097c719b9c1d25..8135d092cfdd68 100644 --- a/lldb/source/Plugins/Process/Linux/Perf.cpp +++ b/lldb/source/Plugins/Process/Linux/Perf.cpp @@ -342,7 +342,9 @@ lldb_private::process_linux::CreateContextSwitchTracePerfEvent( attr.size = sizeof(attr); attr.sample_type = PERF_SAMPLE_TID | PERF_SAMPLE_TIME; attr.type = PERF_TYPE_SOFTWARE; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0) attr.context_switch = 1; +#endif attr.exclude_kernel = 1; attr.sample_id_all = 1; attr.exclude_hv = 1; `````````` </details> https://github.com/llvm/llvm-project/pull/105715 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits