summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>2013-06-13 17:43:23 +0400
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>2013-06-13 17:51:56 +0400
commit86171178ebc6866f4390e0de1b966101cb37d93b (patch)
tree5f72073cbc916841bdb63f1547386c8a449141a1
parentaf2594a392e6b17307bdb0dd2ea41ed68f6d4de6 (diff)
downloadswap-modules-86171178ebc6866f4390e0de1b966101cb37d93b.tar.gz
swap-modules-86171178ebc6866f4390e0de1b966101cb37d93b.tar.bz2
swap-modules-86171178ebc6866f4390e0de1b966101cb37d93b.zip
[REFACTOR] remove field 'dentry' from 'srtuct sspt_proc'
-rw-r--r--us_manager/sspt/sspt_file.c3
-rw-r--r--us_manager/sspt/sspt_proc.c7
-rw-r--r--us_manager/sspt/sspt_proc.h3
3 files changed, 5 insertions, 8 deletions
diff --git a/us_manager/sspt/sspt_file.c b/us_manager/sspt/sspt_file.c
index b4a7f443..c1ca5abc 100644
--- a/us_manager/sspt/sspt_file.c
+++ b/us_manager/sspt/sspt_file.c
@@ -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);
}
diff --git a/us_manager/sspt/sspt_proc.c b/us_manager/sspt/sspt_proc.c
index 2e755898..eb86f10b 100644
--- a/us_manager/sspt/sspt_proc.c
+++ b/us_manager/sspt/sspt_proc.c
@@ -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));
diff --git a/us_manager/sspt/sspt_proc.h b/us_manager/sspt/sspt_proc.h
index 600d2d84..34f65e2e 100644
--- a/us_manager/sspt/sspt_proc.h
+++ b/us_manager/sspt/sspt_proc.h
@@ -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);