mchehab / rasdaemon

Rasdaemon is a RAS (Reliability, Availability and Serviceability) logging tool. It records memory errors, using the EDAC tracing events. EDAC is a Linux kernel subsystem with handles detection of ECC errors from memory controllers for most chipsets on i386 and x86_64 architectures. EDAC drivers for other architectures like arm also exists.
GNU General Public License v2.0
178 stars 79 forks source link

contrib/edac-fake-inject does not exist in tarball #179

Open vt-alt opened 2 months ago

vt-alt commented 2 months ago

You suggest to use contrib/edac-fake-inject to test rasdaemon but you do not package it into release tarball. Can you package it? This would be useful for users using tarballs to build rasdaemon (and also for downstream distributions that package from tarballs).

Perhaps, you just need to add it into EXTRA_DIST (and maybe other useful contrib scripts too).

vt-alt commented 2 months ago

ps. Btw, I also try to test it under qemu and it does not work:

root@x86_64:~/RPM/BUILD/rasdaemon-0.8.1# modprobe edac_core
[   25.735461] EDAC MC: Ver: 3.0.0
[   25.735926] EDAC DEBUG: edac_mc_sysfs_init: device mc created
root@x86_64:~/RPM/BUILD/rasdaemon-0.8.1# modprobe i7core_edac
[   56.616752] EDAC DEBUG: i7core_init:
root@x86_64:~/RPM/BUILD/rasdaemon-0.8.1# ls -la  /sys/devices/system/edac/mc /sys/kernel/debug/edac/
/sys/devices/system/edac/mc:
total 0
drwxr-xr-x 3 root root    0 Sep  1 04:22 .
drwxr-xr-x 4 root root    0 Sep  1 04:22 ..
drwxr-xr-x 2 root root    0 Sep  1 04:22 power
lrwxrwxrwx 1 root root    0 Sep  1 04:22 subsystem -> ../../../../bus/edac
-rw-r--r-- 1 root root 4096 Sep  1 04:22 uevent

/sys/kernel/debug/edac/:
total 0
drwxr-xr-x  2 root root 0 Sep  1 04:20 .
drwx------ 36 root root 0 Sep  1 04:20 ..
root@x86_64:~/RPM/BUILD/rasdaemon-0.8.1# ~/edac-fake-inject
ls: cannot access '/sys/devices/system/edac/mc/mc?': No such file or directory

pps. Well, perhaps it's not possible to test fake inject in VM.