Home
last modified time | relevance | path

Searched refs:Log (Results 1 – 25 of 396) sorted by relevance

12345678910>>...16

/llvm-project/lldb/include/lldb/Utility/
H A DLLDBLog.h18 enum class LLDBLog : Log::MaskType {
19 API = Log::ChannelFlag<0>,
20 AST = Log::ChannelFlag<1>,
21 Breakpoints = Log::ChannelFlag<2>,
22 Commands = Log::ChannelFlag<3>,
23 Communication = Log::ChannelFlag<4>,
24 Connection = Log::ChannelFlag<5>,
25 DataFormatters = Log::ChannelFlag<6>,
26 Demangle = Log::ChannelFlag<7>,
27 DynamicLoader = Log::ChannelFlag<8>,
[all …]
H A DLog.h1 //===-- Log.h ---------------------------------------------------*- C++ -*-===//
132 class Log final {
136 /// Channel0 = Log::ChannelFlag<0>,
137 /// Channel1 = Log::ChannelFlag<1>,
157 std::is_same<Log::MaskType, std::underlying_type_t<Cat>>::value); in Category()
164 std::atomic<Log *> log_ptr;
165 friend class Log; variable
172 constexpr Channel(llvm::ArrayRef<Log::Category> categories, in Channel()
177 std::is_same<Log::MaskType, std::underlying_type_t<Cat>>::value); in Channel()
181 // after (or concurrently with) this function returning a non-null Log
231 Log(Channel &channel) : m_channel(channel) {} Log() function
[all...]
/llvm-project/lldb/source/Plugins/Process/MacOSX-Kernel/
H A DProcessKDPLog.h17 enum class KDPLog : Log::MaskType {
18 Async = Log::ChannelFlag<0>,
19 Breakpoints = Log::ChannelFlag<1>,
20 Comm = Log::ChannelFlag<2>,
21 MemoryDataLong = Log::ChannelFlag<3>, // Log all memory reads/writes bytes
22 MemoryDataShort = Log::ChannelFlag<4>, // Log short memory reads/writes bytes
23 Memory = Log::ChannelFlag<5>, // Log memory reads/writes calls
24 Packets = Log::ChannelFlag<6>,
25 Process = Log::ChannelFlag<7>,
26 Step = Log::ChannelFlag<8>,
[all …]
H A DProcessKDPLog.cpp13 static constexpr Log::Category g_categories[] = {
32 static Log::Channel g_channel(g_categories, KDPLog::Packets);
34 template <> Log::Channel &lldb_private::LogChannelFor<KDPLog>() { in LogChannelFor()
38 void ProcessKDPLog::Initialize() { Log::Register("kdp-remote", g_channel); } in Initialize()
/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DProcessGDBRemoteLog.h18 enum class GDBRLog : Log::MaskType {
19 Async = Log::ChannelFlag<0>,
20 Breakpoints = Log::ChannelFlag<1>,
21 Comm = Log::ChannelFlag<2>,
22 Memory = Log::ChannelFlag<3>, // Log memory reads/writes calls
23 MemoryDataLong = Log::ChannelFlag<4>, // Log all memory reads/writes bytes
24 MemoryDataShort = Log::ChannelFlag<5>, // Log short memory reads/writes bytes
25 Packets = Log::ChannelFlag<6>,
26 Process = Log::ChannelFlag<7>,
27 Step = Log::ChannelFlag<8>,
[all …]
H A DProcessGDBRemoteLog.cpp17 static constexpr Log::Category g_categories[] = {
36 static Log::Channel g_channel(g_categories, GDBRLog::Packets);
38 template <> Log::Channel &lldb_private::LogChannelFor<GDBRLog>() { in LogChannelFor()
45 Log::Register("gdb-remote", g_channel); in Initialize()
/llvm-project/lldb/source/Utility/
H A DLog.cpp1 //===-- Log.cpp -----------------------------------------------------------===//
9 #include "lldb/Utility/Log.h"
44 llvm::ManagedStatic<Log::ChannelMap> Log::g_channel_map;
48 static std::atomic<Log *> g_error_log = nullptr; in ForEachCategory()
50 void Log::ForEachCategory( in ForEachCategory()
51 const Log::ChannelMap::value_type &entry, in ForEachCategory()
59 void Log::ListCategories(llvm::raw_ostream &stream, in ListCategories()
68 Log::MaskType Log in GetFlags()
[all...]
/llvm-project/lldb/source/Plugins/Process/Windows/Common/
H A DProcessWindowsLog.h17 enum class WindowsLog : Log::MaskType {
18 Breakpoints = Log::ChannelFlag<0>, // Log breakpoint operations
19 Event = Log::ChannelFlag<1>, // Low level debug events
20 Exception = Log::ChannelFlag<2>, // Log exceptions
21 Memory = Log::ChannelFlag<3>, // Log memory reads/writes calls
22 Process = Log::ChannelFlag<4>, // Log process operations
23 Registers = Log::ChannelFlag<5>, // Log register operations
24 Step = Log::ChannelFlag<6>, // Log step operations
25 Thread = Log::ChannelFlag<7>, // Log thread operations
36 template <> Log::Channel &LogChannelFor<WindowsLog>();
H A DDebuggerThread.cpp22 #include "lldb/Utility/Log.h"
52 Log *log = GetLog(WindowsLog::Process); in DebugLaunch()
69 Log *log = GetLog(WindowsLog::Process); in DebugAttach()
91 Log *log = GetLog(WindowsLog::Process); in DebuggerThreadLaunchRoutine()
118 Log *log = GetLog(WindowsLog::Process); in DebuggerThreadAttachRoutine()
141 Log *log = GetLog(WindowsLog::Process); in StopDebugging()
215 Log *log = GetLog(WindowsLog::Process | WindowsLog::Exception); in ContinueAsyncException()
233 Log *log = GetLog(WindowsLog::Event); in DebugLoop()
354 Log *log = GetLog(WindowsLog::Event | WindowsLog::Exception);
390 Log *lo in HandleCreateProcessEvent()
[all...]
H A DProcessWindowsLog.cpp13 static constexpr Log::Category g_categories[] = {
24 static Log::Channel g_channel(g_categories, WindowsLog::Process);
26 template <> Log::Channel &lldb_private::LogChannelFor<WindowsLog>() { in LogChannelFor()
32 llvm::call_once(g_once_flag, []() { Log::Register("windows", g_channel); }); in Initialize()
/llvm-project/lldb/source/Plugins/Process/POSIX/
H A DProcessPOSIXLog.h18 enum class POSIXLog : Log::MaskType {
19 Breakpoints = Log::ChannelFlag<0>,
20 Memory = Log::ChannelFlag<1>,
21 Process = Log::ChannelFlag<2>,
22 Ptrace = Log::ChannelFlag<3>,
23 Registers = Log::ChannelFlag<4>,
24 Thread = Log::ChannelFlag<5>,
25 Watchpoints = Log::ChannelFlag<6>,
26 Trace = Log::ChannelFlag<7>,
36 template <> Log::Channel &LogChannelFor<POSIXLog>();
H A DProcessPOSIXLog.cpp15 static constexpr Log::Category g_categories[] = {
25 static Log::Channel g_channel(g_categories, POSIXLog::Process);
27 template <> Log::Channel &lldb_private::LogChannelFor<POSIXLog>() { in LogChannelFor()
33 llvm::call_once(g_once_flag, []() { Log::Register("posix", g_channel); }); in Initialize()
/llvm-project/llvm/lib/CodeGen/
H A DMLRegAllocPriorityAdvisor.cpp181 MLModelRunner *Runner, Logger *Log) in DevelopmentModePriorityAdvisor() argument
182 : MLPriorityAdvisor(MF, RA, Indexes, Runner), Log(Log) {} in DevelopmentModePriorityAdvisor()
186 Logger *const Log; member in llvm::DevelopmentModePriorityAdvisor
201 if (!Log || !Log->hasAnyObservationForContext(MF.getName())) in logRewardIfNeeded()
207 if (Log->currentContext() != MF.getName()) { in logRewardIfNeeded()
211 if (Log->hasObservationInProgress()) in logRewardIfNeeded()
212 Log->logReward<float>(GetReward()); in logRewardIfNeeded()
255 Log in doInitialization()
273 std::unique_ptr<Logger> Log; global() member in llvm::DevelopmentModePriorityAdvisorAnalysis
[all...]
/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DLogChannelDWARF.h17 enum class DWARFLog : Log::MaskType {
18 DebugInfo = Log::ChannelFlag<0>,
19 DebugLine = Log::ChannelFlag<1>,
20 DebugMap = Log::ChannelFlag<2>,
21 Lookups = Log::ChannelFlag<3>,
22 TypeCompletion = Log::ChannelFlag<4>,
23 SplitDwarf = Log::ChannelFlag<5>,
34 template <> Log::Channel &LogChannelFor<DWARFLog>();
H A DLogChannelDWARF.cpp13 static constexpr Log::Category g_categories[] = {
28 static Log::Channel g_channel(g_categories, DWARFLog::DebugInfo);
30 template <> Log::Channel &lldb_private::LogChannelFor<DWARFLog>() { in LogChannelFor()
35 Log::Register("dwarf", g_channel); in Initialize()
38 void LogChannelDWARF::Terminate() { Log::Unregister("dwarf"); } in Terminate()
/llvm-project/lldb/unittests/Utility/
H A DLogTest.cpp22 enum class TestChannel : Log::MaskType {
23 FOO = Log::ChannelFlag<0>,
24 BAR = Log::ChannelFlag<1>,
30 static constexpr Log::Category test_categories[] = {
35 static Log::Channel test_channel(test_categories, TestChannel::FOO);
38 template <> Log::Channel &LogChannelFor<TestChannel>() { return test_channel; } in LogChannelFor()
48 return Log::EnableLogChannel(log_handler_sp, log_options, channel, categories, in EnableChannel()
57 return Log::DisableLogChannel(channel, categories, error_stream); in DisableChannel()
63 return Log::ListChannelCategories(channel, result_stream); in ListCategories()
69 void TearDown() override { Log::DisableAllLogChannels(); } in TearDown()
[all …]
/llvm-project/clang/tools/libclang/
H A DCIndexHigh.cpp412 LogRef Log = Logger::make(__func__); in clang_findReferencesInFile() local
415 if (Log) in clang_findReferencesInFile()
416 *Log << "Null cursor"; in clang_findReferencesInFile()
420 if (Log) in clang_findReferencesInFile()
421 *Log << "Got CXCursor_NoDeclFound"; in clang_findReferencesInFile()
425 if (Log) in clang_findReferencesInFile()
426 *Log << "Null file"; in clang_findReferencesInFile()
430 if (Log) in clang_findReferencesInFile()
431 *Log << "Null visitor"; in clang_findReferencesInFile()
435 if (Log) in clang_findReferencesInFile()
[all …]
/llvm-project/llvm/tools/llvm-diff/lib/
H A DDiffConsumer.cpp164 void DiffConsumer::logf(const LogBuilder &Log) { in logf() argument
170 StringRef format = Log.getFormat(); in logf()
183 case 'l': printValue(Log.getArgument(arg++), true); break; in logf()
184 case 'r': printValue(Log.getArgument(arg++), false); break; in logf()
194 void DiffConsumer::logd(const DiffLogBuilder &Log) { in logd() argument
197 for (unsigned I = 0, E = Log.getNumLines(); I != E; ++I) { in logd()
199 switch (Log.getLineKind(I)) { in logd()
202 Log.getLeft(I)->print(dbgs()); dbgs() << '\n'; in logd()
207 Log.getLeft(I)->print(dbgs()); dbgs() << '\n'; in logd()
212 Log.getRight(I)->print(dbgs()); dbgs() << '\n'; in logd()
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Dredundant-string-cstr-function.cpp76 void Log(const char *fmt, Args &&...args) { in Log() function in BaseLogger
114 LOGGER3.Log("%s\n", s1.c_str(), s2.c_str()); in logger2()
120 LOGGER4.Log("%d %s\n", 42, s1.c_str(), s2.c_str()); in logger2()
133 void Log(const char *fmt, Args &&...args) { in Log() function in NotLogger
137 void Log(const char *fmt, ...);
144 LOGGER.Log("%s\n", s1.c_str()); in logger3()
147 Log("%s\n", s1.c_str()); in logger3()
/llvm-project/llvm/lib/Analysis/
H A DInteractiveModelRunner.cpp43 Log = std::make_unique<Logger>(std::move(OutStream), InputSpecs, Advice, in InteractiveModelRunner()
50 Log->flush(); in InteractiveModelRunner()
59 Log->startObservation(); in evaluateUntyped()
61 Log->logTensorValue(I, reinterpret_cast<const char *>(getTensorUntyped(I))); in evaluateUntyped()
62 Log->endObservation(); in evaluateUntyped()
63 Log->flush(); in evaluateUntyped()
/llvm-project/lldb/source/Plugins/Process/Utility/
H A DNativeRegisterContextDBReg_arm64.cpp12 #include "lldb/Utility/Log.h"
19 Log *log = GetLog(LLDBLog::Watchpoints);
/llvm-project/clang/unittests/Analysis/FlowSensitive/
H A DLoggerTest.cpp39 E.getDataflowAnalysisContext().getOptions().Log->log( in transfer()
45 E.getDataflowAnalysisContext().getOptions().Log->log( in transferBranch()
107 std::string Log; in TEST() local
108 TestLogger Logger(Log); in TEST()
109 Inputs.BuiltinOptions.Log = &Logger; in TEST()
115 EXPECT_EQ(Log, R"(beginAnalysis() in TEST()
167 Inputs.BuiltinOptions.Log = Logger.get(); in TEST()
/llvm-project/lldb/source/Target/
H A DThreadPlanPython.cpp
H A DThreadPlan.cpp16 #include "lldb/Utility/Log.h"
80 Log *log = GetLog(LLDBLog::Step); in ShouldReportStop()
120 Log *log = GetLog(LLDBLog::Step); in WillResume()
203 Log *log = GetLog(LLDBLog::Thread); in ValidatePlan()
219 Log *log = GetLog(LLDBLog::Thread); in ShouldStop()
235 Log *log = GetLog(LLDBLog::Thread); in WillStop()
251 Log *log = GetLog(LLDBLog::Thread); in DoPlanExplainsStop()
269 Log *log = GetLog(LLDBLog::Thread); in MischiefManaged()
286 Log *log = GetLog(LLDBLog::Thread); in GetPlanRunState()
/llvm-project/clang/test/CXX/class/class.compare/class.compare.default/
H A Dp5.cpp14 struct Log { struct
22 Log *log; argument
28 Log log; in check()
40 constexpr C(Log *p) : B<'a'>{p}, B<'b'>{p}, r{p, p, p}, c{p}, s{p, p}, d{p} {} in C()
53 constexpr D(Log *p) : x{p}, y{p, p} {} in D()

12345678910>>...16