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

Unified Diff: base/third_party/symbolize/symbolize.h

Issue 1996243002: Workaround ARM tracing issues for non-component builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/debug/stack_trace.cc ('k') | base/third_party/symbolize/symbolize.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/third_party/symbolize/symbolize.h
diff --git a/base/third_party/symbolize/symbolize.h b/base/third_party/symbolize/symbolize.h
index aeb2fe3c6658ee489c2a90d326daae039bb87415..bc871de444ae2d43f2df8a9fbd81591e034ba4e2 100644
--- a/base/third_party/symbolize/symbolize.h
+++ b/base/third_party/symbolize/symbolize.h
@@ -138,6 +138,23 @@ typedef int (*SymbolizeOpenObjectFileCallback)(uint64_t pc,
void InstallSymbolizeOpenObjectFileCallback(
SymbolizeOpenObjectFileCallback callback);
+// Parsed /proc/maps entry; used by FindMappedRegion() below.
+struct MappedRegion {
+ uint64_t start_address;
+ uint64_t end_address;
+ const char* flags;
+ uint64_t file_offset;
+ const char* name;
+};
+
+// Iteratively parses /proc/self/maps and calls |callback| for each entry
+// until it returns 'true'.
+// Returns 'true' itself only if iteration was stopped by the callback.
+// The function is async-signal-safe.
+bool FindMappedRegion(
+ void* callback_data,
+ bool (*callback)(void* data, const MappedRegion& region));
+
_END_GOOGLE_NAMESPACE_
#endif
« no previous file with comments | « base/debug/stack_trace.cc ('k') | base/third_party/symbolize/symbolize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698