Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 180) sorted by relevance

12345678

/bionic/libc/bionic/
Dpthread_key.cpp81 if (SeqOfKeyInUse(seq) && seq == key_data[i].seq && key_data[i].data != NULL) { in pthread_key_clean_all()
103 void* data = key_data[i].data; in pthread_key_clean_all() local
104 key_data[i].data = NULL; in pthread_key_clean_all()
106 (*key_destructor)(data); in pthread_key_clean_all()
157 pthread_key_data_t* data = &(__get_thread()->key_data[key]); in pthread_getspecific() local
160 if (__predict_true(SeqOfKeyInUse(seq) && data->seq == seq)) { in pthread_getspecific()
161 return data->data; in pthread_getspecific()
165 data->data = NULL; in pthread_getspecific()
176 pthread_key_data_t* data = &(__get_thread()->key_data[key]); in pthread_setspecific() local
177 data->seq = seq; in pthread_setspecific()
[all …]
Dptrace.cpp32 extern "C" long __ptrace(int req, pid_t pid, void* addr, void* data);
42 void* data; in ptrace() local
44 data = &peek_result; in ptrace()
46 data = va_arg(args, void*); in ptrace()
50 long result = __ptrace(req, pid, addr, data); in ptrace()
Ddl_iterate_phdr_static.cpp38 int dl_iterate_phdr(int (*cb)(struct dl_phdr_info* info, size_t size, void* data), void* data) { in dl_iterate_phdr() argument
58 int rc = cb(&exe_info, sizeof(exe_info), data); in dl_iterate_phdr()
81 return cb(&vdso_info, sizeof(vdso_info), data); in dl_iterate_phdr()
84 return cb(&exe_info, sizeof(exe_info), data); in dl_iterate_phdr()
Difaddrs.cpp70 void SetAddress(int family, const void* data, size_t byteCount) { in SetAddress()
76 ifa.ifa_addr = CopyAddress(family, data, byteCount, &addr); in SetAddress()
79 ifa.ifa_dstaddr = CopyAddress(family, data, byteCount, &ifa_ifu); in SetAddress()
83 void SetBroadcastAddress(int family, const void* data, size_t byteCount) { in SetBroadcastAddress()
90 ifa.ifa_broadaddr = CopyAddress(family, data, byteCount, &ifa_ifu); in SetBroadcastAddress()
93 void SetLocalAddress(int family, const void* data, size_t byteCount) { in SetLocalAddress()
103 ifa.ifa_addr = CopyAddress(family, data, byteCount, &addr); in SetLocalAddress()
127 sockaddr* CopyAddress(int family, const void* data, size_t byteCount, sockaddr_storage* ss) { in CopyAddress()
133 memcpy(SockaddrBytes(family, ss), data, byteCount); in CopyAddress()
136 if (family == AF_INET6 && (IN6_IS_ADDR_LINKLOCAL(data) || IN6_IS_ADDR_MC_LINKLOCAL(data))) { in CopyAddress()
Dnet_if.cpp78 struct if_nameindex data; member
90 if (names_too) free(it->data.if_name); in Free()
103 new_link->data.if_index = ifi->ifi_index; in __if_nameindex_callback()
110 new_link->data.if_name = strndup(reinterpret_cast<char*>(RTA_DATA(rta)), RTA_PAYLOAD(rta)); in __if_nameindex_callback()
139 out->if_index = it->data.if_index; in if_nameindex()
140 out->if_name = it->data.if_name; in if_nameindex()
/bionic/tests/
Dmath_data_test.h168 void DoMathDataTest(data_1_1_t<RT, T> (&data)[N], RT f(T)) {
173 data[i].expected, f(data[i].input)) << "Failed on element " << i;
181 void DoMathDataTest(data_int_1_t<T> (&data)[N], int f(T)) {
184 EXPECT_EQ(data[i].expected, f(data[i].input)) << "Failed on element " << i;
192 void DoMathDataTest(data_long_1_t<T> (&data)[N], long f(T)) {
195 EXPECT_EQ(data[i].expected, f(data[i].input)) << "Failed on element " << i;
203 void DoMathDataTest(data_llong_1_t<T> (&data)[N], long long f(T)) {
206 EXPECT_EQ(data[i].expected, f(data[i].input)) << "Failed on element " << i;
214 void DoMathDataTest(data_1_2_t<RT, T1, T2> (&data)[N], RT f(T1, T2)) {
219data[i].expected, f(data[i].input1, data[i].input2)) << "Failed on element " << i;
[all …]
Dresolv_test.cpp35 const char* data = in TEST() local
43 ASSERT_EQ(128, b64_pton(data, buf, sizeof(buf))); in TEST()
Dthread_local_test.cpp41 int *data = reinterpret_cast<int*>(p); in inc_shared_var() local
43 *data = shared_var; in inc_shared_var()
48 int *data = reinterpret_cast<int*>(p); in inc_local_var() local
50 *data = local_var; in inc_local_var()
56 int data; in run_one_thread() local
57 int error = pthread_create(&t, nullptr, foo, &data); in run_one_thread()
60 return error ? error : data; in run_one_thread()
121 int *data = reinterpret_cast<int*>(p); in move_shared_triangle() local
123 *data = shared_triangle[1].y; in move_shared_triangle()
128 int *data = reinterpret_cast<int*>(p); in move_local_triangle() local
[all …]
Dsys_ptrace_test.cpp143 unsigned data = ptrace(PTRACE_PEEKUSER, child, offsetof(user, u_debugreg[7]), nullptr); in set_watchpoint() local
152 data &= mask; in set_watchpoint()
153 data |= value; in set_watchpoint()
154 …ASSERT_EQ(0, ptrace(PTRACE_POKEUSER, child, offsetof(user, u_debugreg[7]), data)) << strerror(errn… in set_watchpoint()
164 alignas(16) T data{}; in run_watchpoint_test() local
180 child_func(data); in run_watchpoint_test()
196 set_watchpoint(child, uintptr_t(&data) + offset, size); in run_watchpoint_test()
207 ASSERT_LE(&data, siginfo.si_addr); in run_watchpoint_test()
208 ASSERT_GT((&data) + 1, siginfo.si_addr); in run_watchpoint_test()
213 static void watchpoint_stress_child(unsigned cpu, T& data) { in watchpoint_stress_child() argument
[all …]
Dleak_test.cpp129 thread_data* data = static_cast<thread_data*>(ptr); in TEST() local
130 *data->tid = gettid(); in TEST()
131 pthread_barrier_wait(data->barrier); in TEST()
135 delete data; in TEST()
Dsys_epoll_test.cpp61 ev.data.u64 = expected; in TEST()
70 ASSERT_EQ(expected, events[0].data.u64); in TEST()
/bionic/libc/malloc_debug/
DGuardData.cpp46 memset(cmp_mem_.data(), init_value, cmp_mem_.size()); in GuardData()
49 void GuardData::LogFailure(const Header* header, const void* pointer, const void* data) { in LogFailure() argument
55 const uint8_t* expected = cmp_mem_.data(); in LogFailure()
56 int pointer_idx = reinterpret_cast<uintptr_t>(data) - reinterpret_cast<uintptr_t>(pointer); in LogFailure()
57 const uint8_t* real = reinterpret_cast<const uint8_t*>(data); in LogFailure()
66 size_t frame_num = backtrace_get(frames.data(), frames.size()); in LogFailure()
68 backtrace_log(frames.data(), frames.size()); in LogFailure()
76 memset(cmp_mem_.data(), config.front_guard_value(), cmp_mem_.size()); in FrontGuardData()
DGuardData.h51 bool Valid(void* data) { return memcmp(data, cmp_mem_.data(), cmp_mem_.size()) == 0; } in Valid() argument
53 void LogFailure(const Header* header, const void* pointer, const void* data);
DTrackData.cpp125 uint8_t* data = *info; in GetInfo() local
130 memcpy(data, &header->size, sizeof(size_t)); in GetInfo()
131 memcpy(&data[sizeof(size_t)], &num_allocations, sizeof(size_t)); in GetInfo()
132 memcpy(&data[2 * sizeof(size_t)], &back_header->frames[0], in GetInfo()
137 data += *info_size; in GetInfo()
/bionic/tools/relocation_packer/src/
Delf_file.cc54 Elf_Data* data = elf_getdata(section, NULL); in GetSectionData() local
55 CHECK(data && elf_getdata(section, data) == NULL); in GetSectionData()
56 return data; in GetSectionData()
64 Elf_Data* data = GetSectionData(section); in RewriteSectionData() local
65 CHECK(size == data->d_size); in RewriteSectionData()
68 data->d_buf = area; in RewriteSectionData()
122 static void VerboseLogSectionData(const Elf_Data* data) { in VerboseLogSectionData() argument
124 VLOG(1) << " d_buf = " << data->d_buf; in VerboseLogSectionData()
125 VLOG(1) << " d_off = " << data->d_off; in VerboseLogSectionData()
126 VLOG(1) << " d_size = " << data->d_size; in VerboseLogSectionData()
[all …]
/bionic/libc/kernel/uapi/linux/
Dfirewire-cdev.h53 __u32 data[0]; member
62 __u32 data[0]; member
75 __u32 data[0]; member
101 __u32 data[0]; member
152 __u64 data; member
158 __u64 data; member
179 __u64 data; member
214 __u64 data; member
257 __u64 data; member
263 __u32 data[2]; member
Duhid.h69 __u8 data[UHID_DATA_MAX]; member
72 __u8 data[UHID_DATA_MAX]; member
85 __u8 data[UHID_DATA_MAX]; member
92 __u8 data[UHID_DATA_MAX]; member
118 __u8 data[UHID_DATA_MAX]; member
135 __u8 data[UHID_DATA_MAX]; member
Dbaycom.h30 } data; member
Duserio.h29 __u8 data; member
Dcan.h43 __u8 data[CAN_MAX_DLEN] __attribute__((aligned(8))); member
53 __u8 data[CANFD_MAX_DLEN] __attribute__((aligned(8))); member
Dipmi.h27 char data[IPMI_MAX_ADDR_SIZE]; member
60 unsigned char __user * data; member
66 unsigned char * data; member
/bionic/libc/kernel/uapi/rdma/
Dib_user_cm.h91 __u64 data; member
102 __u64 data; member
120 __u64 data; member
138 __u64 data; member
144 __u64 data; member
152 __u64 data; member
161 __u64 data; member
174 __u64 data; member
181 __u64 data; member
/bionic/tests/libs/
Dbionic_tests_zipalign.cpp95 const std::vector<uint8_t>* data; in CreateAlignedZip() local
96 while ((data = stream->Read()) != nullptr) { in CreateAlignedZip()
97 error = writer.WriteBytes(data->data(), data->size()); in CreateAlignedZip()
/bionic/libc/private/
DCachedProperty.h90 static void Callback(void* data, const char*, const char* value, uint32_t serial) { in Callback() argument
91 CachedProperty* instance = reinterpret_cast<CachedProperty*>(data); in Callback()
/bionic/libdl/
Dlibdl.c53 int __loader_dl_iterate_phdr(int (*cb)(struct dl_phdr_info* info, size_t size, void* data),
54 void* data);
139 int dl_iterate_phdr(int (*cb)(struct dl_phdr_info* info, size_t size, void* data), void* data) { in dl_iterate_phdr() argument
140 return __loader_dl_iterate_phdr(cb, data); in dl_iterate_phdr()

12345678