]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ieee1394: dump mmapped iso buffers in core files
authorPhilippe De Muyter <phdm@macqel.be>
Thu, 3 Jul 2008 16:52:28 +0000 (18:52 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Mon, 14 Jul 2008 11:06:02 +0000 (13:06 +0200)
Currently, core files do not contain the mmapped memory of the video1394
or dv1394 devices, which contain the actual video input, making it
impossible to analyse the cause of abnormal program termination for
image analysis or (de)compression software.  Fix that.

Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Also affects users of the rawiso ioctl API of raw1394.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/dma.c

index 73685e7dc7e4c9e6acea24c454e737686768b7e3..1aba8c13fe8fb87b8c04337df31ed28bb6d1afc3 100644 (file)
@@ -274,7 +274,7 @@ int dma_region_mmap(struct dma_region *dma, struct file *file,
        vma->vm_ops = &dma_region_vm_ops;
        vma->vm_private_data = dma;
        vma->vm_file = file;
-       vma->vm_flags |= VM_RESERVED;
+       vma->vm_flags |= VM_RESERVED | VM_ALWAYSDUMP;
 
        return 0;
 }