Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 640261cf authored by Vishnu Nair's avatar Vishnu Nair
Browse files

[sf] add a backdoor to disable transaction tracing

Test: adb shell service call SurfaceFlinger 1041 i32 -1
Bug: 298240242
Change-Id: If07b1d538d6ae1ec43b8611183085741c281c089
parent d49c9783
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -7027,7 +7027,10 @@ status_t SurfaceFlinger::onTransact(uint32_t code, const Parcel& data, Parcel* r
            }
            }
            case 1041: { // Transaction tracing
            case 1041: { // Transaction tracing
                if (mTransactionTracing) {
                if (mTransactionTracing) {
                    if (data.readInt32()) {
                    int arg = data.readInt32();
                    if (arg == -1) {
                        mTransactionTracing.reset();
                    } else if (arg > 0) {
                        // Transaction tracing is always running but allow the user to temporarily
                        // Transaction tracing is always running but allow the user to temporarily
                        // increase the buffer when actively debugging.
                        // increase the buffer when actively debugging.
                        mTransactionTracing->setBufferSize(
                        mTransactionTracing->setBufferSize(