[RAMEN9610-14887][common]wlbt: log moredump open/close
authorIvan Priest <i.priest@samsung.com>
Wed, 1 May 2019 17:31:03 +0000 (18:31 +0100)
committerKim Gunho <gunho.kim@samsung.com>
Fri, 28 Jun 2019 14:44:45 +0000 (23:44 +0900)
Log access to the moredump device node in kernel

Change-Id: If6ec2e41165063b978d7b3c18bfbced4c9277c69
SCSC-Bug-Id: SSB-52247
Signed-off-by: Ivan Priest <i.priest@samsung.com>
drivers/misc/samsung/scsc/mx_mmap.c

index a0c5722ecaa926bbf2ed80668f2a5c6620d9def2..72caddcddc01bb30dd96eacc35c1429c0a1f455f 100644 (file)
@@ -84,6 +84,8 @@ int mx_mmap_open(struct inode *inode, struct file *filp)
 
        dev = container_of(inode->i_cdev, struct mx_mmap_dev, cdev);
 
+       SCSC_TAG_INFO(MX_MMAP, "open %p\n", filp);
+
        filp->private_data = dev;
 
        return 0;
@@ -126,6 +128,8 @@ int mx_mmap_mmap(struct file *filp, struct vm_area_struct *vma)
 
 int mx_mmap_release(struct inode *inode, struct file *filp)
 {
+       SCSC_TAG_INFO(MX_MMAP, "close %p\n", filp);
+
        /* TODO : Unmap pfn_range */
        return 0;
 }
@@ -144,6 +148,8 @@ int mx_gdb_open(struct inode *inode, struct file *filp)
 
        mx_dev = container_of(inode->i_cdev, struct mx_mmap_dev, cdev);
 
+       SCSC_TAG_INFO(MX_MMAP, "open %p\n", filp);
+
        filp->private_data = mx_dev;
        mx_dev->filp = filp;
        ret = kfifo_alloc(&mx_dev->fifo, GDB_TRANSPORT_BUF_LENGTH, GFP_KERNEL);
@@ -258,6 +264,8 @@ int mx_gdb_release(struct inode *inode, struct file *filp)
 
        mx_dev = container_of(inode->i_cdev, struct mx_mmap_dev, cdev);
 
+       SCSC_TAG_INFO(MX_MMAP, "close %p\n", filp);
+
        if (mx_dev->filp == NULL) {
                SCSC_TAG_ERR(MX_MMAP, "Device already closed\n");
                return -EIO;