diff options
author | Vasiliy Ulyanov <v.ulyanov@samsung.com> | 2014-06-04 12:15:29 +0400 |
---|---|---|
committer | Alexander Aksenov <a.aksenov@samsung.com> | 2015-02-24 11:18:31 +0300 |
commit | 53219c8d66c0f7e20b752e5099c897895733251a (patch) | |
tree | e0460c422148b7c939123164f837d6f4790c68a5 | |
parent | 3ee21298d5198e52f30894be766569baf4870985 (diff) | |
download | swap-modules-53219c8d66c0f7e20b752e5099c897895733251a.tar.gz swap-modules-53219c8d66c0f7e20b752e5099c897895733251a.tar.bz2 swap-modules-53219c8d66c0f7e20b752e5099c897895733251a.zip |
[IMPROVE] Add uprobe_ops registration
Change-Id: Ia128d1f2ce2ce9a8510703420fd0dca18adc41fa
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
-rw-r--r-- | us_manager/sspt/ip.c | 2 | ||||
-rw-r--r-- | us_manager/sspt/ip.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/us_manager/sspt/ip.c b/us_manager/sspt/ip.c index 0a46b33c..3e87d80e 100644 --- a/us_manager/sspt/ip.c +++ b/us_manager/sspt/ip.c @@ -23,11 +23,13 @@ */ #include <linux/slab.h> +#include <linux/module.h> #include "ip.h" #include "sspt_page.h" #include "sspt_file.h" #include <us_manager/probes/use_probes.h> + /** * @brief Create us_ip struct * diff --git a/us_manager/sspt/ip.h b/us_manager/sspt/ip.h index 30cee3cc..27737ce4 100644 --- a/us_manager/sspt/ip.h +++ b/us_manager/sspt/ip.h @@ -48,6 +48,7 @@ struct us_ip { }; }; +#define to_us_ip(rp) container_of(rp, struct us_ip, retprobe) struct us_ip *create_ip(unsigned long offset, const struct probe_info *probe_i); void free_ip(struct us_ip *ip); |