summaryrefslogtreecommitdiffstats
path: root/init/bootchart.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Clarify a few things about bootcharts.Elliott Hughes2015-03-281-10/+6
| | | | | | | | | Make it clearer in dmesg when we're deliberately not doing bootcharting, and explain in the documentation that the output for init is quite misleading (and, as far as I can tell, not within our power to fix). Change-Id: I0b22a56f83521d64c6d176dc423c81f7ea86b23c
* Use unique_ptr to call closedir.Elliott Hughes2015-03-201-3/+3
| | | | Change-Id: I8f572a06ce59283e5bd444ae0491dea71b0ea304
* Revert "Revert "Create libbase.""Dan Albert2015-03-161-9/+9
| | | | This reverts commit a7870d88167f619e758b5bcd15b410d16da7c16b.
* Revert "Create libbase."Nicolas Geoffray2015-03-161-9/+9
| | | | | | | | Breaks internal master. This reverts commit 98ff77204cef9bb8f0f27420833233622060a09e. Change-Id: I18dc6021cb43efff8aa88486c2d980dc2b8eedba
* Create libbase.Dan Albert2015-03-141-9/+9
| | | | | | | Move StringPrintf and the string based file I/O from libutils to libbase. Change-Id: I0297a6063874b9d92100e0dd5123fddfbda932fe
* Remove unused variable BOOTCHART_DEFAULT_TIME_SEC.Elliott Hughes2015-02-131-3/+0
| | | | Change-Id: Id43c73dd32d2f9f1eee9592b55aa3fd3c02094b2
* Further refactoring of the bootchart code.Elliott Hughes2015-02-131-272/+159
| | | | Change-Id: Ifed6ae8d481b605139fd27799574de4c2d0f5908
* bootchart: fix bootchart can not be triggered problemYongqin Liu2015-02-121-23/+75
| | | | | | | | | | | | | | | | | bootchart uses a file on the data partition to decide if it should collect data for bootchart, but the data partition will be mounted by the mount_all command in the "on fs" section, and it will be only added into the action queue when command "trigger fs" is executed, but that's after the bootchart_init action (late_init). This change makes bootchart_init a builtin command of init, and make it executed as the first command of "on post-fs" section which will be triggered after the "on fs" section. This change also refactors the bootchart code to all be in bootchart.cpp. Change-Id: Ia74aa34ca5b785f51fcffdd383075a549b2a99d9 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
* Stop using #if for conditional compilation.Elliott Hughes2015-02-041-12/+12
| | | | | | | | Use regular 'if' to prevent bitrot. Also remove remaining typedefs. Change-Id: I2e6ca928e2db29b88b643cf990ff05cfb0be94a6
* Use TEMP_FAILURE_RETRY, always build bootchart.cpp.Elliott Hughes2015-02-041-49/+12
| | | | | | | | Also switch the revision parsing over to sscanf as promised. I haven't done the hardware parsing because I don't yet know whether we actually need to keep the space-stripping code. Change-Id: Ic33378345cd515cb08d00c543acf44eb72673396
* Build init as C++.Elliott Hughes2015-02-041-0/+378
This is just the minimal change to keep it building. Change-Id: I245c5b8413a1db114576c81462eb5737f5ffcef2