/bionic/libc/bionic/ |
D | fdsan.cpp | 185 uint64_t android_fdsan_create_owner_tag(android_fdsan_owner_type type, uint64_t tag) { in android_fdsan_create_owner_tag() argument 186 if (tag == 0) { in android_fdsan_create_owner_tag() 196 result |= tag & mask; in android_fdsan_create_owner_tag() 200 const char* android_fdsan_get_tag_type(uint64_t tag) { in android_fdsan_get_tag_type() argument 201 uint64_t type = tag >> 56; in android_fdsan_get_tag_type() 234 uint64_t high_bits = tag >> 48; in android_fdsan_get_tag_type() 243 uint64_t android_fdsan_get_tag_value(uint64_t tag) { in android_fdsan_get_tag_value() argument 245 return static_cast<uint64_t>(static_cast<int64_t>(tag << 8) >> 8); in android_fdsan_get_tag_value() 259 uint64_t tag = expected_tag; in android_fdsan_close_with_tag() local 260 if (!atomic_compare_exchange_strong(&fde->close_tag, &tag, 0)) { in android_fdsan_close_with_tag() [all …]
|
/bionic/tools/versioner/src/ |
D | SymbolFileParser.cpp | 204 for (auto&& tag : tags) { in getSymbolType() 205 if (tag == "var") { in getSymbolType() 216 for (auto&& tag : tags) { in isInArch() 217 std::optional<Arch> arch = arch_from_string(tag); in isInArch() 238 for (const std::string& tag : tags) { in isInApi() local 240 if (android::base::StartsWith(tag, "api-level=") && !api_level_arch) { in isInApi() 241 api_level = tag; in isInApi() 244 if (android::base::StartsWith(tag, api_level_arch_prefix)) { in isInApi() 245 api_level = tag; in isInApi() 251 if (android::base::StartsWith(tag, "introduced=") && !intro_arch) { in isInApi() [all …]
|
/bionic/libc/malloc_debug/tests/ |
D | log_fake.cpp | 47 extern "C" int async_safe_format_log(int priority, const char* tag, const char* format, ...) { in async_safe_format_log() argument 48 g_fake_log_print += std::to_string(priority) + ' ' + tag + ' '; in async_safe_format_log() 60 extern "C" int async_safe_write_log(int priority, const char* tag, const char* msg) { in async_safe_write_log() argument 61 g_fake_log_print += std::to_string(priority) + ' ' + tag + ' ' + msg + '\n'; in async_safe_write_log() 66 extern "C" int __android_log_buf_write(int bufId, int prio, const char* tag, const char* msg) { in __android_log_buf_write() argument 68 g_fake_log_buf += tag; in __android_log_buf_write() 74 extern "C" int __android_log_print(int prio, const char* tag, const char* fmt, ...) { in __android_log_print() argument 76 g_fake_log_print += tag; in __android_log_print()
|
D | malloc_debug_system_tests.cpp | 184 char* tag = msg_str + 1; in GetLogStr() local 185 msg_str = tag + strlen(tag) + 1; in GetLogStr()
|
/bionic/libc/kernel/uapi/asm-arm/asm/ |
D | setup.h | 26 __u32 tag; member 104 struct tag { struct 121 __u32 tag; argument 122 int(* parse) (const struct tag *); 124 #define tag_member_present(tag,member) ((unsigned long) (& ((struct tag *) 0L)->member + 1) <= (tag… argument 125 #define tag_next(t) ((struct tag *) ((__u32 *) (t) + (t)->hdr.size))
|
/bionic/tests/ |
D | fdsan_test.cpp | 134 auto tag = 0xdead00000000ULL | i; in TEST_F() local 135 android_fdsan_exchange_owner_tag(fd, 0, tag); in TEST_F() 136 fds[fd] = tag; in TEST_F() 139 for (auto [fd, tag] : fds) { in TEST_F() 140 android_fdsan_close_with_tag(fd, tag); in TEST_F() 148 uint64_t tag = android_fdsan_create_owner_tag(ANDROID_FDSAN_OWNER_TYPE_UNIQUE_FD, ~0ULL); in TEST_F() local 149 android_fdsan_exchange_owner_tag(fd, 0, tag); in TEST_F() 158 uint64_t tag = android_fdsan_create_owner_tag(ANDROID_FDSAN_OWNER_TYPE_UNIQUE_FD, 1); in TEST_F() local 159 android_fdsan_exchange_owner_tag(fd, 0, tag); in TEST_F()
|
/bionic/libc/include/android/ |
D | fdsan.h | 131 uint64_t android_fdsan_create_owner_tag(enum android_fdsan_owner_type type, uint64_t tag) __INTRODU… 145 int android_fdsan_close_with_tag(int fd, uint64_t tag) __INTRODUCED_IN(29) __attribute__((__weak__)… 159 const char* android_fdsan_get_tag_type(uint64_t tag) __INTRODUCED_IN(29); 164 uint64_t android_fdsan_get_tag_value(uint64_t tag) __INTRODUCED_IN(29);
|
/bionic/libc/async_safe/ |
D | async_safe_log.cpp | 441 static int write_stderr(const char* tag, const char* msg) { in write_stderr() argument 443 vec[0].iov_base = const_cast<char*>(tag); in write_stderr() 444 vec[0].iov_len = strlen(tag); in write_stderr() 489 int async_safe_write_log(int priority, const char* tag, const char* msg) { in async_safe_write_log() argument 493 return write_stderr(tag, msg); in async_safe_write_log() 513 vec[4].iov_base = const_cast<char*>(tag); in async_safe_write_log() 514 vec[4].iov_len = strlen(tag) + 1; in async_safe_write_log() 523 int async_safe_format_log_va_list(int priority, const char* tag, const char* format, va_list args) { in async_safe_format_log_va_list() argument 528 return async_safe_write_log(priority, tag, buffer); in async_safe_format_log_va_list() 531 int async_safe_format_log(int priority, const char* tag, const char* format, ...) { in async_safe_format_log() argument [all …]
|
/bionic/libc/async_safe/include/async_safe/ |
D | log.h | 72 int async_safe_format_log(int priority, const char* tag, const char* fmt, ...) __printflike(3, 4); 73 int async_safe_format_log_va_list(int priority, const char* tag, const char* fmt, va_list ap); 74 int async_safe_write_log(int priority, const char* tag, const char* msg);
|
/bionic/libc/kernel/uapi/linux/ |
D | virtio_scsi.h | 32 __virtio64 tag; member 40 __virtio64 tag; member 60 __virtio64 tag; member
|
D | atmmpc.h | 38 __be32 tag; member 47 __be32 tag; member
|
D | virtio_fs.h | 26 __u8 tag[36]; member
|
D | virtio_9p.h | 27 __u8 tag[0]; member
|
D | seg6.h | 30 __u16 tag; member
|
D | virtio_balloon.h | 58 __virtio16 tag; member
|
D | if_pppox.h | 110 struct pppoe_tag tag[0]; member
|
D | firewire-cdev.h | 253 __u32 tag; member
|
/bionic/docs/ |
D | fdsan.md | 45 …plemented is by providing functions to set a 64-bit closure tag on a file descriptor. The tag cons… 47 If a file descriptor that's been marked with a tag is closed with an incorrect tag, or without a ta… 231 …g` modifies a file descriptor's close tag, and `android_fdsan_close_with_tag` closes a file descri… 298 exchange_tag(fd_, move.tag(), tag()); 315 exchange_tag(fd, tag(), 0); 321 close(fd_, tag()); 329 exchange_tag(fd_, 0, tag()); 336 // The obvious choice of tag to use is the address of the object. 337 uint64_t tag() { 350 static int close(int fd, uint64_t tag) { [all …]
|
/bionic/libc/kernel/uapi/linux/netfilter_ipv6/ |
D | ip6t_srh.h | 58 __u16 tag; member 67 __u16 tag; member
|
/bionic/libc/malloc_debug/ |
D | malloc_debug.h | 48 uint32_t tag; member
|
D | malloc_debug.cpp | 234 if (header->tag != DEBUG_TAG) { in VerifyPointer() 236 if (header->tag == DEBUG_FREE_TAG) { in VerifyPointer() 239 error_str = android::base::StringPrintf("HAS INVALID TAG %" PRIx32 " (%s)", header->tag, in VerifyPointer() 266 header->tag = DEBUG_TAG; in InitHeader() 511 header->tag = DEBUG_FREE_TAG; in InternalFree()
|
/bionic/libc/kernel/uapi/sound/ |
D | asequencer.h | 169 char tag; member 258 char tag; member
|
/bionic/libc/include/sys/ |
D | ucontext.h | 182 unsigned long tag;
|
/bionic/libc/kernel/uapi/asm-x86/asm/ |
D | sigcontext.h | 49 __u32 tag; member
|
/bionic/libc/upstream-netbsd/lib/libc/isc/ |
D | eventlib_p.h | 157 const void * tag; member
|