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

Commit 10b48b16 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 13909421 from f51d99b2 to 25Q4-release

Change-Id: I9ba78522e4556f8c06f1af1f9d64e7622bb92937
parents 6d28182b f51d99b2
Loading
Loading
Loading
Loading
+10 −13
Original line number Diff line number Diff line
@@ -194,13 +194,11 @@ void GpuWork::dump(const Vector<String16>& /* args */, std::string* result) {
        // thus the returned value is not being concurrently accessed by the BPF
        // program (no atomic reads needed below).

        mGpuWorkMap.iterateWithValue(
                [&dumpMap](const GpuIdUid& key, const UidTrackingInfo& value,
                           const android::bpf::BpfMap<GpuIdUid, UidTrackingInfo>&)
                        -> base::Result<void> {
        mGpuWorkMap.forAll(
            [&dumpMap](const GpuIdUid& key, const UidTrackingInfo& value) {
                dumpMap[key] = value;
                    return {};
                });
            }
        );
    }

    // Dump work information.
@@ -295,12 +293,11 @@ AStatsManager_PullAtomCallbackReturn GpuWork::pullWorkAtoms(AStatsEventList* dat
    // the returned value is not being concurrently accessed by the BPF program
    // (no atomic reads needed below).

    mGpuWorkMap.iterateWithValue([&workMap](const GpuIdUid& key, const UidTrackingInfo& value,
                                            const android::bpf::BpfMap<GpuIdUid, UidTrackingInfo>&)
                                         -> base::Result<void> {
    mGpuWorkMap.forAll(
        [&workMap](const GpuIdUid& key, const UidTrackingInfo& value) {
            workMap[key] = value;
        return {};
    });
        }
    );

    // Get a list of just the UIDs; the order does not matter.
    std::vector<Uid> uids;