diff options
author | Pavel Kosov <kosov.pavel@huawei.com> | 2021-11-15 14:53:26 +0400 |
---|---|---|
committer | Pavel Kosov <kosov.pavel@huawei.com> | 2021-11-15 14:53:26 +0400 |
commit | 83829b597a4566b5e0aa97a724382ef6dc1641e6 (patch) | |
tree | 045565d925c7d1b82617793d9e82f46474ac7cb8 | |
parent | 6b9600075f3412f2109449815cf157bcc7c020cc (diff) |
Fixed typo
-rw-r--r-- | lnt/testing/profile/cPerf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lnt/testing/profile/cPerf.cpp b/lnt/testing/profile/cPerf.cpp index 31bd7f2..9c686cb 100644 --- a/lnt/testing/profile/cPerf.cpp +++ b/lnt/testing/profile/cPerf.cpp @@ -562,7 +562,7 @@ unsigned char *PerfReader::readEvent(unsigned char *Buf) { if (E->header.type == PERF_RECORD_MMAP2) { perf_event_mmap2 *E = (perf_event_mmap2 *)Buf; if (!(E->prot & PROT_EXEC)) - break; + return &Buf[E->header.size]; auto MapID = Maps.size(); // EXEC ELF objects aren't relocated. DYN ones are, // so if it's a DYN object adjust by subtracting the |