summaryrefslogtreecommitdiff
path: root/libs/battery/LongArrayMultiStateCounterTest.cpp
diff options
context:
space:
mode:
author Kalesh Singh <kaleshsingh@google.com> 2021-07-27 15:17:29 +0000
committer Kalesh Singh <kaleshsingh@google.com> 2021-07-28 19:56:57 +0000
commitea785e5cdea2aaa4374d32374c4a84b52e3624e9 (patch)
treeceac93d9efacd915f426bf210f2d6b02cd772cda /libs/battery/LongArrayMultiStateCounterTest.cpp
parent4068ef232a1dbeeab3895db27ae4f0fd5997e51a (diff)
mm_events: Add knob to remove mm_event tracing instance
Only create mm_event tracing instance if persist.mm_events.enabled=true. This saves ~5.5MB on low memory devices that don't enable mm_events. The memory saved is slab memory that would be allocated for the ftrace instance's inode/dentry objects. Set the per-CPU trace buffer sizes to 1KB by default to minimize trace buffer memory usage if perfetto isn't started. Also disable tracing by default, traced_probes will enable as needed. Bug: 194156702 Bug: 194825030 Test: boot; ls /sys/kernel/tracing/instances -> No mm_events Test: setprop persist.mm_events.enabled true; boot; ls /sys/kernel/tracing/instances -> mm_events Change-Id: I89d7e5e1cd0d32b5612bc419b1a1c4b8c3c8ade6 Merged-In: I89d7e5e1cd0d32b5612bc419b1a1c4b8c3c8ade6
Diffstat (limited to 'libs/battery/LongArrayMultiStateCounterTest.cpp')
0 files changed, 0 insertions, 0 deletions