Home
last modified time | relevance | path

Searched refs:tag (Results 1 – 25 of 27) sorted by relevance

12

/bionic/libc/bionic/
Dfdsan.cpp185 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/
DSymbolFileParser.cpp204 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/
Dlog_fake.cpp47 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()
Dmalloc_debug_system_tests.cpp184 char* tag = msg_str + 1; in GetLogStr() local
185 msg_str = tag + strlen(tag) + 1; in GetLogStr()
/bionic/libc/kernel/uapi/asm-arm/asm/
Dsetup.h26 __u32 tag; member
104 struct tag { struct
121 __u32 tag; member
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/
Dfdsan_test.cpp134 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/
Dfdsan.h131 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/
Dasync_safe_log.cpp441 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/
Dlog.h72 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/
Dvirtio_scsi.h32 __virtio64 tag; member
40 __virtio64 tag; member
60 __virtio64 tag; member
Datmmpc.h38 __be32 tag; member
47 __be32 tag; member
Dvirtio_fs.h26 __u8 tag[36]; member
Dvirtio_9p.h27 __u8 tag[0]; member
Dseg6.h30 __u16 tag; member
Dvirtio_balloon.h54 __virtio16 tag; member
Dif_pppox.h110 struct pppoe_tag tag[0]; member
Dfirewire-cdev.h253 __u32 tag; member
/bionic/docs/
Dfdsan.md45 …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/
Dip6t_srh.h58 __u16 tag; member
67 __u16 tag; member
/bionic/libc/malloc_debug/
Dmalloc_debug.h48 uint32_t tag; member
Dmalloc_debug.cpp234 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/
Dasequencer.h169 char tag; member
258 char tag; member
/bionic/libc/include/sys/
Ducontext.h182 unsigned long tag;
/bionic/libc/kernel/uapi/asm-x86/asm/
Dsigcontext.h49 __u32 tag; member
/bionic/libc/upstream-netbsd/lib/libc/isc/
Deventlib_p.h157 const void * tag; member

12