LLDB mainline
|
Classes | |
class | BaseCommand |
Provides the darwin-log base command. More... | |
class | EnableCommand |
class | EnableOptions |
class | ExactMatchFilterRule |
class | FilterRule |
class | RegexFilterRule |
class | StatusCommand |
Provides the status command. More... | |
class | StructuredDataDarwinLogProperties |
Typedefs | |
using | EnableOptionsSP = std::shared_ptr< EnableOptions > |
using | OptionsMap = std::map< DebuggerWP, EnableOptionsSP, std::owner_less< DebuggerWP > > |
using | FilterRuleSP = std::shared_ptr< FilterRule > |
using | FilterRules = std::vector< FilterRuleSP > |
Enumerations | |
enum | |
Functions | |
static OptionsMap & | GetGlobalOptionsMap () |
static std::mutex & | GetGlobalOptionsMapLock () |
EnableOptionsSP | GetGlobalEnableOptions (const DebuggerSP &debugger_sp) |
void | SetGlobalEnableOptions (const DebuggerSP &debugger_sp, const EnableOptionsSP &options_sp) |
static StructuredDataDarwinLogProperties & | GetGlobalProperties () |
static llvm::StringRef | GetDarwinLogTypeName () |
static llvm::StringRef | GetLogEventType () |
static void | RegisterFilterOperations () |
EnableOptionsSP | ParseAutoEnableOptions (Status &error, Debugger &debugger) |
bool | RunEnableCommand (CommandInterpreter &interpreter) |
Variables | |
const uint64_t | NANOS_PER_MICRO = 1000 |
const uint64_t | NANOS_PER_MILLI = NANOS_PER_MICRO * 1000 |
const uint64_t | NANOS_PER_SECOND = NANOS_PER_MILLI * 1000 |
const uint64_t | NANOS_PER_MINUTE = NANOS_PER_SECOND * 60 |
const uint64_t | NANOS_PER_HOUR = NANOS_PER_MINUTE * 60 |
static bool | DEFAULT_FILTER_FALLTHROUGH_ACCEPTS = true |
static bool | s_is_explicitly_enabled |
Global, sticky enable switch. | |
const char *const | s_filter_attributes [] |
static constexpr OptionDefinition | g_enable_option_table [] |
Provides the main on-off switch for enabling darwin logging. | |
using sddarwinlog_private::EnableOptionsSP = typedef std::shared_ptr<EnableOptions> |
Definition at line 66 of file StructuredDataDarwinLog.cpp.
using sddarwinlog_private::FilterRules = typedef std::vector<FilterRuleSP> |
Definition at line 260 of file StructuredDataDarwinLog.cpp.
using sddarwinlog_private::FilterRuleSP = typedef std::shared_ptr<FilterRule> |
Definition at line 178 of file StructuredDataDarwinLog.cpp.
using sddarwinlog_private::OptionsMap = typedef std::map<DebuggerWP, EnableOptionsSP, std::owner_less<DebuggerWP> > |
Definition at line 68 of file StructuredDataDarwinLog.cpp.
anonymous enum |
Definition at line 115 of file StructuredDataDarwinLog.cpp.
|
static |
Definition at line 167 of file StructuredDataDarwinLog.cpp.
Referenced by sddarwinlog_private::EnableCommand::DoExecute(), sddarwinlog_private::StatusCommand::DoExecute(), lldb_private::StructuredDataDarwinLog::EnableNow(), lldb_private::StructuredDataDarwinLog::GetDescription(), lldb_private::StructuredDataDarwinLog::HandleArrivalOfStructuredData(), lldb_private::StructuredDataDarwinLog::InitCompletionHookCallback(), and lldb_private::StructuredDataDarwinLog::SupportsStructuredDataType().
EnableOptionsSP sddarwinlog_private::GetGlobalEnableOptions | ( | const DebuggerSP & | debugger_sp | ) |
Definition at line 81 of file StructuredDataDarwinLog.cpp.
References GetGlobalOptionsMap(), and GetGlobalOptionsMapLock().
Referenced by sddarwinlog_private::StatusCommand::DoExecute(), lldb_private::StructuredDataDarwinLog::DumpHeader(), lldb_private::StructuredDataDarwinLog::EnableNow(), lldb_private::StructuredDataDarwinLog::FilterLaunchInfo(), and lldb_private::StructuredDataDarwinLog::HandleArrivalOfStructuredData().
|
static |
Definition at line 71 of file StructuredDataDarwinLog.cpp.
Referenced by GetGlobalEnableOptions(), and SetGlobalEnableOptions().
|
static |
Definition at line 76 of file StructuredDataDarwinLog.cpp.
Referenced by GetGlobalEnableOptions(), and SetGlobalEnableOptions().
|
static |
Definition at line 149 of file StructuredDataDarwinLog.cpp.
Referenced by RunEnableCommand().
|
static |
Definition at line 172 of file StructuredDataDarwinLog.cpp.
Referenced by lldb_private::StructuredDataDarwinLog::HandleDisplayOfEvent().
EnableOptionsSP sddarwinlog_private::ParseAutoEnableOptions | ( | Status & | error, |
Debugger & | debugger | ||
) |
Definition at line 965 of file StructuredDataDarwinLog.cpp.
References error(), lldb_private::Status::FromErrorString(), lldb_private::Args::GetArgumentAtIndex(), lldb_private::Args::GetArgumentCount(), lldb_private::GetLog(), lldb_private::Properties::GetPropertyValue(), lldb_private::Debugger::GetUseColor(), LLDB_LOG_ERROR, and lldb_private::Args::Shift().
Referenced by lldb_private::StructuredDataDarwinLog::FilterLaunchInfo().
|
static |
Definition at line 359 of file StructuredDataDarwinLog.cpp.
References sddarwinlog_private::RegexFilterRule::RegisterOperation(), and sddarwinlog_private::ExactMatchFilterRule::RegisterOperation().
Referenced by lldb_private::StructuredDataDarwinLog::Initialize().
bool sddarwinlog_private::RunEnableCommand | ( | CommandInterpreter & | interpreter | ) |
Definition at line 1023 of file StructuredDataDarwinLog.cpp.
References lldb_private::eLazyBoolNo, sddarwinlog_private::StructuredDataDarwinLogProperties::GetAutoEnableOptions(), lldb_private::StreamString::GetData(), lldb_private::CommandInterpreter::GetDebugger(), GetGlobalProperties(), lldb_private::Debugger::GetUseColor(), lldb_private::CommandInterpreter::HandleCommand(), and lldb_private::CommandReturnObject::Succeeded().
Referenced by lldb_private::StructuredDataDarwinLog::EnableNow().
void sddarwinlog_private::SetGlobalEnableOptions | ( | const DebuggerSP & | debugger_sp, |
const EnableOptionsSP & | options_sp | ||
) |
Definition at line 95 of file StructuredDataDarwinLog.cpp.
References GetGlobalOptionsMap(), and GetGlobalOptionsMapLock().
Referenced by sddarwinlog_private::EnableCommand::DoExecute(), and lldb_private::StructuredDataDarwinLog::FilterLaunchInfo().
|
static |
Definition at line 56 of file StructuredDataDarwinLog.cpp.
Referenced by sddarwinlog_private::EnableOptions::OptionParsingStarting().
|
staticconstexpr |
Provides the main on-off switch for enabling darwin logging.
It is valid to run the enable command when logging is already enabled. This resets the logging with whatever settings are currently set.
Definition at line 373 of file StructuredDataDarwinLog.cpp.
Referenced by sddarwinlog_private::EnableOptions::GetDefinitions().
const uint64_t sddarwinlog_private::NANOS_PER_HOUR = NANOS_PER_MINUTE * 60 |
Definition at line 54 of file StructuredDataDarwinLog.cpp.
Referenced by lldb_private::StructuredDataDarwinLog::DumpTimestamp().
const uint64_t sddarwinlog_private::NANOS_PER_MICRO = 1000 |
Definition at line 50 of file StructuredDataDarwinLog.cpp.
const uint64_t sddarwinlog_private::NANOS_PER_MILLI = NANOS_PER_MICRO * 1000 |
Definition at line 51 of file StructuredDataDarwinLog.cpp.
const uint64_t sddarwinlog_private::NANOS_PER_MINUTE = NANOS_PER_SECOND * 60 |
Definition at line 53 of file StructuredDataDarwinLog.cpp.
Referenced by lldb_private::StructuredDataDarwinLog::DumpTimestamp().
const uint64_t sddarwinlog_private::NANOS_PER_SECOND = NANOS_PER_MILLI * 1000 |
Definition at line 52 of file StructuredDataDarwinLog.cpp.
Referenced by lldb_private::StructuredDataDarwinLog::DumpTimestamp().
const char* const sddarwinlog_private::s_filter_attributes[] |
Definition at line 154 of file StructuredDataDarwinLog.cpp.
Referenced by sddarwinlog_private::FilterRule::GetFilterAttribute(), sddarwinlog_private::EnableOptions::MatchAttributeIndex(), and sddarwinlog_private::FilterRule::Serialize().
|
static |
Global, sticky enable switch.
If true, the user has explicitly run the enable command. When a process launches or is attached to, we will enable DarwinLog if either the settings for auto-enable is on, or if the user had explicitly run enable at some point prior to the launch/attach.
Definition at line 63 of file StructuredDataDarwinLog.cpp.
Referenced by sddarwinlog_private::EnableCommand::DoExecute(), lldb_private::StructuredDataDarwinLog::FilterLaunchInfo(), and lldb_private::StructuredDataDarwinLog::ModulesDidLoad().