/bionic/libc/malloc_debug/ |
D | FreeTrackData.cpp | 45 void FreeTrackData::LogFreeError(const Header* header, const uint8_t* pointer) { in LogFreeError() argument 49 for (size_t i = 0; i < header->usable_size; i++) { in LogFreeError() 54 auto back_iter = backtraces_.find(header); in LogFreeError() 63 void FreeTrackData::VerifyAndFree(const Header* header) { in VerifyAndFree() argument 64 const void* pointer = debug_->GetPointer(header); in VerifyAndFree() 65 if (header->tag != DEBUG_FREE_TAG) { in VerifyAndFree() 67 error_log("+++ ALLOCATION %p HAS CORRUPTED HEADER TAG 0x%x AFTER FREE", pointer, header->tag); in VerifyAndFree() 71 size_t bytes = header->usable_size; in VerifyAndFree() 77 LogFreeError(header, reinterpret_cast<const uint8_t*>(pointer)); in VerifyAndFree() 85 auto back_iter = backtraces_.find(header); in VerifyAndFree() [all …]
|
D | TrackData.cpp | 51 for (const auto& header : headers_) { in GetList() local 52 list->push_back(header); in GetList() 62 void TrackData::Add(const Header* header, bool backtrace_found) { in Add() argument 67 headers_.insert(header); in Add() 71 void TrackData::Remove(const Header* header, bool backtrace_found) { in Remove() argument 73 headers_.erase(header); in Remove() 80 bool TrackData::Contains(const Header* header) { in Contains() argument 82 bool found = headers_.count(header); in Contains() 92 for (const auto& header : list) { in DisplayLeaks() local 94 header->real_size(), debug_->GetPointer(header), ++track_count, list.size()); in DisplayLeaks() [all …]
|
D | GuardData.cpp | 49 void GuardData::LogFailure(const Header* header, const void* pointer, const void* data) { in LogFailure() argument 52 header->real_size(), GetTypeName()); in LogFailure() 82 bool FrontGuardData::Valid(const Header* header) { in Valid() argument 83 return GuardData::Valid(debug_->GetFrontGuard(header)); in Valid() 86 void FrontGuardData::LogFailure(const Header* header) { in LogFailure() argument 87 GuardData::LogFailure(header, debug_->GetPointer(header), debug_->GetFrontGuard(header)); in LogFailure() 94 bool RearGuardData::Valid(const Header* header) { in Valid() argument 95 return GuardData::Valid(debug_->GetRearGuard(header)); in Valid() 98 void RearGuardData::LogFailure(const Header* header) { in LogFailure() argument 99 GuardData::LogFailure(header, debug_->GetPointer(header), debug_->GetRearGuard(header)); in LogFailure()
|
D | malloc_debug.cpp | 118 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 …]
|
D | DebugData.h | 56 inline void* GetPointer(const Header* header) { in GetPointer() argument 57 uintptr_t value = reinterpret_cast<uintptr_t>(header); in GetPointer() 66 BacktraceHeader* GetAllocBacktrace(const Header* header) { in GetAllocBacktrace() argument 67 uintptr_t value = reinterpret_cast<uintptr_t>(header); in GetAllocBacktrace() 71 uint8_t* GetFrontGuard(const Header* header) { in GetFrontGuard() argument 72 uintptr_t value = reinterpret_cast<uintptr_t>(header); in GetFrontGuard() 76 uint8_t* GetRearGuard(const Header* header) { in GetRearGuard() argument 77 uintptr_t value = reinterpret_cast<uintptr_t>(GetPointer(header)); in GetRearGuard() 78 return reinterpret_cast<uint8_t*>(value + header->real_size()); in GetRearGuard()
|
D | FreeTrackData.h | 54 void Add(const Header* header); 58 void LogBacktrace(const Header* header); 61 void LogFreeError(const Header* header, const uint8_t* pointer); 62 void VerifyAndFree(const Header* header);
|
D | GuardData.h | 53 void LogFailure(const Header* header, const void* pointer, const void* data); 68 bool Valid(const Header* header); 70 void LogFailure(const Header* header); 87 bool Valid(const Header* header); 89 void LogFailure(const Header* header);
|
D | TrackData.h | 54 void Add(const Header* header, bool backtrace_found); 56 void Remove(const Header* header, bool backtrace_found); 58 bool Contains(const Header *header);
|
D | README_marshmallow_and_earlier.md | 45 When enabled, this value creates a special header to all allocations 63 When enabled, this value does not create a special header. It only modifies 72 When enabled, this value creates a special header to all allocations
|
/bionic/libc/kernel/tools/ |
D | kernel.py | 85 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 …]
|
D | generate_uapi_headers.sh | 98 header=$(basename ${file}) 99 if [[ -f "${check_dir}/${header}" ]]; then
|
/bionic/libc/kernel/uapi/asm-x86/asm/ |
D | kvm_para.h | 75 struct kvm_mmu_op_header header; member 81 struct kvm_mmu_op_header header; member 85 struct kvm_mmu_op_header header; member
|
D | bootparam.h | 74 __u32 header; member
|
/bionic/libc/kernel/ |
D | README.TXT | 17 They can be also included before or after any Bionic C library header. 23 also includes the header files that are generated by building the kernel 37 Checks out the android kernel and generates all uapi header files. 41 Prints the clean version of a given kernel header. With the -u option, 42 this will also update the corresponding clean header file if its
|
/bionic/ |
D | README.md | 42 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/ |
D | pci_regs.h | 687 #define PCI_EXT_CAP_ID(header) (header & 0x0000ffff) argument 689 #define PCI_EXT_CAP_VER(header) ((header >> 16) & 0xf) argument 690 #define PCI_EXT_CAP_NEXT(header) ((header >> 20) & 0xffc) argument
|
D | vfio.h | 101 struct vfio_info_cap_header header; member 110 struct vfio_info_cap_header header; member
|
D | virtio_crypto.h | 216 struct virtio_crypto_ctrl_header header; member 320 struct virtio_crypto_op_header header; member
|
D | firewire-cdev.h | 97 __u32 header[0]; member 257 __u32 header[0]; member
|
/bionic/libc/kernel/android/ |
D | README.TXT | 1 The files under the uapi directory are android kernel uapi header files that
|
/bionic/libc/tzcode/ |
D | localtime.c | 2392 } header; in __bionic_open_tzdata_path() local 2393 memset(&header, 0, sizeof(header)); in __bionic_open_tzdata_path() 2394 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, &header, sizeof(header))); in __bionic_open_tzdata_path() 2395 if (bytes_read != sizeof(header)) { in __bionic_open_tzdata_path() 2402 if (strncmp(header.tzdata_version, "tzdata", 6) != 0 || header.tzdata_version[11] != 0) { in __bionic_open_tzdata_path() 2404 __FUNCTION__, path, header.tzdata_version); in __bionic_open_tzdata_path() 2410 fprintf(stderr, "version: %s\n", header.tzdata_version); in __bionic_open_tzdata_path() 2411 fprintf(stderr, "index_offset = %d\n", ntohl(header.index_offset)); in __bionic_open_tzdata_path() 2412 fprintf(stderr, "data_offset = %d\n", ntohl(header.data_offset)); in __bionic_open_tzdata_path() 2413 fprintf(stderr, "zonetab_offset = %d\n", ntohl(header.zonetab_offset)); in __bionic_open_tzdata_path() [all …]
|
/bionic/libc/kernel/uapi/linux/raid/ |
D | md_p.h | 230 struct r5l_payload_header header; member 244 struct r5l_payload_header header; member
|
/bionic/libc/kernel/uapi/misc/ |
D | cxl.h | 137 struct cxl_event_header header; member
|
/bionic/libc/tools/ |
D | genseccomp.py | 174 header = textwrap.dedent("""\ 190 return header + "\n".join(bpf) + footer
|
/bionic/tools/versioner/src/ |
D | versioner.cpp | 119 auto new_end = std::remove_if(headers.begin(), headers.end(), [&arch](llvm::StringRef header) { in collectRequirements() argument 125 if (header.endswith("/" + it.first)) { in collectRequirements() 187 for (const std::string& header : req.headers) { in compileHeaders() local 188 jobs.emplace_back(type, header); in compileHeaders()
|