Snap for 9428991 from 66f39332a9
to udc-release
Change-Id: Ie8ea286f382330a32bc60f6f90883718aaa8666f
This commit is contained in:
commit
54fae946b9
2 changed files with 17 additions and 16 deletions
|
@ -159,14 +159,6 @@
|
||||||
<instance>default</instance>
|
<instance>default</instance>
|
||||||
</interface>
|
</interface>
|
||||||
</hal>
|
</hal>
|
||||||
<hal format="hidl" optional="true">
|
|
||||||
<name>vendor.google.wireless_charger</name>
|
|
||||||
<version>1.3</version>
|
|
||||||
<interface>
|
|
||||||
<name>IWirelessCharger</name>
|
|
||||||
<instance>default</instance>
|
|
||||||
</interface>
|
|
||||||
</hal>
|
|
||||||
<hal format="hidl" optional="true">
|
<hal format="hidl" optional="true">
|
||||||
<name>vendor.samsung_slsi.telephony.hardware.oemservice</name>
|
<name>vendor.samsung_slsi.telephony.hardware.oemservice</name>
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
|
|
|
@ -552,15 +552,24 @@ void Dumpstate::dumpMemorySection(int fd) {
|
||||||
|
|
||||||
// Dump items related to display
|
// Dump items related to display
|
||||||
void Dumpstate::dumpDisplaySection(int fd) {
|
void Dumpstate::dumpDisplaySection(int fd) {
|
||||||
DumpFileToFd(fd, "CRTC-0 underrun count", "/sys/kernel/debug/dri/0/crtc-0/underrun_cnt");
|
// Dump counters for decon drivers
|
||||||
DumpFileToFd(fd, "CRTC-0 crc count", "/sys/kernel/debug/dri/0/crtc-0/crc_cnt");
|
const std::string decon_device_sysfs_path("/sys/class/drm/card0/device/");
|
||||||
DumpFileToFd(fd, "CRTC-0 ecc count", "/sys/kernel/debug/dri/0/crtc-0/ecc_cnt");
|
for(int i = 0; i <= 2; ++i){
|
||||||
DumpFileToFd(fd, "CRTC-0 idma err count", "/sys/kernel/debug/dri/0/crtc-0/idma_err_cnt");
|
const std::string decon_num_str = std::to_string(i);
|
||||||
|
const std::string decon_counter_path = decon_device_sysfs_path +
|
||||||
|
"decon" + decon_num_str +
|
||||||
|
"/counters";
|
||||||
|
if (access(decon_counter_path.c_str(), R_OK) == 0){
|
||||||
|
DumpFileToFd(fd, "DECON-" + decon_num_str + " counters",
|
||||||
|
decon_counter_path);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
::android::base::WriteStringToFd("No counters for DECON-" +
|
||||||
|
decon_num_str + " found at path (" + decon_counter_path + ")\n",
|
||||||
|
fd);
|
||||||
|
}
|
||||||
|
}
|
||||||
DumpFileToFd(fd, "CRTC-0 event log", "/sys/kernel/debug/dri/0/crtc-0/event");
|
DumpFileToFd(fd, "CRTC-0 event log", "/sys/kernel/debug/dri/0/crtc-0/event");
|
||||||
DumpFileToFd(fd, "CRTC-1 underrun count", "/sys/kernel/debug/dri/0/crtc-1/underrun_cnt");
|
|
||||||
DumpFileToFd(fd, "CRTC-1 crc count", "/sys/kernel/debug/dri/0/crtc-1/crc_cnt");
|
|
||||||
DumpFileToFd(fd, "CRTC-1 ecc count", "/sys/kernel/debug/dri/0/crtc-1/ecc_cnt");
|
|
||||||
DumpFileToFd(fd, "CRTC-1 idma err count", "/sys/kernel/debug/dri/0/crtc-1/idma_err_cnt");
|
|
||||||
DumpFileToFd(fd, "CRTC-1 event log", "/sys/kernel/debug/dri/0/crtc-1/event");
|
DumpFileToFd(fd, "CRTC-1 event log", "/sys/kernel/debug/dri/0/crtc-1/event");
|
||||||
RunCommandToFd(fd, "libdisplaycolor", {"/vendor/bin/dumpsys", "displaycolor", "-v"},
|
RunCommandToFd(fd, "libdisplaycolor", {"/vendor/bin/dumpsys", "displaycolor", "-v"},
|
||||||
CommandOptions::WithTimeout(2).Build());
|
CommandOptions::WithTimeout(2).Build());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue