summaryrefslogtreecommitdiff
path: root/cpustats/cpustats.c
AgeCommit message (Collapse)Author
2017-10-20Use -Werror in system/extrasChih-Hung Hsieh
* Remove unused variables. * Fix redefined macro warnings. * Fix sign-compare warnings. * Fix 'return false' in main(). * Keep existing warnings to fix later. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ib92ef5297693595fb84ed4f8e61665bda4cee312
2016-12-13Fix clang static analyzer warnings.Manoj Gupta
system/extras/cpustats/cpustats.c:127:61: warning: Assigned value is garbage or undefined [clang-analyzer-core.uninitialized.Assign] system/extras/cpustats/cpustats.c:116:29: warning: Call to 'malloc' has an allocation size of 0 bytes [clang-analyzer-unix.API] Test: Warning no longer appears Change-Id: I770bf73421608c890ecb1c1c538970e358a69199
2016-03-09cpustats: do not die in case a CPU is offlinedThierry Strudel
Change-Id: I05700266f1c7584ff51557b3e559654045379e87
2015-01-29Add missing includes.Elliott Hughes
Change-Id: Ie3acca064c1bcecb4e0305e61f01ba8cea4abe03
2012-04-03First checkin of cpustatsEric Rowe
This utility is similar to top but with two major differences. 1) It removes the overhead of gathering process/thread stats. 2) It measures the time spent in each frequency for each sample duration. Bug: 6147843 Change-Id: Ie9073470f8cd1778fe902ea6383bef2311e91cf1