Lines Matching refs:config
91 bool PointerData::Initialize(const Config& config) NO_THREAD_SAFETY_ANALYSIS { in Initialize() argument
100 backtrace_enabled_ = config.backtrace_enabled(); in Initialize()
101 if (config.backtrace_enable_on_signal()) { in Initialize()
105 if (sigaction64(config.backtrace_signal(), &enable_act, nullptr) != 0) { in Initialize()
109 if (config.options() & VERBOSE) { in Initialize()
111 config.backtrace_signal(), getpid()); in Initialize()
115 if (config.options() & BACKTRACE) { in Initialize()
119 if (sigaction64(config.backtrace_dump_signal(), &act, nullptr) != 0) { in Initialize()
123 if (config.options() & VERBOSE) { in Initialize()
125 config.backtrace_dump_signal(), getpid()); in Initialize()
131 if (config.options() & FREE_TRACK) { in Initialize()
132 g_cmp_mem.resize(kCompareBufferSize, config.fill_free_value()); in Initialize()
140 if (g_debug->config().options() & BACKTRACE_FULL) { in AddBacktrace()
163 if (g_debug->config().options() & BACKTRACE_FULL) { in AddBacktrace()
190 if (g_debug->config().options() & BACKTRACE_FULL) { in RemoveBacktrace()
200 hash_index = AddBacktrace(g_debug->config().backtrace_frames()); in Add()
257 if (g_debug->config().options() & BACKTRACE_FULL) { in LogBacktrace()
278 uint8_t fill_free_value = g_debug->config().fill_free_value(); in LogFreeError()
291 if (g_debug->config().options() & ABORT_ON_ERROR) { in LogFreeError()
306 if (g_debug->config().options() & ABORT_ON_ERROR) { in VerifyFreedPointer()
319 size_t bytes = (usable_size < g_debug->config().fill_on_free_bytes()) in VerifyFreedPointer()
321 : g_debug->config().fill_on_free_bytes(); in VerifyFreedPointer()
338 size_t num_frames = g_debug->config().free_track_backtrace_num_frames(); in AddFreed()
345 if (free_pointers_.size() == g_debug->config().free_track_allocations()) { in AddFreed()
404 if (g_debug->config().options() & BACKTRACE_FULL) { in GetList()
526 *backtrace_size = g_debug->config().backtrace_frames(); in GetInfo()
571 dprintf(fd, "Backtrace size: %zu\n", g_debug->config().backtrace_frames()); in DumpLiveToFile()