summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Colascione <dancol@google.com>2018-02-09 20:07:23 -0800
committerDaniel Colascione <dancol@google.com>2018-02-09 20:08:19 -0800
commit642ef98b3bec7eff738b11fdf5b6dededf08b17b (patch)
tree2ca8e4cb008d448ee68f19e7b11acf0919ca974e
parentcd2fa1f43215b829bd4359bf7725daa220b08dbf (diff)
downloadsystem_core-642ef98b3bec7eff738b11fdf5b6dededf08b17b.tar.gz
system_core-642ef98b3bec7eff738b11fdf5b6dededf08b17b.tar.bz2
system_core-642ef98b3bec7eff738b11fdf5b6dededf08b17b.zip
Support * as a wildcard for ATRACE_TAG_APP
Test: strcmp Change-Id: I33ec3ae071e3856538444663bbabb3c779ed8afa
-rw-r--r--libcutils/trace-dev.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcutils/trace-dev.inc b/libcutils/trace-dev.inc
index f32330a4c..f95c6c559 100644
--- a/libcutils/trace-dev.inc
+++ b/libcutils/trace-dev.inc
@@ -70,7 +70,7 @@ static bool atrace_is_cmdline_match(const char* cmdline)
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;
}
}