summaryrefslogtreecommitdiff
path: root/dumpstate
diff options
context:
space:
mode:
authorCalvin On <con@google.com>2016-06-09 17:42:57 -0700
committerCalvin On <con@google.com>2016-06-13 13:00:24 -0700
commit39efcc57e334d8f845ce2b397afcd0fa5fbe8116 (patch)
treeb1e800475b3c0d797aff18e42995f612fba7a43c /dumpstate
parentfd8494a9e68e4520462c3e3a57f38083a3c11fe7 (diff)
downloadbullhead-39efcc57e334d8f845ce2b397afcd0fa5fbe8116.tar.gz
Dump Wearable/Google info for Bullhead.
Bug: 28640932 Bug: 29277444 Change-Id: I414e088c14ae56aad808000f973e6e57977a9a7d
Diffstat (limited to 'dumpstate')
-rw-r--r--dumpstate/Android.mk8
-rw-r--r--dumpstate/dumpstate.cpp4
2 files changed, 6 insertions, 6 deletions
diff --git a/dumpstate/Android.mk b/dumpstate/Android.mk
index 7bc53c2..9458830 100644
--- a/dumpstate/Android.mk
+++ b/dumpstate/Android.mk
@@ -14,13 +14,9 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
-
-LOCAL_C_INCLUDES := frameworks/native/cmds/dumpstate
-
+LOCAL_C_INCLUDES := frameworks/native/cmds/dumpstate vendor/google/libraries/dumpstate
LOCAL_SRC_FILES := dumpstate.cpp
-
LOCAL_MODULE := libdumpstate.bullhead
-
+LOCAL_WHOLE_STATIC_LIBRARIES := libdumpstate.google
LOCAL_MODULE_TAGS := optional
-
include $(BUILD_STATIC_LIBRARY)
diff --git a/dumpstate/dumpstate.cpp b/dumpstate/dumpstate.cpp
index ef6d6ff..a8ba4b2 100644
--- a/dumpstate/dumpstate.cpp
+++ b/dumpstate/dumpstate.cpp
@@ -15,6 +15,7 @@
*/
#include <dumpstate.h>
+#include <dumpstate_google.h>
void dumpstate_board()
{
@@ -36,4 +37,7 @@ void dumpstate_board()
run_command("LITTLE cluster cpuidle", 5, SU_PATH, "root", "/system/bin/sh", "-c", "for d in $(ls -d /sys/devices/system/cpu/cpu0/cpuidle/state*); do echo \"$d: `cat $d/name` `cat $d/desc` `cat $d/time` `cat $d/usage`\"; done", NULL);
dump_file("big cluster time-in-state", "/sys/devices/system/cpu/cpu4/cpufreq/stats/time_in_state");
run_command("big cluster cpuidle", 5, SU_PATH, "root", "/system/bin/sh", "-c", "for d in $(ls -d /sys/devices/system/cpu/cpu4/cpuidle/state*); do echo \"$d: `cat $d/name` `cat $d/desc` `cat $d/time` `cat $d/usage`\"; done", NULL);
+
+ // Dump Google-specific info.
+ dumpstate_google();
};