From 97ff2e504bbecfd960ac672fc5d6efff0f3bb781 Mon Sep 17 00:00:00 2001 From: Vasiliy Ulyanov Date: Wed, 4 Jun 2014 12:15:29 +0400 Subject: [PATCH] [IMPROVE] Add uprobe_ops registration Change-Id: I165a8d4fd115c5d24800a091a1600a1b81d13bb2 Signed-off-by: Vasiliy Ulyanov --- us_manager/sspt/ip.c | 2 +- us_manager/sspt/sspt_proc.c | 1 + us_manager/sspt/sspt_proc.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/us_manager/sspt/ip.c b/us_manager/sspt/ip.c index 3e87d80..6e85c87 100644 --- a/us_manager/sspt/ip.c +++ b/us_manager/sspt/ip.c @@ -29,10 +29,10 @@ #include "sspt_file.h" #include - /** * @brief Create us_ip struct * + * @param page User page * @param offset Function offset from the beginning of the page * @param probe_i Pointer to the probe data. * @return Pointer to the created us_ip struct diff --git a/us_manager/sspt/sspt_proc.c b/us_manager/sspt/sspt_proc.c index baa0968..f6a6fc0 100644 --- a/us_manager/sspt/sspt_proc.c +++ b/us_manager/sspt/sspt_proc.c @@ -103,6 +103,7 @@ struct sspt_proc *sspt_proc_create(struct task_struct *task, void *priv) proc->task = task->group_leader; proc->sm = create_sm_us(task); proc->first_install = 0; + proc->private_data = NULL; INIT_LIST_HEAD(&proc->file_list); INIT_LIST_HEAD(&proc->filter_list); diff --git a/us_manager/sspt/sspt_proc.h b/us_manager/sspt/sspt_proc.h index c83359b..c55bd34 100644 --- a/us_manager/sspt/sspt_proc.h +++ b/us_manager/sspt/sspt_proc.h @@ -51,6 +51,7 @@ struct sspt_proc { struct list_head filter_list; /**< Filter list */ unsigned first_install:1; /**< Install flag */ struct sspt_feature *feature; /**< Ptr to the feature */ + void *private_data; /**< Process private data */ }; -- 2.7.4