Loading cmds/atrace/atrace.cpp +3 −3 Original line number Original line Diff line number Diff line Loading @@ -533,11 +533,11 @@ static void clearAppProperties() // Set the system property that indicates which apps should perform // Set the system property that indicates which apps should perform // application-level tracing. // application-level tracing. static bool setAppCmdlineProperty(const char* cmdline) static bool setAppCmdlineProperty(char* cmdline) { { char buf[PROPERTY_KEY_MAX]; char buf[PROPERTY_KEY_MAX]; int i = 0; int i = 0; const char* start = cmdline; char* start = cmdline; while (start != NULL) { while (start != NULL) { if (i == MAX_PACKAGES) { if (i == MAX_PACKAGES) { fprintf(stderr, "error: only 16 packages could be traced at once\n"); fprintf(stderr, "error: only 16 packages could be traced at once\n"); Loading Loading @@ -743,7 +743,7 @@ static bool setUpTrace() } } packageList += value; packageList += value; } } ok &= setAppCmdlineProperty(packageList.data()); ok &= setAppCmdlineProperty(&packageList[0]); ok &= pokeBinderServices(); ok &= pokeBinderServices(); // Disable all the sysfs enables. This is done as a separate loop from // Disable all the sysfs enables. This is done as a separate loop from Loading Loading
cmds/atrace/atrace.cpp +3 −3 Original line number Original line Diff line number Diff line Loading @@ -533,11 +533,11 @@ static void clearAppProperties() // Set the system property that indicates which apps should perform // Set the system property that indicates which apps should perform // application-level tracing. // application-level tracing. static bool setAppCmdlineProperty(const char* cmdline) static bool setAppCmdlineProperty(char* cmdline) { { char buf[PROPERTY_KEY_MAX]; char buf[PROPERTY_KEY_MAX]; int i = 0; int i = 0; const char* start = cmdline; char* start = cmdline; while (start != NULL) { while (start != NULL) { if (i == MAX_PACKAGES) { if (i == MAX_PACKAGES) { fprintf(stderr, "error: only 16 packages could be traced at once\n"); fprintf(stderr, "error: only 16 packages could be traced at once\n"); Loading Loading @@ -743,7 +743,7 @@ static bool setUpTrace() } } packageList += value; packageList += value; } } ok &= setAppCmdlineProperty(packageList.data()); ok &= setAppCmdlineProperty(&packageList[0]); ok &= pokeBinderServices(); ok &= pokeBinderServices(); // Disable all the sysfs enables. This is done as a separate loop from // Disable all the sysfs enables. This is done as a separate loop from Loading