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

Commit 422c18cc authored by Wei Wang's avatar Wei Wang Committed by android-build-merger
Browse files

Merge "Make ion trace point optional"

am: 22fe9b3c

Change-Id: Ia7d3fae07dd242eda5337d1f25d0eb1ee95cae9f
parents fb7ad2ba 22fe9b3c
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}}},
        },
};