Bugzilla – Attachment 46629 Details for
Bug 105598
Three drivers for the same device loaded at once
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
The script for nice logging output
show_event_log (text/plain), 1.71 KB, created by
Christian Zoz
on 2005-08-19 06:35:54 UTC
(
hide
)
Description:
The script for nice logging output
Filename:
MIME Type:
Creator:
Christian Zoz
Created:
2005-08-19 06:35:54 UTC
Size:
1.71 KB
patch
obsolete
>#! /bin/bash ># ># known events are: ># ac97 acpi block cpu drivers edd firmware graphics i2c-adapter i8259 ># ieee1394_protocol input ioapic irqrouter lapic mem misc module namespace ># pci_bus pci_express pcmcia pcmcia_socket platform pnp printer scsi scsi_host ># serio sound timer timer_pit tty usb_host vc ># >EXCLUDE_SUBS="acpi cpu edd mem namespace pci_bus tty vc" >MESSAGES=${MESSAGES:-/var/log/messages} >#grep udevd /var/log/messages | grep -v "pass_env\|geventrec\|hal.hot\|received" > >show_event() { > local SN PID SUBS > declare -i SN=$1 PID ># read PID ACT SUBS < <(sed -n "s/^.*seq $SN forked, pid \[\([0-9]*\)\], \([^,]*\),.*$/\1 \2/p;T;q" $MESSAGES) > read PID ACT SUBS < <(sed -n "s/^.*seq $SN forked, pid \[\([0-9]*\)\], '\([^']*\)' '\([^']*\)'.*$/\1 \2 \3/p;T;q" $MESSAGES) > if [ $PID == 0 ] ; then > echo event $SN not found 1>&2 > return 1 > fi > if [ -n "$WANTED_SUBS" ] ; then > WANTED=no > for S in $WANTED_SUBS; do > test "$SUBS" == "$S" && WANTED=yes > done > else > WANTED=yes > for S in $EXCLUDE_SUBS; do > test "$SUBS" == "$S" && WANTED=no > done > fi > echo event $SN $PID $ACT $SUBS $WANTED 1>&2 > test $WANTED == no && return 1 > grep "seq $SN \|\[$PID\]" $MESSAGES | > grep -v "pass_env\|geventrec\|hal.hot" > echo >} > >declare -i START=$1 STOP=$2 >if [ "$2" == last ] ; then > read x x STOP x < <(grep -o "udev_done.*exit" $MESSAGES | tail -1) >fi >test $START -lt 0 -a $STOP -gt 0 && START=$((STOP+START+1)) >test $START -gt $STOP && STOP=$START >shift; shift; WANTED_SUBS="$*" >for n in `seq $START $STOP`; do > show_event $n >done > >exit > ># list all events >(read x; while read x s x x x c x; read x s2 x a d; do echo $s $s2 $a $c $d; done) < <( sed -n "s/^.*udev.*\(seq [0-9]* [qf].*$\)/\1/p" /var/log/messages | sort -n -k 2 | tr -d ',' )
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 105598
:
46559
|
46569
|
46628
| 46629