Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: android-4.1.1_…

Change init to use libfs_mgr to mount filesystems.

The new fs_mgr library moves much of the knowledge of what filesystems
to mount into a new fstab.<device> file, and just calls one function to
mount all the filesystems.

Change-Id: If3db37530a0676000cba3e679db27aca734227e5
latest commit 0e9dd90ac3
Ken Sumrall authored
..
Failed to load latest commit information.
Android.mk Change init to use libfs_mgr to mount filesystems.
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843
NOTICE auto import from //depot/cupcake/@135843
README.BOOTCHART auto import from //depot/cupcake/@135843
bootchart.c auto import from //depot/cupcake/@135843
bootchart.h auto import from //depot/cupcake/@135843
builtins.c Change init to use libfs_mgr to mount filesystems.
devices.c
devices.h init: support owner/permission setting for sysfs attributes of devices
grab-bootchart.sh auto import from //depot/cupcake/@135843
init.c Don't set ro.carrier in init.c
init.h Extend init and ueventd for SE Android.
init_parser.c Change init to use libfs_mgr to mount filesystems.
init_parser.h
keychords.c am bf10797: am f7ca604: Fix infinite loop in init when debugging is t…
keychords.h init: Move keychords to keychords.c
keywords.h Change init to use libfs_mgr to mount filesystems.
log.h init/cutils: move kernel logging interface to libcutils from init
logo.c init: Move list and log handling to list.h and log.h
parser.c init/cutils: move list utility code to cutils from init
parser.h init: delay importing files until after parsing the current file
property_service.c Let users with SYSTEM permission set debug. properties
property_service.h init: export all androidboot cmd line values as ro.boot.xx props
readme.txt init: Add support for SOCK_SEQPACKET socket type
signal_handler.c init/cutils: move list utility code to cutils from init
signal_handler.h init: Move signal handling to signal_handler.c
ueventd.c init: Change umask of forked processes to 077
ueventd.h init: Move uevent handling to an external ueventd process
ueventd_parser.c init/cutils: move list utility code to cutils from init
ueventd_parser.h
util.c am 3b04bde: am ee79b45: am 9355307: Merge "Extend init and ueventd fo…
util.h Pick up on androidboot.hardware kernel cmd option

README.BOOTCHART

This version of init contains code to perform "bootcharting", i.e. generating log
files that can be later processed by the tools provided by www.bootchart.org.

To activate it, you need to define build 'init' with the INIT_BOOTCHART environment
variable defined to 'true', for example:

    touch system/init/init.c
    m INIT_BOOTCHART=true

On the emulator, use the new -bootchart <timeout> option to boot with bootcharting
activated for <timeout> seconds.

Otherwise, flash your device, and start it. Then create a file on the /data partition
with a command like the following:

  adb shell 'echo $TIMEOUT > /data/bootchart-start'

Where the value of $TIMEOUT corresponds to the wanted bootcharted period in seconds;
for example, to bootchart for 2 minutes, do:

  adb shell 'echo 120 > /data/bootchart-start'

Reboot your device, bootcharting will begin and stop after the period you gave.
You can also stop the bootcharting at any moment by doing the following:

  adb shell 'echo 1 > /data/bootchart-stop'

Note that /data/bootchart-stop is deleted automatically by init at the end of the
bootcharting. This is not the case of /data/bootchart-start, so don't forget to delete it
when you're done collecting data:

  adb shell rm /data/bootchart-start

The log files are placed in /data/bootchart/. you must run the script tools/grab-bootchart.sh
which will use ADB to retrieve them and create a bootchart.tgz file that can be used with
the bootchart parser/renderer, or even uploaded directly to the form located at:

  http://www.bootchart.org/download.html

NOTE: the bootchart.org webform doesn't seem to work at the moment, you can generate an
      image on your machine by doing the following:

         1/ download the sources from www.bootchart.org
         2/ unpack them
         3/ in the source directory, type 'ant' to build the bootchart program
         4/ type 'java -jar bootchart.jar /path/to/bootchart.tgz

technical note:

this implementation of bootcharting does use the 'bootchartd' script provided by
www.bootchart.org, but a C re-implementation that is directly compiled into our init
program.
Something went wrong with that request. Please try again.