| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 25aa222 commit 3d51d30
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -199,12 +199,14 @@ static struct text_region FindNodeTextRegion() { | |||
| 199 | 199 | (entry->kve_protection & KVME_PROT_EXEC)); | |
| 200 | 200 | ||
| 201 | 201 | if (!strcmp(exename.c_str(), entry->kve_path) && excmapping) { | |
| 202 | - size_t size = entry->kve_end - entry->kve_start; | ||
| 202 | + char* estart = | ||
| 203 | + reinterpret_cast<char*>(hugepage_align_up(entry->kve_start)); | ||
| 204 | + char* eend = | ||
| 205 | + reinterpret_cast<char*>(hugepage_align_down(entry->kve_end)); | ||
| 206 | + size_t size = eend - estart; | ||
| 203 | 207 | nregion.found_text_region = true; | |
| 204 | - nregion.from = | ||
| 205 | - reinterpret_cast<char*>(hugepage_align_up(entry->kve_start)); | ||
| 206 | - nregion.to = | ||
| 207 | - reinterpret_cast<char*>(hugepage_align_down(entry->kve_end)); | ||
| 208 | + nregion.from = estart; | ||
| 209 | + nregion.to = eend; | ||
| 208 | 210 | nregion.total_hugepages = size / hps; | |
| 209 | 211 | break; | |
| 210 | 212 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments