Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1705)

Unified Diff: components/tracing/process_metrics_memory_dump_provider.cc

Issue 1663533005: [tracing] Support shared and private permission. (missing perm flag) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add related patch url Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/trace_event/process_memory_maps.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/tracing/process_metrics_memory_dump_provider.cc
diff --git a/components/tracing/process_metrics_memory_dump_provider.cc b/components/tracing/process_metrics_memory_dump_provider.cc
index e73ea78711dc4818e86d3926899fd23bf82a3fc1..141764b75fbcdc2bf4858720b5b03210e002c522 100644
--- a/components/tracing/process_metrics_memory_dump_provider.cc
+++ b/components/tracing/process_metrics_memory_dump_provider.cc
@@ -60,15 +60,19 @@ bool ParseSmapsHeader(const char* header_line,
region->protection_flags = 0;
if (protection_flags[0] == 'r') {
region->protection_flags |=
- base::trace_event::ProcessMemoryMaps::VMRegion::kProtectionFlagsRead;
+ base::trace_event::ProcessMemoryMaps::VMRegion::kProtectionFlagsRead;
}
if (protection_flags[1] == 'w') {
region->protection_flags |=
- base::trace_event::ProcessMemoryMaps::VMRegion::kProtectionFlagsWrite;
+ base::trace_event::ProcessMemoryMaps::VMRegion::kProtectionFlagsWrite;
}
if (protection_flags[2] == 'x') {
region->protection_flags |=
- base::trace_event::ProcessMemoryMaps::VMRegion::kProtectionFlagsExec;
+ base::trace_event::ProcessMemoryMaps::VMRegion::kProtectionFlagsExec;
+ }
+ if (protection_flags[3] == 's') {
+ region->protection_flags |=
+ base::trace_event::ProcessMemoryMaps::VMRegion::kProtectionFlagsMayshare;
}
region->mapped_file = mapped_file;
« no previous file with comments | « base/trace_event/process_memory_maps.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698