am 9794f903
: Merge "atrace: fix tracing on user builds" into jb-mr2-dev
* commit '9794f90368550dba8693a30c61c4bea5c4fb2993': atrace: fix tracing on user builds
This commit is contained in:
commit
3fbced6ace
@ -433,8 +433,10 @@ static bool setKernelTraceFuncs(const char* funcs)
|
||||
|
||||
if (funcs == NULL || funcs[0] == '\0') {
|
||||
// Disable kernel function tracing.
|
||||
if (fileIsWritable(k_currentTracerPath)) {
|
||||
ok &= writeStr(k_currentTracerPath, "nop");
|
||||
if (fileExists(k_ftraceFilterPath)) {
|
||||
}
|
||||
if (fileIsWritable(k_ftraceFilterPath)) {
|
||||
ok &= truncateFile(k_ftraceFilterPath);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user