Author: Walter Erquinigo Date: 2022-08-03T11:34:03-07:00 New Revision: 371610793491fcd1c9af114a0de0cdda9a4408b0
URL: https://github.com/llvm/llvm-project/commit/371610793491fcd1c9af114a0de0cdda9a4408b0 DIFF: https://github.com/llvm/llvm-project/commit/371610793491fcd1c9af114a0de0cdda9a4408b0.diff LOG: [NFC][intel pt] Improve troubleshooting message Added: Modified: lldb/packages/Python/lldbsuite/test/tools/intelpt/intelpt_testcase.py lldb/source/Plugins/Process/Linux/IntelPTMultiCoreTrace.cpp Removed: ################################################################################ diff --git a/lldb/packages/Python/lldbsuite/test/tools/intelpt/intelpt_testcase.py b/lldb/packages/Python/lldbsuite/test/tools/intelpt/intelpt_testcase.py index 511dd6822b866..5c70bad91ba68 100644 --- a/lldb/packages/Python/lldbsuite/test/tools/intelpt/intelpt_testcase.py +++ b/lldb/packages/Python/lldbsuite/test/tools/intelpt/intelpt_testcase.py @@ -44,7 +44,8 @@ def is_supported(): return False if not is_supported(): self.skipTest("Per cpu tracing is not supported. You need " - "/proc/sys/kernel/perf_event_paranoid to be 0 or -1.") + "/proc/sys/kernel/perf_event_paranoid to be 0 or -1. " + "You can use `sudo sysctl -w kernel.perf_event_paranoid=-1` for that.") def getTraceOrCreate(self): if not self.target().GetTrace().IsValid(): diff --git a/lldb/source/Plugins/Process/Linux/IntelPTMultiCoreTrace.cpp b/lldb/source/Plugins/Process/Linux/IntelPTMultiCoreTrace.cpp index 8f646c163bd10..a4794e7c8ca34 100644 --- a/lldb/source/Plugins/Process/Linux/IntelPTMultiCoreTrace.cpp +++ b/lldb/source/Plugins/Process/Linux/IntelPTMultiCoreTrace.cpp @@ -29,7 +29,7 @@ static Error IncludePerfEventParanoidMessageInError(Error &&error) { return createStringError( inconvertibleErrorCode(), "%s\nYou might need to rerun as sudo or to set " - "/proc/sys/kernel/perf_event_paranoid to a value of 0 or -1.", + "/proc/sys/kernel/perf_event_paranoid to a value of 0 or -1. You can use `sudo sysctl -w kernel.perf_event_paranoid=-1` for that.", toString(std::move(error)).c_str()); } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits