diff options
-rwxr-xr-x | packaging/atrace-bootup.sh | 2 | ||||
-rwxr-xr-x | src/atrace/atrace.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/packaging/atrace-bootup.sh b/packaging/atrace-bootup.sh index a9acea7..7f07a3d 100755 --- a/packaging/atrace-bootup.sh +++ b/packaging/atrace-bootup.sh @@ -33,6 +33,6 @@ echo "$COMMAND" > "$CONF" sync sleep 1 -reboot +reboot -f exit 0 diff --git a/src/atrace/atrace.cpp b/src/atrace/atrace.cpp index fb2ec1f..05e1506 100755 --- a/src/atrace/atrace.cpp +++ b/src/atrace/atrace.cpp @@ -569,7 +569,8 @@ static bool setTagsProperty(uint64_t tags) close(fd); return false; } - + //for auto-mounting tracingfs (>= linux 4.1.x) + system("ls -al /sys/kernel/debug/tracing > /dev/null 2>&1"); if(!initSysfsPermission()) { fprintf(stderr, "Fail to init sysfs permisions: %s(%d)\n", strerror_r(errno, str_error, sizeof(str_error)), errno); munmap(sm_for_enabled_tag, sizeof(uint64_t)); |