diff options
| -rw-r--r-- | cmds/atrace/atrace.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cmds/atrace/atrace.cpp b/cmds/atrace/atrace.cpp index 19c2830401..53b3a00453 100644 --- a/cmds/atrace/atrace.cpp +++ b/cmds/atrace/atrace.cpp @@ -228,6 +228,10 @@ static const TracingCategory k_categories[] = { { OPT, "events/kmem/rss_stat/enable" }, { OPT, "events/kmem/ion_heap_grow/enable" }, { OPT, "events/kmem/ion_heap_shrink/enable" }, + { OPT, "events/oom/oom_score_adj_update/enable" }, + { OPT, "events/sched/sched_process_exit/enable" }, + { OPT, "events/task/task_rename/enable" }, + { OPT, "events/task/task_newtask/enable" }, } }, }; @@ -435,14 +439,10 @@ static bool isCategorySupported(const TracingCategory& category) const char* path = category.sysfiles[i].path; bool req = category.sysfiles[i].required == REQ; if (path != nullptr) { - if (req) { - if (!fileIsWritable(path)) { - return false; - } else { - ok = true; - } - } else { + if (fileIsWritable(path)) { ok = true; + } else if (req) { + return false; } } } |