mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Merge "Make ion trace point optional" am: 22fe9b3c90
am: 422c18cc03
Change-Id: Iae1425336afae2ba9a5b4a7e80702b59d78f8a9b
This commit is contained in:
@@ -30,24 +30,25 @@ 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;
|
||||
};
|
||||
|
||||
// This is a map stores categories and their sysfs paths with required flags
|
||||
const std::map<std::string, TracingConfig> kTracingMap = {
|
||||
// gfx
|
||||
{
|
||||
"gfx",
|
||||
{"Graphics",
|
||||
{{"/sys/kernel/debug/tracing/events/mdss/enable", false},
|
||||
{"/sys/kernel/debug/tracing/events/sde/enable", false},
|
||||
{"/sys/kernel/debug/tracing/events/mali_systrace/enable", false}}},
|
||||
},
|
||||
{
|
||||
"ion",
|
||||
{"ION allocation",
|
||||
{{"/sys/kernel/debug/tracing/events/kmem/ion_alloc_buffer_start/enable", true}}},
|
||||
},
|
||||
// gfx
|
||||
{
|
||||
"gfx",
|
||||
{"Graphics",
|
||||
{{"/sys/kernel/debug/tracing/events/mdss/enable", false},
|
||||
{"/sys/kernel/debug/tracing/events/sde/enable", false},
|
||||
{"/sys/kernel/debug/tracing/events/mali_systrace/enable", false}}},
|
||||
},
|
||||
{
|
||||
"ion",
|
||||
{"ION allocation",
|
||||
{{"/sys/kernel/debug/tracing/events/kmem/ion_alloc_buffer_start/enable", false}}},
|
||||
},
|
||||
};
|
||||
|
||||
// Methods from ::android::hardware::atrace::V1_0::IAtraceDevice follow.
|
||||
|
||||
Reference in New Issue
Block a user