Searched defs:mapping (Results 1 - 9 of 9) sorted by relevance

/system/core/libunwindstack/tests/
H A DMemoryLocalTest.cpp72 char* mapping = static_cast<char*>( local
75 ASSERT_NE(MAP_FAILED, mapping);
77 mprotect(mapping + getpagesize(), getpagesize(), PROT_NONE);
78 memset(mapping + getpagesize() - 1024, 0x4c, 1024);
83 ASSERT_EQ(1024U, local.Read(reinterpret_cast<uint64_t>(mapping + getpagesize() - 1024),
89 ASSERT_EQ(0, munmap(mapping, 2 * getpagesize()));
93 void* mapping = local
95 ASSERT_NE(MAP_FAILED, mapping);
96 memset(mapping, 0xFF, 3 * 4096);
97 mprotect(static_cast<char*>(mapping)
[all...]
H A DMemoryRemoteTest.cpp112 char* mapping = static_cast<char*>( local
114 ASSERT_NE(MAP_FAILED, mapping);
115 memset(mapping, 0x4c, 4 * getpagesize());
116 ASSERT_EQ(0, mprotect(mapping + getpagesize(), getpagesize(), PROT_NONE));
117 ASSERT_EQ(0, munmap(mapping + 3 * getpagesize(), getpagesize()));
129 ASSERT_EQ(0, munmap(mapping, 3 * getpagesize()));
137 remote.Read(reinterpret_cast<uint64_t>(mapping + getpagesize() - 1024), dst.data(), 4096);
146 remote.Read(reinterpret_cast<uint64_t>(mapping + 3 * getpagesize() - 1024), dst.data(), 4096);
237 void* mapping = local
239 ASSERT_NE(MAP_FAILED, mapping);
270 void* mapping = local
306 void* mapping = local
[all...]
/system/netd/tests/benchmarks/
H A Ddns_benchmark.cpp123 const auto& mapping = getMappings()[ofs]; local
125 if (getaddrinfo(mapping.host.c_str(), nullptr, nullptr, &result)) {
/system/sepolicy/tools/
H A Dversion_policy.c19 printf(" -m, --mapping generate cil version mapping from base policy\n");
86 bool mapping = false; local
98 {"mapping", no_argument, 0, 'm'},
115 mapping = true;
137 if (num == NULL || base == NULL || (mapping == false && tgt_policy == NULL)) {
142 /* policy language doesn't like '.', so replace them with '_' in mapping version */
149 if (mapping && tgt_policy) {
150 fprintf(stderr, "Please select only one mode between --mapping and --tgt_policy\n");
163 if (mapping) {
[all...]
/system/core/debuggerd/crasher/
H A Dcrasher.cpp144 void* mapping = local
146 static_cast<volatile char*>(mapping)[0] = 'a';
/system/extras/librank/
H A Dlibrank.c128 struct mapping_info *mapping; local
146 mapping = calloc(1, sizeof(*mapping));
147 if (!mapping) {
148 fprintf(stderr, "Couldn't allocate space for mapping struct: %s\n", strerror(errno));
151 mapping->proc = proc;
152 pm_memusage_zero(&mapping->usage);
154 library->mappings[library->mappings_count++] = mapping;
156 return mapping;
/system/extras/simpleperf/
H A Dreport_lib_interface.cpp63 Mapping* mapping; member in struct:SymbolEntry
314 current_symbol_.mapping = AddMapping(*map);
362 entry.symbol.mapping = AddMapping(*map);
376 Mapping* mapping = current_mappings_.back().get(); local
377 mapping->start = map.start_addr;
378 mapping->end = map.start_addr + map.len;
379 mapping->pgoff = map.pgoff;
380 return mapping;
/system/core/bootstat/
H A Dbootstat.cpp137 // A mapping from boot reason string, as read from the ro.boot.bootreason
139 // the boot_reason metric may refer to this mapping to discern the histogram
296 auto mapping = kBootReasonMap.find(boot_reason); local
297 if (mapping != kBootReasonMap.end()) {
298 return mapping->second;
857 // Returns a mapping from bootloader stage names to the time those stages
1156 // This case handles long options which have no single-character mapping.
/system/netd/tests/
H A Dnetd_test.cpp244 auto& mapping = mappings[ofs];
246 int rv = getaddrinfo(mapping.host.c_str(), nullptr, nullptr, &result);
250 EXPECT_TRUE(result_str == mapping.ip4 || result_str == mapping.ip6)
251 << "result='" << result_str << "', ip4='" << mapping.ip4
252 << "', ip6='" << mapping.ip6;
334 const Mapping& mapping = mappings[0]; local
338 const hostent* result = gethostbyname(mapping.host.c_str());
340 [this, &mapping](size_t total, auto& d) {
341 return total + GetNumQueriesForType(*d, ns_type::ns_t_a, mapping
[all...]

Completed in 212 milliseconds