/system/core/libbacktrace/ |
H A D | BacktracePtrace.h | 29 BacktracePtrace(pid_t pid, pid_t tid, BacktraceMap* map) : Backtrace(pid, tid, map) {} argument
|
H A D | BacktraceCurrent.h | 40 BacktraceCurrent(pid_t pid, pid_t tid, BacktraceMap* map) : Backtrace(pid, tid, map) {} argument
|
H A D | UnwindCurrent.h | 36 UnwindCurrent(pid_t pid, pid_t tid, BacktraceMap* map) : BacktraceCurrent(pid, tid, map) {} argument
|
H A D | BacktraceMap.cpp | 17 #define LOG_TAG "backtrace-map" 41 void BacktraceMap::FillIn(uintptr_t addr, backtrace_map_t* map) { argument 45 *map = *it; 49 *map = {}; 52 bool BacktraceMap::ParseLine(const char* line, backtrace_map_t* map) { argument 76 map->start = start; 77 map->end = end; 78 map->flags = PROT_NONE; 80 map->flags |= PROT_READ; 83 map 122 backtrace_map_t map; local 140 BacktraceMap* map = new BacktraceMap(pid); local [all...] |
H A D | BacktraceOffline.h | 47 BacktraceOffline(pid_t pid, pid_t tid, BacktraceMap* map, const backtrace_stackinfo_t& stack, argument 49 : Backtrace(pid, tid, map),
|
H A D | UnwindCurrent.cpp | 123 FillInMap(frame->pc, &frame->map); 130 frame->func_name = GetFunctionName(frame->pc, &frame->func_offset, &frame->map); 146 // If the pc is in a device map, then don't try to step. 147 if (frame->map.flags & PROT_DEVICE_MAP) { 150 // Verify the sp is not in a device map too. 151 backtrace_map_t map; local 152 FillInMap(frame->sp, &map); 153 if (map.flags & PROT_DEVICE_MAP) {
|
H A D | UnwindMap.cpp | 34 // of maps using the same map cursor. 55 backtrace_map_t map; local 57 map.start = unw_map.start; 58 map.end = unw_map.end; 59 map.offset = unw_map.offset; 60 map.load_base = unw_map.load_base; 61 map.flags = unw_map.flags; 62 map.name = unw_map.path; 65 maps_.push_front(map); 91 // It's possible for the map t 104 backtrace_map_t map; local 137 FillIn(uintptr_t addr, backtrace_map_t* map) argument 154 BacktraceMap* map; local [all...] |
H A D | Backtrace.cpp | 40 Backtrace::Backtrace(pid_t pid, pid_t tid, BacktraceMap* map) argument 41 : pid_(pid), tid_(tid), map_(map), map_shared_(true) { 55 std::string Backtrace::GetFunctionName(uintptr_t pc, uintptr_t* offset, const backtrace_map_t* map) { argument 57 if (map == nullptr) { 59 map = &map_value; 61 // If no map is found, or this map is backed by a device, then return nothing. 62 if (map->start == 0 || (map->flags & PROT_DEVICE_MAP)) { 88 if (BacktraceMap::IsValid(frame->map)) { 122 FillInMap(uintptr_t pc, backtrace_map_t* map) argument 128 Create(pid_t pid, pid_t tid, BacktraceMap* map) argument [all...] |
H A D | UnwindPtrace.cpp | 31 UnwindPtrace::UnwindPtrace(pid_t pid, pid_t tid, BacktraceMap* map) argument 32 : BacktracePtrace(pid, tid, map), addr_space_(nullptr), upt_info_(nullptr) { 42 // Remove the map from the address space before destroying it. 69 UnwindMap* map = static_cast<UnwindMap*>(GetMap()); local 70 unw_map_set(addr_space_, map->GetMapCursor()); 84 // Without a map object, we can't do anything. 137 FillInMap(frame->pc, &frame->map); 139 frame->func_name = GetFunctionName(frame->pc, &frame->func_offset, &frame->map); 142 // If the pc is in a device map, then don't try to step. 143 if (frame->map 148 backtrace_map_t map; local 156 backtrace_map_t map; local [all...] |
H A D | BacktraceCurrent.cpp | 44 backtrace_map_t map; local 45 FillInMap(ptr, &map); 46 if (BacktraceMap::IsValid(map) && map.flags & PROT_READ) { 50 BACK_LOGW("pointer %p not in a readable map", reinterpret_cast<void*>(ptr)); 57 backtrace_map_t map; local 58 FillInMap(addr, &map); 59 if (!BacktraceMap::IsValid(map) || !(map.flags & PROT_READ)) { 62 bytes = MIN(map [all...] |
/system/bt/osi/src/ |
H A D | hash_map_utils.cc | 33 std::unordered_map<std::string, std::string> map; local 36 if (!str) return map; 40 // Parse |str| and add extracted key-and-value pair(s) in |map|. 62 map[key] = value; 75 return map; 79 std::unordered_map<std::string, std::string>& map) { 80 for (const auto& ptr : map) { 78 hash_map_utils_dump_string_keys_string_values( std::unordered_map<std::string, std::string>& map) argument
|
/system/bt/osi/test/ |
H A D | hash_map_utils_test.cc | 32 map.clear(); 36 std::unordered_map<std::string, std::string> map; member in class:HashMapUtilsTest 41 map = hash_map_utils_new_from_string_params(params); 42 EXPECT_TRUE(map.empty()); 47 map = hash_map_utils_new_from_string_params(params); 48 EXPECT_TRUE(map.empty()); 55 map = hash_map_utils_new_from_string_params(params); 56 EXPECT_EQ(1u, map.size()); 57 EXPECT_EQ(value, map[key]); 58 map [all...] |
/system/sepolicy/tools/sepolicy-analyze/ |
H A D | utils.c | 29 void *map; local 42 map = mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); 43 if (map == MAP_FAILED) { 51 pf->data = map; 56 munmap(map, sb.st_size); 63 munmap(map, sb.st_size);
|
/system/extras/libpagemap/ |
H A D | pm_map.c | 22 int pm_map_pagemap(pm_map_t *map, uint64_t **pagemap_out, size_t *len) { argument 23 if (!map) 26 return pm_process_pagemap_range(map->proc, map->start, map->end, 30 int pm_map_usage_flags(pm_map_t *map, pm_memusage_t *usage_out, argument 38 if (!map || !usage_out) 41 error = pm_map_pagemap(map, &pagemap, &len); 48 usage.vss += map->proc->ker->pagesize; 57 error = pm_kernel_flags(map 88 pm_map_usage(pm_map_t *map, pm_memusage_t *usage_out) argument 92 pm_map_workingset(pm_map_t *map, pm_memusage_t *ws_out) argument 136 pm_map_destroy(pm_map_t *map) argument [all...] |
/system/core/debuggerd/libdebuggerd/ |
H A D | backtrace.cpp | 63 static void dump_thread(log_t* log, BacktraceMap* map, pid_t pid, pid_t tid, argument 67 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(pid, tid, map)); 76 void dump_backtrace(int fd, BacktraceMap* map, pid_t pid, pid_t tid, const std::string& process_name, argument 77 const std::map<pid_t, std::string>& threads, std::string* amfd_data) { 83 dump_thread(&log, map, pid, tid, threads.find(tid)->second.c_str()); 89 dump_thread(&log, map, pid, thread_tid, thread_name.c_str());
|
/system/core/debuggerd/libdebuggerd/test/ |
H A D | BacktraceMock.h | 36 void AddMap(backtrace_map_t& map) { argument 37 maps_.push_back(map); 44 explicit BacktraceMock(BacktraceMapMock* map) : Backtrace(0, 0, map) { argument
|
H A D | tombstone_test.cpp | 100 backtrace_map_t map; local 102 map.start = 0x123456789abcd000UL; 103 map.end = 0x123456789abdf000UL; 105 map.start = 0x1234000; 106 map.end = 0x1235000; 108 map_mock_->AddMap(map); 116 "\nmemory map:\n" 132 backtrace_map_t map; local 134 map.start = 0x123456789abcd000UL; 135 map 169 backtrace_map_t map; local 208 backtrace_map_t map; local 272 backtrace_map_t map; local 330 backtrace_map_t map; local 388 backtrace_map_t map; local 444 backtrace_map_t map; local 506 backtrace_map_t map; local 540 backtrace_map_t map; local [all...] |
/system/libvintf/include/vintf/ |
H A D | MapValueIterator.h | 22 #include <map> 85 IterableImpl(map_ref map) : mMap(map) {} argument 104 using ConstMapValueIterable = typename MapIterTypes<std::map<K, V>>::ConstValueIterable; 109 ConstMapValueIterable<K, V> iterateValues(const std::map<K, V> &map) { argument 110 return map; 113 ConstMultiMapValueIterable<K, V> iterateValues(const std::multimap<K, V> &map) { argument 114 return map;
|
/system/core/include/backtrace/ |
H A D | BacktraceMap.h | 36 // Special flag to indicate a map is in /dev/. However, a map in 51 // If uncached is true, then parse the current process map as of the call. 52 // Passing a map created with uncached set to true to Backtrace::Create() 60 // Fill in the map data structure for the given address. 61 virtual void FillIn(uintptr_t addr, backtrace_map_t* map); 66 backtrace_map_t map; local 67 FillIn(pc, &map); 68 if (IsValid(map)) { 69 return map 94 IsValid(const backtrace_map_t& map) argument 98 GetRelativePc(const backtrace_map_t& map, uintptr_t pc) argument 117 ScopedBacktraceMapIteratorLock(BacktraceMap* map) argument [all...] |
/system/core/libbacktrace/include/backtrace/ |
H A D | BacktraceMap.h | 36 // Special flag to indicate a map is in /dev/. However, a map in 51 // If uncached is true, then parse the current process map as of the call. 52 // Passing a map created with uncached set to true to Backtrace::Create() 60 // Fill in the map data structure for the given address. 61 virtual void FillIn(uintptr_t addr, backtrace_map_t* map); 66 backtrace_map_t map; local 67 FillIn(pc, &map); 68 if (IsValid(map)) { 69 return map 94 IsValid(const backtrace_map_t& map) argument 98 GetRelativePc(const backtrace_map_t& map, uintptr_t pc) argument 117 ScopedBacktraceMapIteratorLock(BacktraceMap* map) argument [all...] |
/system/core/libunwindstack/ |
H A D | Memory.cpp | 104 void* map = mmap(nullptr, size_, PROT_READ, MAP_PRIVATE, fd, aligned_offset); local 105 if (map == MAP_FAILED) { 109 data_ = &reinterpret_cast<uint8_t*>(map)[offset_];
|
/system/core/libutils/ |
H A D | PropertyMap.cpp | 108 void PropertyMap::addAll(const PropertyMap* map) { argument 109 for (size_t i = 0; i < map->mProperties.size(); i++) { 110 mProperties.add(map->mProperties.keyAt(i), map->mProperties.valueAt(i)); 122 PropertyMap* map = new PropertyMap(); local 123 if (!map) { 124 ALOGE("Error allocating property map."); 130 Parser parser(map, tokenizer); 139 delete map; 141 *outMap = map; 152 Parser(PropertyMap* map, Tokenizer* tokenizer) argument [all...] |
/system/extras/simpleperf/ |
H A D | cmd_report_test.cpp | 114 std::unordered_map<std::string, std::pair<double, double>> map; local 120 map.insert(std::make_pair(name, pair)); 123 ASSERT_NE(map.find("GlobalFunc"), map.end()); 124 ASSERT_NE(map.find("main"), map.end()); 125 auto func_pair = map["GlobalFunc"]; 126 auto main_pair = map["main"];
|
H A D | sample_tree_test.cpp | 66 const MapEntry* map = thread_tree_->FindMap(thread, ip, in_kernel); local 68 pid, tid, thread->comm, map->dso->Path(), map->start_addr))); 196 // Match the unknown map. 217 thread_tree.AddThreadMap(1, 1, 1, 10, 0, 0, "map1"); // Add map 1. 218 sample_tree_builder.AddSample(1, 1, 5, false); // Hit map 1. 219 thread_tree.AddThreadMap(1, 1, 5, 20, 0, 0, "map2"); // Add map 2. 220 sample_tree_builder.AddSample(1, 1, 6, false); // Hit map 2. 221 sample_tree_builder.AddSample(1, 1, 4, false); // Hit map 1. 222 thread_tree.AddThreadMap(1, 1, 2, 7, 0, 0, "map3"); // Add map [all...] |
/system/core/debuggerd/crasher/ |
H A D | crasher.cpp | 269 char* map = reinterpret_cast<char*>(mmap(nullptr, sizeof(int), PROT_READ | PROT_WRITE, local 271 munmap(map, sizeof(int)); 272 map[0] = '8';
|