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

Commit f0f57884 authored by Wei Wang's avatar Wei Wang
Browse files

Make ion trace point optional

Bug: 129485781
Test: Build
Change-Id: I90fc0868df85887e542372cd55dc76be14c9d420
parent edf188ad
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}}},
        },
};