Merge "Support * as a wildcard for ATRACE_TAG_APP" am: 53c964f53b am: 2e50045f60

am: 34499aab21

Change-Id: Ie8e78dc2f85c513ba4ba8b4a355a7d4de1e1055d
This commit is contained in:
Daniel Colascione 2018-02-12 23:27:14 +00:00 committed by android-build-merger
commit d49fb1238d

View file

@ -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;
}
}