Home
last modified time | relevance | path

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

12

/bionic/libc/malloc_debug/
DGuardData.cpp49 void GuardData::LogFailure(const Header* header, const void* pointer, const void* data) { in LogFailure() argument
51 error_log("+++ ALLOCATION %p SIZE %zu HAS A CORRUPTED %s GUARD", pointer, header->size, 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()
93 bool RearGuardData::Valid(const Header* header) { in Valid() argument
94 return GuardData::Valid(debug_->GetRearGuard(header)); in Valid()
97 void RearGuardData::LogFailure(const Header* header) { in LogFailure() argument
98 GuardData::LogFailure(header, debug_->GetPointer(header), debug_->GetRearGuard(header)); in LogFailure()
DDebugData.h53 inline void* GetPointer(const Header* header) { in GetPointer() argument
54 uintptr_t value = reinterpret_cast<uintptr_t>(header); in GetPointer()
63 uint8_t* GetFrontGuard(const Header* header) { in GetFrontGuard() argument
64 uintptr_t value = reinterpret_cast<uintptr_t>(header); in GetFrontGuard()
68 uint8_t* GetRearGuard(const Header* header) { in GetRearGuard() argument
69 uintptr_t value = reinterpret_cast<uintptr_t>(GetPointer(header)); in GetRearGuard()
70 return reinterpret_cast<uint8_t*>(value + header->size); in GetRearGuard()
Dmalloc_debug.cpp330 Header* header = g_debug->GetHeader(pointer); in VerifyPointer() local
331 if (header->tag != DEBUG_TAG) { in VerifyPointer()
333 if (header->tag == DEBUG_FREE_TAG) { in VerifyPointer()
336 error_str = android::base::StringPrintf("HAS INVALID TAG %" PRIx32 " (%s)", header->tag, in VerifyPointer()
362 static void* InitHeader(Header* header, void* orig_pointer, size_t size) { in InitHeader() argument
363 header->tag = DEBUG_TAG; in InitHeader()
364 header->orig_pointer = orig_pointer; in InitHeader()
365 header->size = size; in InitHeader()
366 header->usable_size = g_dispatch->malloc_usable_size(orig_pointer); in InitHeader()
367 if (header->usable_size == 0) { in InitHeader()
[all …]
DGuardData.h52 void LogFailure(const Header* header, const void* pointer, const void* data);
67 bool Valid(const Header* header);
69 void LogFailure(const Header* header);
86 bool Valid(const Header* header);
88 void LogFailure(const Header* header);
DREADME_marshmallow_and_earlier.md45 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
DREADME.md64 This option adds a special header to all allocations that contains the guard
84 This option adds a special header to all allocations that contains
112 Before P, this option adds a special header to all allocations that contains
114 option will not add a special header.
139 Before P, this option adds a special header to all allocations that contains
141 option will not add a special header.
286 Before P, this option adds a special header to all allocations that contains
288 option will not add a special header.
302 an allocation has a special header applied, and the header is corrupted
324 Before P, this option adds a special header to all allocations that contains
[all …]
/bionic/libc/tzcode/
Dbionic.cpp141 bionic_tzdata_header_t header = {}; in __bionic_open_tzdata_path() local
142 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, &header, sizeof(header))); in __bionic_open_tzdata_path()
143 if (bytes_read != sizeof(header)) { in __bionic_open_tzdata_path()
150 if (strncmp(header.tzdata_version, "tzdata", 6) != 0 || header.tzdata_version[11] != 0) { in __bionic_open_tzdata_path()
151 … fprintf(stderr, "%s: bad magic in \"%s\": \"%.6s\"\n", __FUNCTION__, path, header.tzdata_version); in __bionic_open_tzdata_path()
156 if (TEMP_FAILURE_RETRY(lseek(fd, ntohl(header.index_offset), SEEK_SET)) == -1) { in __bionic_open_tzdata_path()
162 if (ntohl(header.index_offset) > ntohl(header.data_offset)) { in __bionic_open_tzdata_path()
164 __FUNCTION__, path, ntohl(header.data_offset), ntohl(header.index_offset)); in __bionic_open_tzdata_path()
168 const size_t index_size = ntohl(header.data_offset) - ntohl(header.index_offset); in __bionic_open_tzdata_path()
198 specific_zone_offset = ntohl(entry->start) + ntohl(header.data_offset); in __bionic_open_tzdata_path()
/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))
223 def pathFromHeader(self,header): argument
224 path = header
[all …]
Dgenerate_uapi_headers.sh99 header=$(basename ${file})
100 if [[ -f "${check_dir}/${header}" ]]; then
/bionic/libc/kernel/uapi/linux/
Dvfio_zdev.h12 struct vfio_info_cap_header header; member
23 struct vfio_info_cap_header header; member
36 struct vfio_info_cap_header header; member
41 struct vfio_info_cap_header header; member
Dvfio.h71 struct vfio_info_cap_header header; member
97 struct vfio_info_cap_header header; member
104 struct vfio_info_cap_header header; member
151 struct vfio_info_cap_header header; member
156 struct vfio_info_cap_header header; member
399 struct vfio_info_cap_header header; member
406 struct vfio_info_cap_header header; member
413 struct vfio_info_cap_header header; member
Dfsl_mc.h12 __le64 header; member
Dpci_regs.h593 #define PCI_EXT_CAP_ID(header) (header & 0x0000ffff) argument
594 #define PCI_EXT_CAP_VER(header) ((header >> 16) & 0xf) argument
595 #define PCI_EXT_CAP_NEXT(header) ((header >> 20) & 0xffc) argument
Dvirtio_crypto.h213 struct virtio_crypto_ctrl_header header; member
309 struct virtio_crypto_op_header header; member
Dfirewire-cdev.h99 __u32 header[]; member
238 __u32 header[]; member
/bionic/tests/headers/posix/
DREADME.md1 # POSIX header tests
3 These compile-time tests check that each POSIX header contains _at
4 least_ what POSIX says. Every POSIX header file gets a corresponding
6 and function in the header gets a corresponding assertion in the file.
/bionic/libc/kernel/uapi/asm-x86/asm/
Dkvm_para.h86 struct kvm_mmu_op_header header; member
91 struct kvm_mmu_op_header header; member
94 struct kvm_mmu_op_header header; member
/bionic/libc/kernel/
DREADME.md16 They can be also included before or after any Bionic C library header.
22 also includes the header files that are generated by building the kernel
26 Contains copies of the kernel scsi header files. These where never
34 warn if any scsi header files have changed and require new versions
48 Checks out the Android kernel and generates all uapi header files.
52 Prints the clean version of a given kernel header. With the -u option,
53 this will also update the corresponding clean header file if its
/bionic/
DREADME.md47 publicly-exported header file. `tests/headers/` contains compile-only tests
80 # The public header files on everyone's include path. These are a mixture of
84 # The kernel uapi header files. The "libc" headers that developers actually
105 # will be overwritten by the next update. "Updating kernel header files"
109 # These are private header files meant for use within bionic itself.
134 # header/source files needed by the BSD implementation.
187 2. Find the right header file to work in by looking up your system call
189 (If there's no header file given, see the points above about whether we
191 3. Add constants (and perhaps types) to the appropriate header file.
193 kernel uapi header files, in which case you just need to make sure that
[all …]
/bionic/libc/kernel/uapi/linux/raid/
Dmd_p.h185 struct r5l_payload_header header; member
196 struct r5l_payload_header header; member
/bionic/libc/kernel/android/
DREADME.md1 The files under the uapi directory are android kernel uapi header files that
/bionic/tools/versioner/src/
Dversioner.cpp143 auto new_end = std::remove_if(headers.begin(), headers.end(), [&arch](llvm::StringRef header) { in collectRequirements() argument
149 if (header.endswith("/" + it.first)) { in collectRequirements()
212 for (const std::string& header : req.headers) { in compileHeaders() local
213 jobs.emplace_back(type, header); in compileHeaders()
/bionic/libc/kernel/uapi/misc/
Dcxl.h103 struct cxl_event_header header; member
/bionic/libc/kernel/uapi/scsi/
Dscsi_bsg_ufs.h88 struct utp_upiu_header header; member
/bionic/libc/tools/
Dgenseccomp.py215 header = textwrap.dedent("""\
232 return header + "\n".join(bpf) + footer

12