Lines Matching +full:re +full:- +full:config
1 //===-- xray_log_interface.cpp --------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
36 // when it should be a map because we're avoiding having to depend on C++
72 for (ModeImpl *it = ModeImpls; it != &SentinelModeImpl; it = it->Next) { in __xray_log_register_mode()
73 if (!internal_strcmp(Mode, it->Mode)) in __xray_log_register_mode()
77 NewModeImpl->Next = ModeImpls; in __xray_log_register_mode()
78 NewModeImpl->Mode = internal_strdup(Mode); in __xray_log_register_mode()
79 NewModeImpl->Impl = Impl; in __xray_log_register_mode()
87 for (ModeImpl *it = ModeImpls; it != &SentinelModeImpl; it = it->Next) { in __xray_log_select_mode()
88 if (!internal_strcmp(Mode, it->Mode)) { in __xray_log_select_mode()
90 CurrentXRayImpl = it->Impl; in __xray_log_select_mode()
92 __xray_set_handler(it->Impl.handle_arg0); in __xray_log_select_mode()
102 return CurrentMode->Mode; in __xray_log_get_current_mode()
136 return GlobalXRayImpl->log_init(BufferSize, MaxBuffers, Args, ArgsSize); in __xray_log_init()
139 XRayLogInitStatus __xray_log_init_mode(const char *Mode, const char *Config) in __xray_log_init_mode() argument
145 if (Config == nullptr) in __xray_log_init_mode()
149 if (CurrentMode == nullptr || internal_strcmp(CurrentMode->Mode, Mode) != 0) in __xray_log_init_mode()
152 // Here we do some work to coerce the pointer we're provided, so that in __xray_log_init_mode()
154 // data provided in the Config argument. in __xray_log_init_mode()
155 return GlobalXRayImpl->log_init( in __xray_log_init_mode()
156 0, 0, const_cast<void *>(static_cast<const void *>(Config)), 0); in __xray_log_init_mode()
160 __xray_log_init_mode_bin(const char *Mode, const char *Config, in __xray_log_init_mode_bin() argument
166 if (Config == nullptr) in __xray_log_init_mode_bin()
170 if (CurrentMode == nullptr || internal_strcmp(CurrentMode->Mode, Mode) != 0) in __xray_log_init_mode_bin()
173 // Here we do some work to coerce the pointer we're provided, so that in __xray_log_init_mode_bin()
175 // data provided in the Config argument. in __xray_log_init_mode_bin()
176 return GlobalXRayImpl->log_init( in __xray_log_init_mode_bin()
177 0, 0, const_cast<void *>(static_cast<const void *>(Config)), ConfigSize); in __xray_log_init_mode_bin()
184 return GlobalXRayImpl->log_finalize(); in __xray_log_finalize()
191 return GlobalXRayImpl->flush_log(); in __xray_log_flushLog()
203 auto Mode = CurrentMode ? CurrentMode->Mode : nullptr; in __xray_log_process_buffers()