Searched defs:map (Results 1 - 25 of 56) sorted by relevance

123

/system/core/libbacktrace/
H A DBacktracePtrace.h29 BacktracePtrace(pid_t pid, pid_t tid, BacktraceMap* map) : Backtrace(pid, tid, map) {} argument
H A DBacktraceCurrent.h40 BacktraceCurrent(pid_t pid, pid_t tid, BacktraceMap* map) : Backtrace(pid, tid, map) {} argument
H A DUnwindCurrent.h36 UnwindCurrent(pid_t pid, pid_t tid, BacktraceMap* map) : BacktraceCurrent(pid, tid, map) {} argument
H A DBacktraceMap.cpp17 #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 DBacktraceOffline.h47 BacktraceOffline(pid_t pid, pid_t tid, BacktraceMap* map, const backtrace_stackinfo_t& stack, argument
49 : Backtrace(pid, tid, map),
H A DUnwindCurrent.cpp123 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 DUnwindMap.cpp34 // 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 DBacktrace.cpp40 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 DUnwindPtrace.cpp31 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 DBacktraceCurrent.cpp44 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 Dhash_map_utils.cc33 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 Dhash_map_utils_test.cc32 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 Dutils.c29 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 Dpm_map.c22 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 Dbacktrace.cpp63 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 DBacktraceMock.h36 void AddMap(backtrace_map_t& map) { argument
37 maps_.push_back(map);
44 explicit BacktraceMock(BacktraceMapMock* map) : Backtrace(0, 0, map) { argument
H A Dtombstone_test.cpp100 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 DMapValueIterator.h22 #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 DBacktraceMap.h36 // 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 DBacktraceMap.h36 // 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 DMemory.cpp104 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 DPropertyMap.cpp108 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 Dcmd_report_test.cpp114 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 Dsample_tree_test.cpp66 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 Dcrasher.cpp269 char* map = reinterpret_cast<char*>(mmap(nullptr, sizeof(int), PROT_READ | PROT_WRITE, local
271 munmap(map, sizeof(int));
272 map[0] = '8';

Completed in 435 milliseconds

123