]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
rasdaemon: add support for memory_failure events
authorShiju Jose <shiju.jose@huawei.com>
Mon, 8 Mar 2021 16:57:26 +0000 (16:57 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 26 May 2021 07:44:17 +0000 (09:44 +0200)
commit2290d65b97311dd5736838f1e285355f7f357046
tree4f76372ed5d2f9721dfe3e8d29ca233820f58bed
parent9367354a4e57506a7090143e423fa620f86eeed1
rasdaemon: add support for memory_failure events

Add support to log the memory_failure kernel trace
events.

Example rasdaemon log and SQLite DB output for the
memory_failure event,
=================================================
rasdaemon: memory_failure_event store: 0x126ce8f8
rasdaemon: register inserted at db
<...>-785   [000]     0.000024: memory_failure_event: 2020-10-02 13:27:13 -0400 pfn=0x204000000 page_type=free buddy page action_result=Delayed

CREATE TABLE memory_failure_event (id INTEGER PRIMARY KEY, timestamp TEXT, pfn TEXT, page_type TEXT, action_result TEXT);
INSERT INTO memory_failure_event VALUES(1,'2020-10-02 13:27:13 -0400','0x204000000','free buddy page','Delayed');
==================================================

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
.travis.yml
Makefile.am
ras-events.c
ras-events.h
ras-memory-failure-handler.c [new file with mode: 0644]
ras-memory-failure-handler.h [new file with mode: 0644]
ras-record.c
ras-record.h
ras-report.c
ras-report.h