From: Fangrui Song Date: Fri, 16 Dec 2022 08:07:07 +0000 (+0000) Subject: [trace] Change /sys/bus const char * variables to const char [] X-Git-Tag: upstream/17.0.6~23595 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95ec1a60986c13628c6f608fc0ed1f1fafb1b033;p=platform%2Fupstream%2Fllvm.git [trace] Change /sys/bus const char * variables to const char [] --- diff --git a/lldb/source/Plugins/Process/Linux/IntelPTSingleBufferTrace.cpp b/lldb/source/Plugins/Process/Linux/IntelPTSingleBufferTrace.cpp index 269b7ca..36ee026 100644 --- a/lldb/source/Plugins/Process/Linux/IntelPTSingleBufferTrace.cpp +++ b/lldb/source/Plugins/Process/Linux/IntelPTSingleBufferTrace.cpp @@ -22,19 +22,19 @@ using namespace lldb_private; using namespace process_linux; using namespace llvm; -const char *kOSEventIntelPTTypeFile = +const char kOSEventIntelPTTypeFile[] = "/sys/bus/event_source/devices/intel_pt/type"; -const char *kPSBPeriodCapFile = +const char kPSBPeriodCapFile[] = "/sys/bus/event_source/devices/intel_pt/caps/psb_cyc"; -const char *kPSBPeriodValidValuesFile = +const char kPSBPeriodValidValuesFile[] = "/sys/bus/event_source/devices/intel_pt/caps/psb_periods"; -const char *kPSBPeriodBitOffsetFile = +const char kPSBPeriodBitOffsetFile[] = "/sys/bus/event_source/devices/intel_pt/format/psb_period"; -const char *kTSCBitOffsetFile = +const char kTSCBitOffsetFile[] = "/sys/bus/event_source/devices/intel_pt/format/tsc"; enum IntelPTConfigFileType {