summaryrefslogtreecommitdiffstats
path: root/init/watchdogd.cpp
Commit message (Collapse)AuthorAgeFilesLines
* init: create android::init:: namespaceTom Cherry2017-06-231-0/+6
| | | | | | | | With some small fixups along the way Test: Boot bullhead Test: init unit tests Change-Id: I7beaa473cfa9397f845f810557d1631b4a462d6a
* ueventd: do not reference init's sehandleTom Cherry2017-05-011-1/+4
| | | | | | | | | | | | | | | Init exposes a global 'sehandle' that ueventd references as part of devices.cpp and util.cpp. This is particularly dangerous in device_init() in which both uevent and init write to this global. This change creates a separate local copy for devices.cpp and puts restrictions on where init.h can be included to make sure the global used by init is not reference by non-init code. Future changes to init should remove this global. Test: Boot bullhead Change-Id: Ifefa9e1932e9d647d06cca2618f5c8e5a7a85460
* init: more header cleanupTom Cherry2017-04-061-1/+2
| | | | | | | | | | Remove includes of "log.h" that really want <android-base/logging.h> Fix header include order Remove headers included in .cpp files that their associated .h already includes Remove some unused headers Test: boot bullhead Change-Id: I2b415adfe86a5c8bbe4fb1ebc53c7b0ee2253824
* Make klog_fd thread-safe and make klog_init a no-op.Elliott Hughes2016-06-291-1/+0
| | | | | | | I'll come back and remove klog_init when I've removed other calls to it. Change-Id: Iad7fd26d853b4ddc54e9abd44516b6f138cbbfcb Test: booted N9, looked at "adb shell dmesg" output.
* Move init to libbase logging.Elliott Hughes2016-06-271-9/+9
| | | | Change-Id: Ibfbefeff587a69e948978a037c555fd12a5ade6a
* init: Fix logging stutterMark Salyzyn2015-07-211-6/+7
| | | | | | | | - Get rid of log stutter, tag (executable basename) is added by the logging routines Bug: 17914575 Change-Id: If00eb1b915065fb52c9311648b7ada4c9e2696bd
* Log more timing information from init.Elliott Hughes2015-03-281-22/+15
| | | | | | | | | | | | | | | | | Also make important events in init's life NOTICE rather than INFO, and ensure that NOTICE events actually make it to the kernel log. Also fix the logging so that if you have a printf format string error, the compiler now catches it. Also give messages from init, ueventd, and watchdogd distinct tags. (Previously they'd all call themselves "init", and dmesg doesn't include pids, so you couldn't untangle them.) Also include the tag in SELinux messages. Bug: 19544788 Change-Id: Ica6daea065bfdb80155c52c0b06f346a7df208fe
* Build init as C++.Elliott Hughes2015-02-041-0/+78
This is just the minimal change to keep it building. Change-Id: I245c5b8413a1db114576c81462eb5737f5ffcef2