summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Colascione2018-02-09 22:07:23 -0600
committerDaniel Colascione2018-02-09 22:08:19 -0600
commit642ef98b3bec7eff738b11fdf5b6dededf08b17b (patch)
tree2ca8e4cb008d448ee68f19e7b11acf0919ca974e /libcutils
parentcd2fa1f43215b829bd4359bf7725daa220b08dbf (diff)
downloadplatform-system-core-642ef98b3bec7eff738b11fdf5b6dededf08b17b.tar.gz
platform-system-core-642ef98b3bec7eff738b11fdf5b6dededf08b17b.tar.xz
platform-system-core-642ef98b3bec7eff738b11fdf5b6dededf08b17b.zip
Support * as a wildcard for ATRACE_TAG_APP
Test: strcmp Change-Id: I33ec3ae071e3856538444663bbabb3c779ed8afa
Diffstat (limited to 'libcutils')
-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)
70 for (int i = 0; i < count; i++) { 70 for (int i = 0; i < count; i++) {
71 snprintf(buf, sizeof(buf), "debug.atrace.app_%d", i); 71 snprintf(buf, sizeof(buf), "debug.atrace.app_%d", i);
72 property_get(buf, value, ""); 72 property_get(buf, value, "");
73 if (strcmp(value, cmdline) == 0) { 73 if (strcmp(value, "*") == 0 || strcmp(value, cmdline) == 0) {
74 return true; 74 return true;
75 } 75 }
76 } 76 }