Home
last modified time | relevance | path

Searched refs:gwp_asan (Results 1 – 25 of 117) sorted by relevance

12345

/external/gwp_asan/gwp_asan/tests/
Dharness.h28 namespace gwp_asan {
45 gwp_asan::options::Options Opts; in SetUp()
49 Opts.InstallForkHandlers = gwp_asan::test::OnlyOnce(); in SetUp()
56 gwp_asan::GuardedPoolAllocator GPA;
57 decltype(gwp_asan::options::Options::MaxSimultaneousAllocations)
64 InitNumSlots(decltype(gwp_asan::options::Options::MaxSimultaneousAllocations) in InitNumSlots()
66 gwp_asan::options::Options Opts; in InitNumSlots()
72 Opts.InstallForkHandlers = gwp_asan::test::OnlyOnce(); in InitNumSlots()
79 gwp_asan::GuardedPoolAllocator GPA;
80 decltype(gwp_asan::options::Options::MaxSimultaneousAllocations)
[all …]
Dbacktrace.cpp18 AllocateMemory(gwp_asan::GuardedPoolAllocator &GPA) { in AllocateMemory()
22 DeallocateMemory(gwp_asan::GuardedPoolAllocator &GPA, void *Ptr) { in DeallocateMemory()
26 DeallocateMemory2(gwp_asan::GuardedPoolAllocator &GPA, void *Ptr) { in DeallocateMemory2()
64 gwp_asan::AllocationMetadata Meta; in TEST()
78 gwp_asan::AllocationMetadata Meta; in TEST()
90 EXPECT_EQ(gwp_asan::AllocationMetadata::kMaxTraceLengthToCollect, in TEST()
95 gwp_asan::AllocationMetadata Meta; in TEST()
110 gwp_asan::AllocationMetadata Meta; in TEST()
Doptions.cpp26 gwp_asan::options::initOptions("Enabled=0:SampleRate=4:" in TEST()
29 gwp_asan::options::Options Opts = gwp_asan::options::getOptions(); in TEST()
38 gwp_asan::options::initOptions(OptionsStr, MessageRecorder); in RunErrorTest()
Dcrash_handler_api.cpp14 using Error = gwp_asan::Error;
15 using GuardedPoolAllocator = gwp_asan::GuardedPoolAllocator;
16 using AllocationMetadata = gwp_asan::AllocationMetadata;
17 using AllocatorState = gwp_asan::AllocatorState;
49 Meta->AllocationTrace.TraceSize = gwp_asan::compression::pack( in setupBacktraces()
55 Meta->DeallocationTrace.TraceSize = gwp_asan::compression::pack( in setupBacktraces()
/external/llvm-project/compiler-rt/lib/gwp_asan/tests/
Dharness.h27 namespace gwp_asan {
44 gwp_asan::options::Options Opts; in SetUp()
48 Opts.InstallForkHandlers = gwp_asan::test::OnlyOnce(); in SetUp()
55 gwp_asan::GuardedPoolAllocator GPA;
56 decltype(gwp_asan::options::Options::MaxSimultaneousAllocations)
63 InitNumSlots(decltype(gwp_asan::options::Options::MaxSimultaneousAllocations) in InitNumSlots()
65 gwp_asan::options::Options Opts; in InitNumSlots()
71 Opts.InstallForkHandlers = gwp_asan::test::OnlyOnce(); in InitNumSlots()
78 gwp_asan::GuardedPoolAllocator GPA;
79 decltype(gwp_asan::options::Options::MaxSimultaneousAllocations)
[all …]
Dalignment.cpp23 gwp_asan::rightAlignedAllocationSize( in TEST()
24 KV.first, gwp_asan::AlignmentStrategy::POWER_OF_TWO)); in TEST()
36 EXPECT_EQ(KV.second, gwp_asan::rightAlignedAllocationSize( in TEST()
37 KV.first, gwp_asan::AlignmentStrategy::BIONIC)); in TEST()
43 EXPECT_EQ(i, gwp_asan::rightAlignedAllocationSize( in TEST()
44 i, gwp_asan::AlignmentStrategy::PERFECT)); in TEST()
Dbacktrace.cpp18 AllocateMemory(gwp_asan::GuardedPoolAllocator &GPA) { in AllocateMemory()
22 DeallocateMemory(gwp_asan::GuardedPoolAllocator &GPA, void *Ptr) { in DeallocateMemory()
26 DeallocateMemory2(gwp_asan::GuardedPoolAllocator &GPA, void *Ptr) { in DeallocateMemory2()
64 gwp_asan::AllocationMetadata Meta; in TEST()
78 gwp_asan::AllocationMetadata Meta; in TEST()
90 EXPECT_EQ(gwp_asan::AllocationMetadata::kMaxTraceLengthToCollect, in TEST()
95 gwp_asan::AllocationMetadata Meta; in TEST()
110 gwp_asan::AllocationMetadata Meta; in TEST()
Dcrash_handler_api.cpp14 using Error = gwp_asan::Error;
15 using GuardedPoolAllocator = gwp_asan::GuardedPoolAllocator;
16 using AllocationMetadata = gwp_asan::AllocationMetadata;
17 using AllocatorState = gwp_asan::AllocatorState;
49 Meta->AllocationTrace.TraceSize = gwp_asan::compression::pack( in setupBacktraces()
55 Meta->DeallocationTrace.TraceSize = gwp_asan::compression::pack( in setupBacktraces()
/external/gwp_asan/gwp_asan/
Dcrash_handler.h38 bool __gwp_asan_error_is_mine(const gwp_asan::AllocatorState *State,
44 gwp_asan::Error
45 __gwp_asan_diagnose_error(const gwp_asan::AllocatorState *State,
46 const gwp_asan::AllocationMetadata *Metadata,
54 __gwp_asan_get_internal_crash_address(const gwp_asan::AllocatorState *State);
61 const gwp_asan::AllocationMetadata *
62 __gwp_asan_get_metadata(const gwp_asan::AllocatorState *State,
63 const gwp_asan::AllocationMetadata *Metadata,
76 const gwp_asan::AllocationMetadata *AllocationMeta);
80 const gwp_asan::AllocationMetadata *AllocationMeta);
[all …]
Dcrash_handler.cpp16 using AllocationMetadata = gwp_asan::AllocationMetadata;
17 using Error = gwp_asan::Error;
23 bool __gwp_asan_error_is_mine(const gwp_asan::AllocatorState *State, in __gwp_asan_error_is_mine()
34 __gwp_asan_get_internal_crash_address(const gwp_asan::AllocatorState *State) { in __gwp_asan_get_internal_crash_address()
39 addrToMetadata(const gwp_asan::AllocatorState *State, in addrToMetadata()
45 gwp_asan::Error
46 __gwp_asan_diagnose_error(const gwp_asan::AllocatorState *State, in __gwp_asan_diagnose_error()
47 const gwp_asan::AllocationMetadata *Metadata, in __gwp_asan_diagnose_error()
81 const gwp_asan::AllocationMetadata *
82 __gwp_asan_get_metadata(const gwp_asan::AllocatorState *State, in __gwp_asan_get_metadata()
[all …]
Dcommon.cpp14 using AllocationMetadata = gwp_asan::AllocationMetadata;
15 using Error = gwp_asan::Error;
17 namespace gwp_asan { namespace
/external/llvm-project/compiler-rt/lib/gwp_asan/
Dcrash_handler.h38 bool __gwp_asan_error_is_mine(const gwp_asan::AllocatorState *State,
44 gwp_asan::Error
45 __gwp_asan_diagnose_error(const gwp_asan::AllocatorState *State,
46 const gwp_asan::AllocationMetadata *Metadata,
54 __gwp_asan_get_internal_crash_address(const gwp_asan::AllocatorState *State);
61 const gwp_asan::AllocationMetadata *
62 __gwp_asan_get_metadata(const gwp_asan::AllocatorState *State,
63 const gwp_asan::AllocationMetadata *Metadata,
76 const gwp_asan::AllocationMetadata *AllocationMeta);
80 const gwp_asan::AllocationMetadata *AllocationMeta);
[all …]
Dcrash_handler.cpp15 using AllocationMetadata = gwp_asan::AllocationMetadata;
16 using Error = gwp_asan::Error;
22 bool __gwp_asan_error_is_mine(const gwp_asan::AllocatorState *State, in __gwp_asan_error_is_mine()
33 __gwp_asan_get_internal_crash_address(const gwp_asan::AllocatorState *State) { in __gwp_asan_get_internal_crash_address()
38 addrToMetadata(const gwp_asan::AllocatorState *State, in addrToMetadata()
44 gwp_asan::Error
45 __gwp_asan_diagnose_error(const gwp_asan::AllocatorState *State, in __gwp_asan_diagnose_error()
46 const gwp_asan::AllocationMetadata *Metadata, in __gwp_asan_diagnose_error()
80 const gwp_asan::AllocationMetadata *
81 __gwp_asan_get_metadata(const gwp_asan::AllocatorState *State, in __gwp_asan_get_metadata()
[all …]
/external/gwp_asan/gwp_asan/optional/
Dsegv_handler_posix.cpp26 using gwp_asan::AllocationMetadata;
27 using gwp_asan::Error;
28 using gwp_asan::GuardedPoolAllocator;
29 using gwp_asan::Printf_t;
30 using gwp_asan::backtrace::PrintBacktrace_t;
31 using gwp_asan::backtrace::SegvBacktrace_t;
36 ScopedEndOfReportDecorator(gwp_asan::Printf_t Printf) : Printf(Printf) {} in ScopedEndOfReportDecorator()
38 gwp_asan::Printf_t Printf;
43 const gwp_asan::AllocationMetadata *Metadata, in printHeader()
76 uint64_t ThreadID = gwp_asan::getThreadID(); in printHeader()
[all …]
Dsegv_handler.h16 namespace gwp_asan {
24 void installSignalHandlers(gwp_asan::GuardedPoolAllocator *GPA, Printf_t Printf,
25 gwp_asan::backtrace::PrintBacktrace_t PrintBacktrace,
26 gwp_asan::backtrace::SegvBacktrace_t SegvBacktrace);
Doptions_parser.cpp33 explicit OptionParser(gwp_asan::Printf_t PrintfForWarnings) in OptionParser()
58 gwp_asan::Printf_t Printf = nullptr;
197 gwp_asan::options::Options *o) { in registerGwpAsanOptions()
208 gwp_asan::options::Options *getOptionsInternal() { in getOptionsInternal()
209 static gwp_asan::options::Options GwpAsanOptions; in getOptionsInternal()
214 namespace gwp_asan { namespace
Dsegv_handler_fuchsia.cpp13 namespace gwp_asan { namespace
15 void installSignalHandlers(gwp_asan::GuardedPoolAllocator * /* GPA */, in installSignalHandlers()
/external/llvm-project/compiler-rt/lib/gwp_asan/optional/
Dsegv_handler_posix.cpp21 using gwp_asan::AllocationMetadata;
22 using gwp_asan::Error;
23 using gwp_asan::GuardedPoolAllocator;
24 using gwp_asan::crash_handler::PrintBacktrace_t;
25 using gwp_asan::crash_handler::Printf_t;
26 using gwp_asan::crash_handler::SegvBacktrace_t;
30 gwp_asan::GuardedPoolAllocator *GPAForSignalHandler;
39 gwp_asan::crash_handler::dumpReport( in sigSegvHandler()
67 ScopedEndOfReportDecorator(gwp_asan::crash_handler::Printf_t Printf) in ScopedEndOfReportDecorator()
70 gwp_asan::crash_handler::Printf_t Printf;
[all …]
Dsegv_handler.h15 namespace gwp_asan {
77 void installSignalHandlers(gwp_asan::GuardedPoolAllocator *GPA, Printf_t Printf,
83 void dumpReport(uintptr_t ErrorPtr, const gwp_asan::AllocatorState *State,
84 const gwp_asan::AllocationMetadata *Metadata,
Dsegv_handler_fuchsia.cpp13 namespace gwp_asan { namespace
15 void installSignalHandlers(gwp_asan::GuardedPoolAllocator * /* GPA */, in installSignalHandlers()
/external/gwp_asan/
DAndroid.bp103 name: "gwp_asan",
110 "gwp_asan/common.cpp",
111 "gwp_asan/guarded_pool_allocator.cpp",
112 "gwp_asan/platform_specific/common_posix.cpp",
113 "gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp",
114 "gwp_asan/platform_specific/mutex_posix.cpp",
115 "gwp_asan/platform_specific/utilities_posix.cpp",
116 "gwp_asan/stack_trace_compressor.cpp",
145 "gwp_asan/common.cpp",
146 "gwp_asan/crash_handler.cpp",
[all …]
/external/llvm-project/compiler-rt/tools/gwp_asan/
DCMakeLists.txt5 ../../lib/gwp_asan/stack_trace_compressor.cpp
6 ../../lib/gwp_asan/stack_trace_compressor.h
17 if (TARGET gwp_asan)
18 add_dependencies(gwp_asan stack_trace_compressor_fuzzer)
Dstack_trace_compressor_fuzzer.cpp17 gwp_asan::compression::unpack(Data, Size, in LLVMFuzzerTestOneInput()
22 size_t BytesWritten = gwp_asan::compression::pack( in LLVMFuzzerTestOneInput()
27 size_t DecodedElements = gwp_asan::compression::unpack( in LLVMFuzzerTestOneInput()
/external/gwp_asan/android/
Dtest_backtrace.cpp62 gwp_asan::Printf_t Print) { in PrintBacktraceUnwindstack()
64 gwp_asan::AllocationMetadata::kMaxTraceLengthToCollect, getpid()); in PrintBacktraceUnwindstack()
81 namespace gwp_asan { namespace
/external/gwp_asan/tools/
Dstack_trace_compressor_fuzzer.cpp17 gwp_asan::compression::unpack(Data, Size, in LLVMFuzzerTestOneInput()
22 size_t BytesWritten = gwp_asan::compression::pack( in LLVMFuzzerTestOneInput()
27 size_t DecodedElements = gwp_asan::compression::unpack( in LLVMFuzzerTestOneInput()

12345