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

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py

Issue 125243002: telemetry: Make sure kernel pointers are not hidden (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py
index b5eaae90ad62eee13630a5413fd256d49d2d7fc2..97c6dbc28369a29fbd8c6101b64b8a5b2ed45f99 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py
@@ -162,6 +162,9 @@ class PerfProfiler(profiler.Profiler):
if platform_backend.GetOSName() == 'android':
android_prebuilt_profiler_helper.InstallOnDevice(
browser_backend.adb.Adb(), 'perf')
+ # Make sure kernel pointers are not hidden.
+ browser_backend.adb.Adb().SetProtectedFileContents(
+ '/proc/sys/kernel/kptr_restrict', '0')
for pid, output_file in process_output_file_map.iteritems():
if 'zygote' in output_file:
continue
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698