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

Commit 8180fbf1 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

am: 9f884bc6

Change-Id: Ia10f8d4b7211e64301bb0f9344db7e5e1f7bde20
parents 7c51e849 9f884bc6
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}}},
        },
};