Mark Wielaard f586210
Subject: [PATCH] libdwfl: Handle LZMA .ko.xz compressed kernel modules.
Mark Wielaard f586210
Mark Wielaard f586210
Linux kernel modules can not just be compressed with gz and bz2, but also
Mark Wielaard f586210
with xz.
Mark Wielaard f586210
Mark Wielaard f586210
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Mark Wielaard f586210
Mark Wielaard f586210
diff --git a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c
Mark Wielaard f586210
index 1ad7d2f..e4065d8 100644
Mark Wielaard f586210
--- a/libdwfl/linux-kernel-modules.c
Mark Wielaard f586210
+++ b/libdwfl/linux-kernel-modules.c
Mark Wielaard f586210
@@ -302,6 +302,9 @@ check_suffix (const FTSENT *f, size_t namelen)
Mark Wielaard f586210
 #if USE_BZLIB
Mark Wielaard f586210
   TRY (".ko.bz2");
Mark Wielaard f586210
 #endif
Mark Wielaard f586210
+#if USE_LZMA
Mark Wielaard f586210
+  TRY (".ko.xz");
Mark Wielaard f586210
+#endif
Mark Wielaard f586210
 
Mark Wielaard f586210
   return 0;
Mark Wielaard f586210
 
Mark Wielaard f586210
-- 
Mark Wielaard f586210
1.8.3.1
Mark Wielaard f586210