I am writing a device driver. I need to seek in system logs; for that I use dmesg
. In my case dmesg
is overloaded with these warnings:
[ 5578.052140] pcieport 0000:00:1c.5: AER: Corrected error received: 0000:00:1c.5
[ 5578.052146] pcieport 0000:00:1c.5: AER: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
[ 5578.057805] pcieport 0000:00:1c.5: AER: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
[ 5578.057871] pcieport 0000:00:1c.5: AER: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
[ 5578.057872] pcieport 0000:00:1c.5: AER: device [8086:9d15] error status/mask=00000001/00002000
[ 5578.057873] pcieport 0000:00:1c.5: AER: [ 0] RxErr
Because of dmesg
overload, my intended messages are not available. I want the way to read my kernel log or block these pcieport logs.
So what can I do to read my intended messages?
dmesg | grep -v pcieport
? Or perhaps you have to increase the buffer size.