Merge branch 'dev' into kernel
[kernel/swap-modules.git] / driver / storage.c
index bde6cfa..b3f9e9e 100644 (file)
@@ -22,6 +22,8 @@
 #include <linux/spinlock.h>
 #include <linux/kernel.h>
 #include <linux/time.h>
+#include <ksyms.h>
+#include <dbi_kprobes_deps.h>
 #include "module.h"
 #include "storage.h"
 #include "handlers_core.h"
@@ -1128,13 +1130,6 @@ void pack_task_event_info(struct task_struct *task, probe_id_t probe_id,
                va_start(args, fmt);
                addr = get_probe_func_addr(fmt, args);
                va_end(args);
-               if( ((addr == pf_addr) && !(probes_flags & PROBE_FLAG_PF_INSTLD)) ||
-                   ((addr == cp_addr) && !(probes_flags & PROBE_FLAG_CP_INSTLD)) ||
-                   ((addr == mr_addr) && !(probes_flags & PROBE_FLAG_MR_INSTLD)) ||
-                   ((addr == unmap_addr) && !(probes_flags & PROBE_FLAG_UNMAP_INSTLD)) ||
-                   ((addr == exit_addr) && !(probes_flags & PROBE_FLAG_EXIT_INSTLD)) ) {
-                       return;
-               }
        }
        if (probe_id == US_PROBE_ID) {
                va_start(args, fmt);