diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-02-27 10:51:41 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-02-27 10:51:41 +0100 |
commit | 5bce135e36800a34a273376d5ea1f052ed2d4212 (patch) | |
tree | 00a35271b59d2e6e029555296ff6e0ee79451e30 /examples | |
parent | 9fed24c031a885264a9249eed3b6c654c32ce139 (diff) | |
download | busybox-w32-5bce135e36800a34a273376d5ea1f052ed2d4212.tar.gz busybox-w32-5bce135e36800a34a273376d5ea1f052ed2d4212.tar.bz2 busybox-w32-5bce135e36800a34a273376d5ea1f052ed2d4212.zip |
mdev: improve $SEQ handling; improve debug logging
Sequential run of concurrent mdev's was too simplistic:
they waited for /dev/mdev.seq to match. This could sometimes
cause cumulative loss of time on the order of a second.
Added SIGCHLD signaling from exiting mdev to all other mdev's.
Added debugging required to see that code actually works as intended.
Example of /dev/mdev.log (with "woken up" elevated from dbg lvl 3 to 2):
mdev[1023]: first seq written
^^^^ seq, not pid
mdev[1023]: 35.022395 ACTION:add SUBSYSTEM:module DEVNAME:(null) DEVPATH:/module/lib80211
mdev[1023]: rule matched, line -1
^^^^^^^ means "default rule"
mdev[1023]: 35.022676 exiting
^^^^^^^^^ second,usec timestamp
mdev[1024]: 35.069691 ACTION:add SUBSYSTEM:vc DEVNAME:vcs9 DEVPATH:/devices/virtual/vc/vcs9
mdev[1024]: dev 7,9
mdev[1025]: 35.069889 waiting for '1024'
mdev[1026]: 35.069946 waiting for '1024'
mdev[1027]: 35.070151 waiting for '1024'
mdev[1024]: rule matched, line -1
mdev[1024]: mknod vcs9 (7,9) 20660 0:0
mdev[1024]: 35.070346 exiting
mdev[1025]: woken up
mdev[1026]: woken up
mdev[1025]: 35.071213 ACTION:add SUBSYSTEM:vc DEVNAME:vcsa9 DEVPATH:/devices/virtual/vc/vcsa9
^^^^^^^^^ took only a millisecond to start running after prev mdev exited
mdev[1025]: dev 7,137
mdev[1027]: woken up
mdev[1025]: rule matched, line -1
mdev[1025]: mknod vcsa9 (7,137) 20660 0:0
mdev[1025]: 35.072109 exiting
function old new delta
mdev_main 849 1372 +523
curtime - 59 +59
dirAction 87 134 +47
static.ts - 8 +8
keywords 19 12 -7
make_device 2189 2119 -70
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/mdev_fat.conf | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/mdev_fat.conf b/examples/mdev_fat.conf index ceba3a797..bceddb2d7 100644 --- a/examples/mdev_fat.conf +++ b/examples/mdev_fat.conf | |||
@@ -7,9 +7,9 @@ | |||
7 | # instead of the default 0:0 660. | 7 | # instead of the default 0:0 660. |
8 | # | 8 | # |
9 | # Syntax: | 9 | # Syntax: |
10 | # [-]devicename_regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] | 10 | # [-][ENVVAR=regex;]...devicename_regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] |
11 | # [-]$ENVVAR=regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] | 11 | # [-][ENVVAR=regex;]...@maj,min[-min2] user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] |
12 | # [-]@maj,min[-min2] user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] | 12 | # [-]$ENVVAR=regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] |
13 | # | 13 | # |
14 | # [-]: do not stop on this match, continue reading mdev.conf | 14 | # [-]: do not stop on this match, continue reading mdev.conf |
15 | # =: move, >: move and create a symlink | 15 | # =: move, >: move and create a symlink |
@@ -53,6 +53,7 @@ sr[0-9]* root:cdrom 660 @ln -sf $MDEV cdrom | |||
53 | fd[0-9]* root:floppy 660 | 53 | fd[0-9]* root:floppy 660 |
54 | 54 | ||
55 | # net devices | 55 | # net devices |
56 | SUBSYSTEM=net;.* root:root 600 @nameif | ||
56 | tun[0-9]* root:root 600 =net/ | 57 | tun[0-9]* root:root 600 =net/ |
57 | tap[0-9]* root:root 600 =net/ | 58 | tap[0-9]* root:root 600 =net/ |
58 | 59 | ||