redirecting /dev/debug to syslogd

johnbock

Mitglied
Mitglied seit
2 Mrz 2008
Beiträge
310
Punkte für Reaktionen
0
Punkte
0
While developing, it is sometimes helpful to continuously redirect /dev/debug to syslogd or even cat the char file without getting that broken pipe message.

Eliminate the broken-pipe message with
Code:
# echo AVMDBG_EOF 0 >/dev/debug

And continuous monitoring through one of these, the latter should have access to a running syslogd
Code:
# cat /dev/debug
# dd bs=1 if=/dev/debug | logger -t avm-debug -p local0.debug &
 
Vielleicht sollten wir die Zeile standardmäßig rauspatchen. Müssten wir dann noch was umleiten, dass die Kernel Log Messages ins Syslog kommen? Muss das wirklich so gemacht werden? Evtl. sollten wir einen Patch für die Busybox erstellen?

MfG Oliver
 
Vielleicht sollten wir die Zeile standardmäßig rauspatchen.
What exactly do you mean by 'raus patchen'? Do you mean taking the echo ...1 >/dev/debug out of rc.S?

Müssten wir dann noch was umleiten, dass die Kernel Log Messages ins Syslog kommen?
AFAIK, klog is correctly set and is being sent to syslog.

Muss das wirklich so gemacht werden? Evtl. sollten wir einen Patch für die Busybox erstellen?
Why must it be complex, when it can be held simple. I.e. Ubuntu does things like that with dd when there is no other iterface. After all, this systematic places the least load on the system: cat, sed places more load with the same effect and patching bb cannot always be the answer...
 
Kostenlos!

Statistik des Forums

Themen
248,920
Beiträge
2,305,105
Mitglieder
378,645
Neuestes Mitglied
nikitarajusa