OSDN Git Service

simpleperf: fix a small error.
authorYabin Cui <yabinc@google.com>
Fri, 24 Feb 2017 20:37:42 +0000 (12:37 -0800)
committerYabin Cui <yabinc@google.com>
Fri, 24 Feb 2017 20:37:42 +0000 (12:37 -0800)
Test: run binary_cache_builder.py.
Change-Id: I78b16b012bba641f82b33b936c94a1acd5bdf275

simpleperf/scripts/binary_cache_builder.py

index 13c028d..aa0e6e6 100644 (file)
@@ -221,7 +221,7 @@ class BinaryCacheBuilder(object):
         if os.path.isfile(file):
             os.remove(file)
         if self.adb.switch_to_root():
-            self.adb.run(['shell', '"echo 0>/proc/sys/kernel/kptr_restrict"'])
+            self.adb.run(['shell', '"echo 0 >/proc/sys/kernel/kptr_restrict"'])
             self.adb.run(['pull', '/proc/kallsyms', file])