Merge "atrace: fix tracing on user builds" into jb-mr2-dev

This commit is contained in:
Jamie Gennis 2013-03-28 18:14:14 +00:00 committed by Android (Google) Code Review
commit 9794f90368

View File

@ -433,8 +433,10 @@ static bool setKernelTraceFuncs(const char* funcs)
if (funcs == NULL || funcs[0] == '\0') { if (funcs == NULL || funcs[0] == '\0') {
// Disable kernel function tracing. // Disable kernel function tracing.
if (fileIsWritable(k_currentTracerPath)) {
ok &= writeStr(k_currentTracerPath, "nop"); ok &= writeStr(k_currentTracerPath, "nop");
if (fileExists(k_ftraceFilterPath)) { }
if (fileIsWritable(k_ftraceFilterPath)) {
ok &= truncateFile(k_ftraceFilterPath); ok &= truncateFile(k_ftraceFilterPath);
} }
} else { } else {