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

Commit 22fe9b3c authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Make ion trace point optional"

parents 54f20b62 f0f57884
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}}},
        },
};