Stop attempting to read /d/sync
The info in /d/sync was relocated to a different file in linux kernel
version 4.8 so this read has been returning error for a while now.
Also, all debugfs usage from platform code is being cleaned up in
Android R due to the instability of its ABI and dumpstate is no longer
permitted to access debugfs.
Bug: 134669095
Test: make
Change-Id: I4fc559229b1ac5dea7371dfa7e83af173b5feb9b
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 0ac3e93..4c778da 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -1313,7 +1313,6 @@
DumpFile("KERNEL WAKE SOURCES", "/d/wakeup_sources");
DumpFile("KERNEL CPUFREQ", "/sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state");
- DumpFile("KERNEL SYNC", "/d/sync");
RunCommand("PROCESSES AND THREADS",
{"ps", "-A", "-T", "-Z", "-O", "pri,nice,rtprio,sched,pcy,time"});