summaryrefslogtreecommitdiffstats
path: root/init/bootchart.h
Commit message (Collapse)AuthorAgeFilesLines
* Further refactoring of the bootchart code.Elliott Hughes2015-02-131-2/+0
| | | | Change-Id: Ifed6ae8d481b605139fd27799574de4c2d0f5908
* bootchart: fix bootchart can not be triggered problemYongqin Liu2015-02-121-8/+3
| | | | | | | | | | | | | | | | | 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-4/+0
| | | | | | | | 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-7/+3
| | | | | | | | 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
* Fixed the pacing logic in bootchart data collection.Bo (Andover) Zhang2014-07-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Ideally bootchart collects system data every BOOTCHART_POLLING_MS ms. However, the current bootchart pacing logic would collect data every time the main loop in init.c is executed. This results in: 1. Multiple data samples being taken consecutively or prematurely. In many cases, these data samples have the same timestamp (in jiffies). The off-line data processing tool would complain about dividing by zero "interval" and bail out. 2. Because of the ineffective pacing, bootchart data collection would terminate prematurely. The total duration of data collection is usually much shorter than what the user specifies. The fix is to check whether BOOTCHART_POLLING_MS ms has elapsed before taking a new data sample. For this purpose, /proc/uptime is used to get the time values, consistent with the precision of bootchart timestamps. Change-Id: I106bf91dbda01059b719df6c73b8bd1cd54a64f0 Signed-off-by: Bo (Andover) Zhang <zhang@broadcom.com>
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+36
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-36/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-0/+36