summaryrefslogtreecommitdiff
path: root/atrace
diff options
context:
space:
mode:
authorMartin Liu <liumartin@google.com>2020-10-19 11:51:39 +0800
committerMartin Liu <liumartin@google.com>2020-10-19 11:51:39 +0800
commit87ae5bd7b08ff6da4aea7ccca2b487afc2e0c655 (patch)
tree1512d8a22110c39698607df61f46c67b933fd40b /atrace
parent0a3af750eaa47f2219a8aa4074cc5f1c14e46252 (diff)
downloadpixel-87ae5bd7b08ff6da4aea7ccca2b487afc2e0c655.tar.gz
Add fastrpc dma buffer stat category
Add fastrpc dma buffer stat so this could help track fastrpc dma buffer memory usage. Bug: 170189835 Test: boot Signed-off-by: Martin Liu <liumartin@google.com> Change-Id: I2b014cda1971ff05ab991c425249ed5586a1a83e
Diffstat (limited to 'atrace')
-rw-r--r--atrace/AtraceDevice.cpp5
-rw-r--r--atrace/android.hardware.atrace@1.0-service.pixel.rc2
2 files changed, 7 insertions, 0 deletions
diff --git a/atrace/AtraceDevice.cpp b/atrace/AtraceDevice.cpp
index 4dea7c8b..b3229ae5 100644
--- a/atrace/AtraceDevice.cpp
+++ b/atrace/AtraceDevice.cpp
@@ -44,6 +44,11 @@ const std::map<std::string, TracingConfig> kTracingMap = {
{"/sys/kernel/debug/tracing/events/mali_systrace/enable", false}}},
},
{
+ "memory",
+ {"Memory",
+ {{"/sys/kernel/debug/tracing/events/fastrpc/fastrpc_dma_stat/enable", false}}},
+ },
+ {
"ion",
{"ION Allocation",
{{"/sys/kernel/debug/tracing/events/kmem/ion_alloc_buffer_start/enable", false}}},
diff --git a/atrace/android.hardware.atrace@1.0-service.pixel.rc b/atrace/android.hardware.atrace@1.0-service.pixel.rc
index 74a9a4df..d5ba0585 100644
--- a/atrace/android.hardware.atrace@1.0-service.pixel.rc
+++ b/atrace/android.hardware.atrace@1.0-service.pixel.rc
@@ -13,6 +13,8 @@ on late-init
chmod 0666 /sys/kernel/debug/tracing/events/systrace/enable
# qct hw lmh-dcvs
chmod 0666 /sys/kernel/debug/tracing/events/lmh/lmh_dcvs_freq/enable
+ # qct fastrpc dma buffers
+ chmod 0666 /sys/kernel/debug/tracing/events/fastrpc/fastrpc_dma_stat/enable
service vendor.atrace-hal-1-0 /vendor/bin/hw/android.hardware.atrace@1.0-service.pixel
interface android.hardware.atrace@1.0::IAtraceDevice default