summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-02-20 23:46:57 -0600
committerAaron Griffin <aaronmgriffin@gmail.com>2008-02-21 00:03:26 -0600
commitbb639b33167e13602aacf34bab6032992e7b3d6a (patch)
tree5e3b70ef34d12898a3a711ec0ec44b26aba011a6
parente658f681e1d36a75b527d182ce28ee0781ed4492 (diff)
Add some udev stats output2008.02-1
So we can see timing and all that jazz Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xrc.sysinit4
1 files changed, 4 insertions, 0 deletions
diff --git a/rc.sysinit b/rc.sysinit
index d825b35..0e83c8b 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -60,6 +60,7 @@ fi
if [ -x /sbin/udevadm -a -d /sys/block ]; then
# We have udev and /sys appears to be mounted, use UDev
#status "Starting UDev Daemon" /etc/start_udev init
+
stat_busy "Starting UDev Daemon"
mkdir /dev/pts
mkdir /dev/shm
@@ -105,9 +106,12 @@ fi
if pidof -o %PPID /sbin/udevd >/dev/null; then
#status "Loading UDev uevents" /etc/start_udev uevents
stat_busy "Loading UDev uevents"
+ udevstart="$(date +%s%0N)"
/sbin/udevadm trigger
/sbin/udevadm settle
stat_done
+ udevend="$(date +%s%0N)"
+ printhl " UDev uevent processing time: $((($udevend-$udevstart)/1000000))ms\n"
fi
# bring up the loopback interface