commit | 3e755e4294e12c5278e67ec464a576d7a763adfa | [log] [tgz] |
---|---|---|
author | Daniel Colascione <dancol@google.com> | Mon Feb 12 22:51:33 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Feb 12 22:51:33 2018 +0000 |
tree | 4638fe2ed92a2815cdc8b68d734eb79e3ec01632 | |
parent | 2a49d5936bb71ea8863590d0898759a79be7e535 [diff] | |
parent | 6606da8bd43ded5df62dcb7f7153f13304e72f41 [diff] |
Merge "Support * as a wildcard for ATRACE_TAG_APP"
diff --git a/libcutils/trace-dev.inc b/libcutils/trace-dev.inc index f32330a..f95c6c5 100644 --- a/libcutils/trace-dev.inc +++ b/libcutils/trace-dev.inc
@@ -70,7 +70,7 @@ for (int i = 0; i < count; i++) { snprintf(buf, sizeof(buf), "debug.atrace.app_%d", i); property_get(buf, value, ""); - if (strcmp(value, cmdline) == 0) { + if (strcmp(value, "*") == 0 || strcmp(value, cmdline) == 0) { return true; } }