Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 37) sorted by relevance

12

/bionic/libc/malloc_debug/
DTrackData.cpp50 for (const auto& header : headers_) { in GetList() local
51 list->push_back(header); in GetList()
61 void TrackData::Add(const Header* header, bool backtrace_found) { in Add() argument
68 headers_.insert(header); in Add()
72 void TrackData::Remove(const Header* header, bool backtrace_found) { in Remove() argument
76 headers_.erase(header); in Remove()
83 bool TrackData::Contains(const Header* header) { in Contains() argument
87 bool found = headers_.count(header); in Contains()
99 for (const auto& header : list) { in DisplayLeaks() local
101 header->real_size(), debug.GetPointer(header), ++track_count, list.size()); in DisplayLeaks()
[all …]
DFreeTrackData.cpp45 void FreeTrackData::LogFreeError(DebugData& debug, const Header* header, in LogFreeError() argument
52 for (size_t i = 0; i < header->usable_size; i++) { in LogFreeError()
57 auto back_iter = backtraces_.find(header); in LogFreeError()
66 void FreeTrackData::VerifyAndFree(DebugData& debug, const Header* header, in VerifyAndFree() argument
70 if (header->tag != DEBUG_FREE_TAG) { in VerifyAndFree()
72 error_log("+++ ALLOCATION %p HAS CORRUPTED HEADER TAG 0x%x AFTER FREE", pointer, header->tag); in VerifyAndFree()
76 size_t bytes = header->usable_size; in VerifyAndFree()
81 LogFreeError(debug, header, reinterpret_cast<const uint8_t*>(pointer)); in VerifyAndFree()
89 auto back_iter = backtraces_.find(header); in VerifyAndFree()
92 backtraces_.erase(header); in VerifyAndFree()
[all …]
Dmalloc_debug.cpp116 static void LogTagError(const Header* header, const void* pointer, const char* name) { in LogTagError() argument
120 if (header->tag == DEBUG_FREE_TAG) { in LogTagError()
123 g_debug->free_track->LogBacktrace(header); in LogTagError()
126 error_log("+++ ALLOCATION %p HAS INVALID TAG %" PRIx32 " (%s)", pointer, header->tag, name); in LogTagError()
136 static void* InitHeader(Header* header, void* orig_pointer, size_t size) { in InitHeader() argument
137 header->tag = DEBUG_TAG; in InitHeader()
138 header->orig_pointer = orig_pointer; in InitHeader()
139 header->size = size; in InitHeader()
141 header->set_zygote(); in InitHeader()
143 header->usable_size = g_dispatch->malloc_usable_size(orig_pointer); in InitHeader()
[all …]
DGuardData.cpp48 void GuardData::LogFailure(const Header* header, const void* pointer, const void* data) { in LogFailure() argument
53 header->real_size(), GetTypeName()); in LogFailure()
83 bool FrontGuardData::Valid(DebugData& debug, const Header* header) { in Valid() argument
84 return GuardData::Valid(debug.GetFrontGuard(header)); in Valid()
87 void FrontGuardData::LogFailure(DebugData& debug, const Header* header) { in LogFailure() argument
88 GuardData::LogFailure(header, debug.GetPointer(header), debug.GetFrontGuard(header)); in LogFailure()
95 bool RearGuardData::Valid(DebugData& debug, const Header* header) { in Valid() argument
96 return GuardData::Valid(debug.GetRearGuard(header)); in Valid()
99 void RearGuardData::LogFailure(DebugData& debug, const Header* header) { in LogFailure() argument
100 GuardData::LogFailure(header, debug.GetPointer(header), debug.GetRearGuard(header)); in LogFailure()
DDebugData.h55 inline void* GetPointer(const Header* header) { in GetPointer() argument
56 uintptr_t value = reinterpret_cast<uintptr_t>(header); in GetPointer()
65 BacktraceHeader* GetAllocBacktrace(const Header* header) { in GetAllocBacktrace() argument
66 uintptr_t value = reinterpret_cast<uintptr_t>(header); in GetAllocBacktrace()
70 uint8_t* GetFrontGuard(const Header* header) { in GetFrontGuard() argument
71 uintptr_t value = reinterpret_cast<uintptr_t>(header); in GetFrontGuard()
75 uint8_t* GetRearGuard(const Header* header) { in GetRearGuard() argument
76 uintptr_t value = reinterpret_cast<uintptr_t>(GetPointer(header)); in GetRearGuard()
77 return reinterpret_cast<uint8_t*>(value + header->real_size()); in GetRearGuard()
DGuardData.h51 void LogFailure(const Header* header, const void* pointer, const void* data);
66 bool Valid(DebugData& debug, const Header* header);
68 void LogFailure(DebugData& debug, const Header* header);
85 bool Valid(DebugData& debug, const Header* header);
87 void LogFailure(DebugData& debug, const Header* header);
DFreeTrackData.h52 void Add(DebugData& debug, const Header* header);
56 void LogBacktrace(const Header* header);
59 void LogFreeError(DebugData& debug, const Header* header, const uint8_t* pointer);
60 void VerifyAndFree(DebugData& debug, const Header* header, const void* pointer);
DTrackData.h52 void Add(const Header* header, bool backtrace_found);
54 void Remove(const Header* header, bool backtrace_found);
56 bool Contains(const Header *header);
DREADME.md55 This option adds a special header to all allocations that contains the guard
77 This option adds a special header to all allocations that contains
107 This option adds a special header to all allocations that contains the
122 This option adds a special header to all allocations that contains the
171 This option adds a special header to all allocations that contains
188 an allocation has a special header applied, and the header is corrupted
212 This option adds a special header to all allocations that contains
/bionic/libc/kernel/tools/
Dkernel.py85 header = m.group(1)
96 header = "%s%s" % (_prefix, header)
98 if not header in self.headers:
99 self.headers[header] = set()
103 print "=== %s uses %s" % (from_file, header)
104 self.headers[header].add(from_file)
150 def getHeaderUsers(self,header): argument
152 return set(self.headers.get(header))
224 def pathFromHeader(self,header): argument
225 path = header
[all …]
Dgenerate_uapi_headers.sh94 header=$(basename ${file})
95 if [[ -f "${check_dir}/${header}" ]]; then
/bionic/libc/kernel/uapi/asm-x86/asm/
Dkvm_para.h72 struct kvm_mmu_op_header header; member
79 struct kvm_mmu_op_header header; member
82 struct kvm_mmu_op_header header; member
Dbootparam.h72 __u32 header; member
/bionic/libc/kernel/
DREADME.TXT14 They can be also included before or after any Bionic C library header.
20 also includes the header files that are generated by building the kernel
34 Checks out the android kernel and generates all uapi header files.
38 Prints the clean version of a given kernel header. With the -u option,
39 this will also update the corresponding clean header file if its
/bionic/
DREADME.md42 publicly-exported header file.
69 # The majority of header files are actually in libc/include/, but many
82 # The public header files on everyone's include path. These are a mixture of
86 # The kernel uapi header files. These are scrubbed copies of the originals
94 # These are private header files meant for use within bionic itself.
111 # header/source files needed by the BSD implementation.
150 3. Add constants (and perhaps types) to the appropriate header file.
152 kernel uapi header files, in which case you just need to make sure that
153 the appropriate POSIX header file in libc/include/ includes the
155 4. Add function declarations to the appropriate header file.
[all …]
/bionic/libc/kernel/uapi/linux/
Dpci_regs.h681 #define PCI_EXT_CAP_ID(header) (header & 0x0000ffff) argument
682 #define PCI_EXT_CAP_VER(header) ((header >> 16) & 0xf) argument
684 #define PCI_EXT_CAP_NEXT(header) ((header >> 20) & 0xffc) argument
Dfirewire-cdev.h97 __u32 header[0]; member
257 __u32 header[0]; member
/bionic/libc/kernel/uapi/misc/
Dcxl.h109 struct cxl_event_header header; member
/bionic/libc/tzcode/
Dlocaltime.c2355 } header; in __bionic_open_tzdata_path() local
2356 memset(&header, 0, sizeof(header)); in __bionic_open_tzdata_path()
2357 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, &header, sizeof(header))); in __bionic_open_tzdata_path()
2358 if (bytes_read != sizeof(header)) { in __bionic_open_tzdata_path()
2366 if (strncmp(header.tzdata_version, "tzdata", 6) != 0 || header.tzdata_version[11] != 0) { in __bionic_open_tzdata_path()
2368 __FUNCTION__, path, header.tzdata_version); in __bionic_open_tzdata_path()
2375 fprintf(stderr, "version: %s\n", header.tzdata_version); in __bionic_open_tzdata_path()
2376 fprintf(stderr, "index_offset = %d\n", ntohl(header.index_offset)); in __bionic_open_tzdata_path()
2377 fprintf(stderr, "data_offset = %d\n", ntohl(header.data_offset)); in __bionic_open_tzdata_path()
2378 fprintf(stderr, "zonetab_offset = %d\n", ntohl(header.zonetab_offset)); in __bionic_open_tzdata_path()
[all …]
/bionic/libc/kernel/uapi/linux/raid/
Dmd_p.h227 struct r5l_payload_header header; member
241 struct r5l_payload_header header; member
/bionic/libstdc++/include/
Dclimits34 * Standard C++ Library wrapper around the C limits.h header file.
Dcstdint34 * Standard C++ Library wrapper around the C stdint.h header file.
Dcfloat34 * Standard C++ Library wrapper around the C float.h header file.
Dcsignal34 * Standard C++ Library wrapper around the C signal.h header file.
Dcerrno34 * Standard C++ Library wrapper around the C errno.h header file.

12