swap_driver-y := error_storage.o device_driver.o ec.o legacy.o module.o probes.o \
probes_manager.o storage.o us_proc_inst.o helper.o us_slot_manager.o \
sspt/ip.o sspt/sspt_page.o sspt/sspt_file.o sspt/sspt_proc.o \
- filters/filters_core.o filters/filter_by_pach.o us_def_handler.o \
+ filters/filters_core.o filters/filter_by_path.o us_def_handler.o \
ks_def_handler.o
/*
* Dynamic Binary Instrumentation Module based on KProbes
- * modules/driver/filters/filter_by_pach.c
+ * modules/driver/filters/filter_by_path.c
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
return 0;
}
-static int init_by_pach(void *data, size_t size)
+static int init_by_path(void *data, size_t size)
{
if (dentry) {
return -EPERM;
return 0;
}
-static void uninit_by_pach(void)
+static void uninit_by_path(void)
{
dentry = NULL;
}
-static struct task_struct *call_by_pach(struct task_struct *task)
+static struct task_struct *call_by_path(struct task_struct *task)
{
if (dentry && check_dentry(task, dentry))
return task;
}
static struct task_filter ts_filter = {
- .init = init_by_pach,
- .uninit = uninit_by_pach,
- .call = call_by_pach
+ .init = init_by_path,
+ .uninit = uninit_by_path,
+ .call = call_by_path
};
-struct task_filter *get_filter_by_pach(void)
+struct task_filter *get_filter_by_path(void)
{
return &ts_filter;
}
/*
* Dynamic Binary Instrumentation Module based on KProbes
- * modules/driver/filters/filter_by_pach.h
+ * modules/driver/filters/filter_by_path.h
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
struct task_filter;
-struct task_filter *get_filter_by_pach(void);
+struct task_filter *get_filter_by_path(void);
#endif /* _FILTER_BY_PACH_H */
#include "sspt/sspt.h"
#include "filters/filters_core.h"
-#include "filters/filter_by_pach.h"
+#include "filters/filter_by_path.h"
#include "helper.h"
#include "us_slot_manager.h"
DPRINTF("User space instr");
- ret = register_filter(app_filter, get_filter_by_pach());
+ ret = register_filter(app_filter, get_filter_by_path());
if (ret)
return ret;