[REFACTOR] new interface at install_file_probes()
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Tue, 7 May 2013 13:26:22 +0000 (17:26 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Tue, 7 May 2013 13:32:18 +0000 (17:32 +0400)
-void install_file_probes(struct task_struct *task, struct mm_struct *mm,
                          struct sspt_file *file)
+void install_file_probes(struct sspt_file *file)

driver/us_proc_inst.c

index 43c3180..4cf1d50 100644 (file)
@@ -369,7 +369,7 @@ void install_page_probes(unsigned long page_addr, struct task_struct *task, stru
        mm_read_unlock(mm, atomic, lock);
 }
 
-static void install_file_probes(struct task_struct *task, struct mm_struct *mm, struct sspt_file *file)
+static void install_file_probes(struct sspt_file *file)
 {
        struct sspt_page *page = NULL;
        struct hlist_node *node = NULL;
@@ -403,7 +403,7 @@ void install_proc_probes(struct task_struct *task, struct sspt_procs *procs)
                                        file->loaded = 1;
                                }
 
-                               install_file_probes(task, mm, file);
+                               install_file_probes(file);
                        }
                }
        }