Searched refs:header (Results 1 - 19 of 19) sorted by relevance

/bionic/libc/malloc_debug/
H A DTrackData.cpp50 for (const auto& header : headers_) {
51 list->push_back(header);
61 void TrackData::Add(const Header* header, bool backtrace_found) { argument
68 headers_.insert(header);
72 void TrackData::Remove(const Header* header, bool backtrace_found) { argument
76 headers_.erase(header);
83 bool TrackData::Contains(const Header* header) { argument
87 bool found = headers_.count(header);
99 for (const auto& header : list) {
101 header
[all...]
H A DDebugData.h55 inline void* GetPointer(const Header* header) { argument
56 uintptr_t value = reinterpret_cast<uintptr_t>(header);
65 BacktraceHeader* GetAllocBacktrace(const Header* header) { argument
66 uintptr_t value = reinterpret_cast<uintptr_t>(header);
70 uint8_t* GetFrontGuard(const Header* header) { argument
71 uintptr_t value = reinterpret_cast<uintptr_t>(header);
75 uint8_t* GetRearGuard(const Header* header) { argument
76 uintptr_t value = reinterpret_cast<uintptr_t>(GetPointer(header));
77 return reinterpret_cast<uint8_t*>(value + header->real_size());
H A DGuardData.cpp48 void GuardData::LogFailure(const Header* header, const void* pointer, const void* data) { argument
53 header->real_size(), GetTypeName());
83 bool FrontGuardData::Valid(DebugData& debug, const Header* header) { argument
84 return GuardData::Valid(debug.GetFrontGuard(header));
87 void FrontGuardData::LogFailure(DebugData& debug, const Header* header) { argument
88 GuardData::LogFailure(header, debug.GetPointer(header), debug.GetFrontGuard(header));
95 bool RearGuardData::Valid(DebugData& debug, const Header* header) { argument
96 return GuardData::Valid(debug.GetRearGuard(header));
99 LogFailure(DebugData& debug, const Header* header) argument
[all...]
H A DFreeTrackData.cpp45 void FreeTrackData::LogFreeError(DebugData& debug, const Header* header, argument
52 for (size_t i = 0; i < header->usable_size; i++) {
57 auto back_iter = backtraces_.find(header);
66 void FreeTrackData::VerifyAndFree(DebugData& debug, const Header* header, argument
70 if (header->tag != DEBUG_FREE_TAG) {
72 error_log("+++ ALLOCATION %p HAS CORRUPTED HEADER TAG 0x%x AFTER FREE", pointer, header->tag);
76 size_t bytes = header->usable_size;
81 LogFreeError(debug, header, reinterpret_cast<const uint8_t*>(pointer));
89 auto back_iter = backtraces_.find(header);
92 backtraces_.erase(header);
97 Add(DebugData& debug, const Header* header) argument
131 LogBacktrace(const Header* header) argument
[all...]
H A Dmalloc_debug.cpp116 static void LogTagError(const Header* header, const void* pointer, const char* name) { argument
120 if (header->tag == DEBUG_FREE_TAG) {
123 g_debug->free_track->LogBacktrace(header);
126 error_log("+++ ALLOCATION %p HAS INVALID TAG %" PRIx32 " (%s)", pointer, header->tag, name);
136 static void* InitHeader(Header* header, void* orig_pointer, size_t size) { argument
137 header->tag = DEBUG_TAG;
138 header->orig_pointer = orig_pointer;
139 header->size = size;
141 header->set_zygote();
143 header
272 Header* header = g_debug->GetHeader(pointer); local
304 Header* header = reinterpret_cast<Header*>( local
330 Header* header; local
428 Header* header = g_debug->GetHeader(reinterpret_cast<void*>(value)); local
481 Header* header = g_debug->GetHeader(pointer); local
571 Header* header = reinterpret_cast<Header*>( local
615 const Header* header = reinterpret_cast<const Header*>(pointer); local
[all...]
H A 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);
H A 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);
H A 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);
/bionic/libc/kernel/tools/
H A 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):
151 """return the set of all users for a given header"""
152 return set(self.headers.get(header))
[all...]
H A Dgenerate_uapi_headers.sh94 header=$(basename ${file})
95 if [[ -f "${check_dir}/${header}" ]]; then
233 # Special copy of generated header files from arch/<ARCH>/generated/asm that
/bionic/libc/kernel/uapi/asm-x86/asm/
H A Dkvm_para.h4 *** This header was automatically generated from a Linux kernel header
7 *** structures, and macros generated from the original header, and thus,
10 *** To edit the content of this header, modify the corresponding
72 struct kvm_mmu_op_header header; member in struct:kvm_mmu_op_write_pte
79 struct kvm_mmu_op_header header; member in struct:kvm_mmu_op_flush_tlb
82 struct kvm_mmu_op_header header; member in struct:kvm_mmu_op_release_pt
H A Dbootparam.h4 *** This header was automatically generated from a Linux kernel header
7 *** structures, and macros generated from the original header, and thus,
10 *** To edit the content of this header, modify the corresponding
72 __u32 header; member in struct:setup_header
/bionic/libc/kernel/uapi/misc/
H A Dcxl.h4 *** This header was automatically generated from a Linux kernel header
7 *** structures, and macros generated from the original header, and thus,
10 *** To edit the content of this header, modify the corresponding
109 struct cxl_event_header header; member in struct:cxl_event
/bionic/libc/tzcode/
H A Dlocaltime.c348 /* The first part of the buffer, interpreted as a header. */
2355 } header; local
2356 memset(&header, 0, sizeof(header));
2357 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, &header, sizeof(header)));
2358 if (bytes_read != sizeof(header)) {
2359 fprintf(stderr, "%s: could not read header of \"%s\": %s\n",
2366 if (strncmp(header.tzdata_version, "tzdata", 6) != 0 || header
[all...]
/bionic/libc/kernel/uapi/linux/
H A Dfirewire-cdev.h4 *** This header was automatically generated from a Linux kernel header
7 *** structures, and macros generated from the original header, and thus,
10 *** To edit the content of this header, modify the corresponding
97 __u32 header[0]; member in struct:fw_cdev_event_iso_interrupt
257 __u32 header[0]; member in struct:fw_cdev_iso_packet
H A Dpci_regs.h4 *** This header was automatically generated from a Linux kernel header
7 *** structures, and macros generated from the original header, and thus,
10 *** To edit the content of this header, modify the corresponding
681 #define PCI_EXT_CAP_ID(header) (header & 0x0000ffff)
682 #define PCI_EXT_CAP_VER(header) ((header >> 16) & 0xf)
684 #define PCI_EXT_CAP_NEXT(header) ((header >> 2
[all...]
/bionic/libc/kernel/uapi/linux/raid/
H A Dmd_p.h4 *** This header was automatically generated from a Linux kernel header
7 *** structures, and macros generated from the original header, and thus,
10 *** To edit the content of this header, modify the corresponding
227 struct r5l_payload_header header; member in struct:r5l_payload_data_parity
241 struct r5l_payload_header header; member in struct:r5l_payload_flush
/bionic/libc/kernel/uapi/drm/
H A Dradeon_drm.h4 *** This header was automatically generated from a Linux kernel header
7 *** structures, and macros generated from the original header, and thus,
10 *** To edit the content of this header, modify the corresponding
186 } header; member in union:__anon143
242 } header; member in union:__anon151
/bionic/libc/
H A DAndroid.mk817 # These files are built with the freebsd-compat.h header file
851 # These files are built with the netbsd-compat.h header file
890 # These files are built with the openbsd-compat.h header file
928 # These files are built with the openbsd-compat.h header file
968 # These files are built with the openbsd-compat.h header file

Completed in 1577 milliseconds