This change adds two key timestamps to the power stats section of
dumpstate_board.txt: the time at which the device was booted and the
current time immediately prior to capturing the power stats. It also
refactors the lines of code for dumping power stats into a
self-contained function to improve code maintainability.
Currently, because the process of generating a bugreport takes several
minutes, there is significant uncertainty about the temporal
relationship between the bugreport timestamp and the time at which the
power stats were captured. Also, boot time is reverse-engineered -
again, with an unhelpful degree of uncertainty - by combining the
bugreport timestamp with uptime. Generating these two timestamps
immediately prior to capturing live power stats will allow
identification of the onset times of key subsystem-related power issues
with much more precision than is currently possible.
Bug: 143312304
Test: Built userdebug and user builds, installed and tested by
generating a bugreport and verifying the new content was present.
Change-Id: Ie92a6e1f8e6088939819738bcff8cd9a0106f5a8
Since these were combined into libhidlbase.
Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: Iba2cd20b8b20fac3e7564de6b853b475fd4ebd2a
Dumpstate on the Pixel 2 currently does not output all of the IPC logs,
which are needed to debug some kernel wakelock issues.
dumpstate_board.txt will now contain the following new sections:
* ipc-servers - contains the contents of /d/msm_ipc_router/dump_servers
* ipc-logs - contains the contents of /d/ipc_logging/*_IPCRTR/log
Bug: 121033207
Test: Ran "adb bugreport" and visually inspected dumpstate_board.txt
Change-Id: Ic5c20e593634c5de7fe7887dbcc6c21e902ea12e
This patch creates a pixel owned tracing instance apart from
main tracer(i.e., /d/tracing/instances/pixel-trace) so that
we will keep a certain mount of data without interference from
others(e.g., traceur, atrace and so on). It's important to not
lose the information to investigate problems at bugreport.
This CL also adds dumpstatez and bugreport property hooks to
stop/restart the trace during bugreport to keep more old trace.
Allow dumpstate read mm_event trace from /d/tracing/instances/
pixel-trace/trace. With that, it could dump the trace into
bugreport file.
Bug: 116825025
Test: confirm with adb bugreport/bugreport via power menu shortcut/
volume up/down/power key combination. They includes traces in
dumpstate_board.txt with kernel turns on CONFIG_MM_EVENT_STAT.
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I699f362089b61247b2937accbd331327563b1e0c
Bug: 78509314
Test: HAL isn't running
Test: adb bugreport HAL runs
Test: HAL isn't running after bugreport finishes
Test: can adb bugreport again
Test: HAL isn't running after 2nd bugreport finishes
Test: manually inspect state using `lshal` and logs
using `adb logcat | grep android.hardware.dump`
Change-Id: Ib4917807aea9b8359094bc83e972d559546f649b
Add sepolicy for this operation, and update sepolicy to allow
collecting batteryinfo in bugreport for user builds.
Bug: 70094701, 70094083
Test: Take bugreport, verify battery type is present
Change-Id: Id67776301e2ed39a283a08483ac5eb8125aba96b
The file will be used to decode the wifi firmware in the bugreport
automatically in the wifi bugbot.
Bug: 69010177
Change-Id: I4db3b99fb704d0646ef3b0b8a31cd1592e165f16
Signed-off-by: Ecco Park <eccopark@google.com>
To prevent property name collisions between properties of system and
vendor, 'vendor.' prefix must be added to a vendor HAL service name.
You can see the details in http://go/treble-sysprop-compatibility.
Test: succeeded building and tested on a walleye device
Bug: 36796459
Change-Id: Idc995c550657feca5e0f934444a31805bc3538f9
The ftm4 driver's sysfs command interface is currently too fragile
to read from reliably.
Bug: 64146878
Bug: 63854271
Change-Id: If4a82db1aefc8e1b81e5057ce1e8c187a29ec2af
1) Modify the sepolicy to use /data/vendor partition to hold
vendor radio data.
2) Modify Dumpstate to access /data/vendor for logging.
Test: Basic telephony sanity with radio enforce mode
Bug: 36736902
Bug: 36717606
Change-Id: I1f8f1026189c1262cfe0af251451e0efcc98c7f7
This commit adds some statistics from debugfs to bugreport
this includes the files:
/d/wlan0/power_stats
/d/wlan0/ll_stats
/d/icnss/stats
Bug: 62290986
Test: adb bugreport and inspect the required statistics
Merged-In: Ib65b98935a043542283a645f9760e02ff6935db3
Change-Id: Ib65b98935a043542283a645f9760e02ff6935db3
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
1. sys.modem.diag.mdlog to start/stop for this boot
2. sys.modem.diag.mdlog_on for status
3. Increase timer of stop logging
Bug: 62489031
Test: Verify with Pixel Logger and Bugreport
Change-Id: I02a230ad29d23c4a302660ceeb7764ccfcba7cc8
* Saves display debugfs data in /data/vendor/display
* Update the dumpstate xlog to print the saved data
Bug: 38496103
Change-Id: Ibc3bd97657b9faa74894ad50b01f373403871c94
Author: Naseer Ahmed <naseer@codeaurora.org>
Date: Tue May 30 17:51:24 2017 -0400
Made hal_dumpstate_impl to use vendor executables as per treble guidelines
Test: Bugreport and verified radio logs included and no new denials
Bug: 62291820
Change-Id: I4f9f46cd76600e4b083ee6de5c52d495cc17729b