[CLEAN] remove unused legacy code 62/58962/1
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Fri, 29 Jan 2016 14:25:16 +0000 (17:25 +0300)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Fri, 5 Feb 2016 09:30:54 +0000 (12:30 +0300)
Change-Id: Icf3569d9bcec1acfbe92e3cc245b9cdc69ab7714
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
kprobe/swap_kprobes.c
kprobe/swap_kprobes.h
uprobe/swap_uprobes.c

index 74cb898..77531e1 100644 (file)
@@ -546,12 +546,6 @@ int swap_register_kprobe(struct kprobe *p)
        p->addr = (kprobe_opcode_t *)(((char *)p->addr) + p->offset);
        DBPRINTF("p->addr = 0x%p p = 0x%p\n", p->addr, p);
 
-#ifdef KPROBES_PROFILE
-       p->start_tm.tv_sec = p->start_tm.tv_usec = 0;
-       p->hnd_tm_sum.tv_sec = p->hnd_tm_sum.tv_usec = 0;
-       p->count = 0;
-#endif
-       p->mod_refcounted = 0;
        p->nmissed = 0;
        INIT_LIST_HEAD(&p->list);
 
index 144368a..303dfdb 100644 (file)
@@ -124,8 +124,6 @@ struct kprobe {
        struct hlist_node                               is_hlist;
        /** List of kprobes for multi-handler support.*/
        struct list_head                                list;
-       /** Indicates that the corresponding module has been ref counted.*/
-       unsigned int                                    mod_refcounted;
        /** Count the number of times this probe was temporarily disarmed.*/
        unsigned long                                   nmissed;
        /** Location of the probe point. */
index 877dafe..2cfcf7a 100644 (file)
@@ -502,11 +502,6 @@ int swap_register_uprobe(struct uprobe *p)
 
        p->ainsn.insn = NULL;
        INIT_LIST_HEAD(&p->list);
-#ifdef KPROBES_PROFILE
-       p->start_tm.tv_sec = p->start_tm.tv_usec = 0;
-       p->hnd_tm_sum.tv_sec = p->hnd_tm_sum.tv_usec = 0;
-       p->count = 0;
-#endif
 
        /* get the first item */
        old_p = get_uprobe(p->addr, p->task->tgid);