Skip to contentSkip to conversation

s390: SCSI dump kernel and userspace application

RFC PATCH New Michael Holzheu 1 participant 1 message Feb 21, 2007 s390

lore
Share & tools
lore
#0 lore raw

RFC PATCH 2/2 s390: SCSI dump kernel and userspace application

Userspace part of the s390 SCSI dumper.

---
 arch/s390/Makefile                    |    4 
 arch/s390/zfcpdump/Makefile           |    5 
 arch/s390/zfcpdump/defconfig.zfcpdump |  467 ++++++++++++++++
 arch/s390/zfcpdump/initramfs.txt      |    6 
 arch/s390/zfcpdump/zfcpdump.c         |  953 ++++++++++++++++++++++++++++++++++
 arch/s390/zfcpdump/zfcpdump.h         |  214 +++++++
 6 files changed, 1649 insertions(+)
arch/s390/Makefile +4 -0
Index: git-linux-2.6/arch/s390/Makefile
===================================================================
@@ -94,6 +94,7 @@ drivers-$(CONFIG_MATHEMU) += arch/$(ARCH
 drivers-$(CONFIG_OPROFILE)	+= arch/s390/oprofile/
 
 boot		:= arch/$(ARCH)/boot
+zfcpdump	:= arch/s390/zfcpdump
 
 all: image
 
@@ -103,6 +104,9 @@ install: vmlinux
 image: vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
 
+zfcpdump:
+	$(Q)$(MAKE) $(build)=$(zfcpdump) $(zfcpdump)/$@
+
 archclean:
 	$(Q)$(MAKE) $(clean)=$(boot)
 
arch/s390/zfcpdump/Makefile new file +5 -0
Index: git-linux-2.6/arch/s390/zfcpdump/Makefile
===================================================================
@@ -0,0 +1,5 @@
+targets := zfcpdump
+
+$(obj)/zfcpdump: arch/s390/zfcpdump/zfcpdump.c arch/s390/zfcpdump/zfcpdump.h
+	$(CC) -Wall -o $(obj)/zfcpdump $(obj)/zfcpdump.c -static
+
arch/s390/zfcpdump/defconfig.zfcpdump new file +467 -0

467 lines not on this page · raw message

arch/s390/zfcpdump/initramfs.txt new file +6 -0
Index: git-linux-2.6/arch/s390/zfcpdump/initramfs.txt
===================================================================
@@ -0,0 +1,6 @@
+dir /dev 755 0 0
+nod /dev/console 644 0 0 c 5 1
+file /init arch/s390/zfcpdump/zfcpdump 755 0 0
+dir /proc 755 0 0
+dir /sys 755 0 0
+dir /mnt 755 0 0
arch/s390/zfcpdump/zfcpdump.c new file +953 -0

953 lines not on this page · raw message

arch/s390/zfcpdump/zfcpdump.h new file +214 -0

214 lines not on this page · raw message