[REFACTOR] remove field 'dentry' from 'srtuct sspt_proc'
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Thu, 13 Jun 2013 13:43:23 +0000 (17:43 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Thu, 13 Jun 2013 13:51:56 +0000 (17:51 +0400)
us_manager/sspt/sspt_file.c
us_manager/sspt/sspt_proc.c
us_manager/sspt/sspt_proc.h

index b4a7f44..c1ca5ab 100644 (file)
@@ -276,12 +276,11 @@ int sspt_file_uninstall(struct sspt_file *file, struct task_struct *task, enum U
 void sspt_file_set_mapping(struct sspt_file *file, struct vm_area_struct *vma)
 {
        struct task_struct *task = file->proc->task;
-       int app_flag = (vma->vm_file->f_dentry == file->proc->dentry);
 
        file->vm_start = vma->vm_start;
        file->vm_end = vma->vm_end;
 
        ptr_pack_task_event_info(task, DYN_LIB_PROBE_ID, RECORD_ENTRY, "dspdd",
                                 task->tgid, file->name, vma->vm_start,
-                                vma->vm_end - vma->vm_start, app_flag);
+                                vma->vm_end - vma->vm_start, 0);
 }
index 2e75589..eb86f10 100644 (file)
@@ -55,7 +55,7 @@
 
 static LIST_HEAD(proc_probes_list);
 
-struct sspt_proc *sspt_proc_create(struct dentry* dentry, struct task_struct *task)
+struct sspt_proc *sspt_proc_create(struct task_struct *task)
 {
        struct sspt_proc *proc = kmalloc(sizeof(*proc), GFP_ATOMIC);
 
@@ -63,7 +63,6 @@ struct sspt_proc *sspt_proc_create(struct dentry* dentry, struct task_struct *ta
                INIT_LIST_HEAD(&proc->list);
                proc->tgid = task ? task->tgid : 0;
                proc->task = task;
-               proc->dentry = dentry;
                proc->sm = create_sm_us(task);
                proc->first_install = 0;
                INIT_LIST_HEAD(&proc->file_list);
@@ -107,7 +106,7 @@ struct sspt_proc *sspt_proc_get_new(struct task_struct *task)
 {
        struct sspt_proc *proc;
 
-       proc = sspt_proc_create(NULL, task);
+       proc = sspt_proc_create(task);
 
        return proc;
 }
@@ -163,7 +162,7 @@ void sspt_proc_add_ip_data(struct sspt_proc *proc, struct dentry* dentry,
 struct sspt_proc *sspt_proc_copy(struct sspt_proc *proc, struct task_struct *task)
 {
        struct sspt_file *file;
-       struct sspt_proc *proc_out = sspt_proc_create(proc->dentry, task);
+       struct sspt_proc *proc_out = sspt_proc_create(task);
 
        list_for_each_entry(file, &proc->file_list, list) {
                sspt_proc_add_file(proc_out, sspt_file_copy(file));
index 600d2d8..34f65e2 100644 (file)
@@ -40,14 +40,13 @@ struct sspt_proc {
        struct list_head list;
        pid_t tgid;
        struct task_struct *task;
-       struct dentry *dentry;
        struct slot_manager *sm;
        struct list_head file_list;
        unsigned first_install:1;
 };
 
 
-struct sspt_proc *sspt_proc_create(struct dentry* dentry, struct task_struct *task);
+struct sspt_proc *sspt_proc_create(struct task_struct *task);
 struct sspt_proc *sspt_proc_copy(struct sspt_proc *proc, struct task_struct *task);
 void sspt_proc_free(struct sspt_proc *proc);