]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
rasdaemon: use the new block_rq_error tracepoint
authorYang Shi <shy828301@gmail.com>
Mon, 4 Apr 2022 23:34:05 +0000 (16:34 -0700)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 21 Jan 2023 06:17:17 +0000 (07:17 +0100)
commit9c86f6255f67a8bae28cd46c54500fc16bfc7a30
treec6c4ab2f5fda3d22a522db0d71eab60d43589c38
parentc2255178a49f62c53009a456bc37dd5e37332f09
rasdaemon: use the new block_rq_error tracepoint

Since Linux 5.18-rc1 a new block tracepoint called block_rq_error is
available for tracing disk error events dedicatedly.  Currently
rasdaemon is using block_rq_complete which also traces successful cases.
It incurs excessive tracing logs and somehow overhead since the event is
triggered quite often.

Use the new tracepoint for disk error reporting, and the new trace point
has the same format as block_rq_complete.

Signed-off-by: Yang Shi <shy828301@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
ras-events.c
ras-record.c