Home
last modified time | relevance | path

Searched refs:mp (Results 1 – 10 of 10) sorted by relevance

/linux-tools/drivers/mremap/
H A Dinject.cpp123 vector<MNode>* mp = NULL; in main() local
178 mp = load_maps(pid); if (mp==NULL) goto out; in main()
198 if (mp->size() != n) { in main()
199 printf("size not match, current %d, expect %d\n", mp->size(), omp.size()); in main()
203 …for (i=0; i<n; i++) printf("0x%lx[%s](0x%lx)---\n", (*mp)[i].start, (*mp)[i].name.c_str(), (*mp)[i… in main()
208 if (oname[i]==(*mp)[j].name && omp[i].offset==(*mp)[j].offset) break; in main()
211 …printf("found match --->0x%lx[%s](0x%lx)\n", (*mp)[j].start, (*mp)[j].name.c_str(), (*mp)[j].offse… in main()
215 if (omp[i].start!=(*mp)[j].start) { in main()
217 _start = (*mp)[nj].start; in main()
218 _end = (*mp)[nj].end; in main()
[all …]
H A Dextract.cpp135 vector<MNode>* mp = NULL; in main() local
181 mp = load_maps(pid); in main()
183 if (mp) { in main()
184 for (auto m: *mp) { in main()
213 delete mp; in main()
/linux-tools/perf/execommand/
H A Dperf_comm.cpp154 struct perf_event_mmap_page *mp; in main() local
161 mp = (struct perf_event_mmap_page *)addr; in main()
163 if (head >= mp->data_head) continue; in main()
165 head = mp->data_head-((mp->data_head-head)%mp->data_size); in main()
166 … while(head<mp->data_head) head+=process_event((char*)addr+mp->data_offset, mp->data_size, head); in main()
167 res[fd].second = mp->data_head; in main()
/linux-tools/perf/contextswitch/
H A Dperf_cxt_switch_1.cpp154 struct perf_event_mmap_page *mp; in main() local
160 mp = (struct perf_event_mmap_page *)addr; in main()
162 if (head==mp->data_head) continue; in main()
164 head = mp->data_head-((mp->data_head-head)%mp->data_size); in main()
165 … while(head<mp->data_head) head+=process_event((char*)addr+mp->data_offset, mp->data_size, head); in main()
167 res[fd].second = mp->data_head; in main()
H A Dperf_cxt_switch_2.cpp173 struct perf_event_mmap_page *mp; in main() local
179 mp = (struct perf_event_mmap_page *)addr; in main()
181 if (head==mp->data_head) continue; in main()
183 head = mp->data_head-((mp->data_head-head)%mp->data_size); in main()
184 … while(head<mp->data_head) head+=process_event((char*)addr+mp->data_offset, mp->data_size, head); in main()
186 res[fd].second = mp->data_head; in main()
H A Dperf_cxt_switch_3.cpp410 struct perf_event_mmap_page *mp; in main() local
416 mp = (struct perf_event_mmap_page *)addr; in main()
418 if (head==mp->data_head) continue; in main()
420 head = mp->data_head-((mp->data_head-head)%mp->data_size); in main()
421 … while(head<mp->data_head) head+=process_event((char*)addr+mp->data_offset, mp->data_size, head); in main()
423 res[fd].second = mp->data_head; in main()
/linux-tools/perf/kprobe/
H A Dperf_kprobe.cpp149 struct perf_event_mmap_page *mp; in main() local
156 mp = (struct perf_event_mmap_page *)addr; in main()
158 if (head==mp->data_head) continue; in main()
160 head = mp->data_head-((mp->data_head-head)%mp->data_size); in main()
161 … while(head<mp->data_head) head+=process_event((char*)addr+mp->data_offset, mp->data_size, head); in main()
163 res[fd].second = mp->data_head; in main()
/linux-tools/perf/uprobe/
H A Duprobe.cpp296 struct perf_event_mmap_page *mp; in main() local
303 mp = (struct perf_event_mmap_page *)addr; in main()
305 if (head==mp->data_head) continue; in main()
307 head = mp->data_head-((mp->data_head-head)%mp->data_size); in main()
308 … while(head<mp->data_head) head+=process_event((char*)addr+mp->data_offset, mp->data_size, head); in main()
310 res[fd].second = mp->data_head; in main()
/linux-tools/perf/profiler/
H A Dprofiler.cpp447 struct perf_event_mmap_page *mp; in main() local
454 mp = (struct perf_event_mmap_page *)addr; in main()
457 if (head>mp->data_head) head=mp->data_head; in main()
458 head = mp->data_head-((mp->data_head-head)%mp->data_size); in main()
459 while(head<mp->data_head) { in main()
460 event_size = process_event((char*)addr+mp->data_offset, mp->data_size, head); in main()
463 head=mp->data_head; in main()
468 res[fd].second = mp->data_head; in main()
H A Dprofiler-kprobe.cpp414 struct perf_event_mmap_page *mp; in main() local
421 mp = (struct perf_event_mmap_page *)addr; in main()
423 if (head==mp->data_head) continue; in main()
425 head = mp->data_head-((mp->data_head-head)%mp->data_size); in main()
426 … while(head<mp->data_head) head+=process_event((char*)addr+mp->data_offset, mp->data_size, head); in main()
428 res[fd].second = mp->data_head; in main()