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

Commit 9f884bc6 authored by Wei Wang's avatar Wei Wang Committed by android-build-merger
Browse files

Merge "Make ion trace point optional" am: 22fe9b3c

am: 422c18cc

Change-Id: Iae1425336afae2ba9a5b4a7e80702b59d78f8a9b
parents 26ff91b2 422c18cc
Loading
Loading
Loading
Loading
+14 −13
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ using ::android::hardware::atrace::V1_0::TracingCategory;

struct TracingConfig {
    std::string description;
    // path and if error on failure
    std::vector<std::pair<std::string, bool>> paths;
};

@@ -46,7 +47,7 @@ const std::map<std::string, TracingConfig> kTracingMap = {
        {
                "ion",
                {"ION allocation",
         {{"/sys/kernel/debug/tracing/events/kmem/ion_alloc_buffer_start/enable", true}}},
                 {{"/sys/kernel/debug/tracing/events/kmem/ion_alloc_buffer_start/enable", false}}},
        },
};