for (i = 0; i < table_size; ++i) {
head = &file->page_probes_table[i];
swap_hlist_for_each_entry_safe(page, node, tmp, head, hlist) {
- if (sspt_page_is_install(page)) {
+ if (sspt_page_is_installed(page)) {
return 1;
}
}
spin_lock(&page->lock);
- if (sspt_page_is_install(page)) {
+ if (sspt_page_is_installed(page)) {
struct task_struct *task = page->file->proc->task;
printk("page %lx in %s task[tgid=%u, pid=%u] already installed\n",
}
}
unlock:
- sspt_page_installed(page);
+ sspt_page_install(page);
spin_unlock(&page->lock);
return 0;
struct us_ip *ip;
spin_lock(&page->lock);
- if (!sspt_page_is_install(page)) {
+ if (!sspt_page_is_installed(page)) {
spin_unlock(&page->lock);
return 0;
}
}
if (flag != US_DISARM) {
- sspt_page_uninstalled(page);
+ sspt_page_uninstall(page);
}
spin_unlock(&page->lock);
}
}
-static inline int sspt_page_is_install(struct sspt_page *page)
+static inline int sspt_page_is_installed(struct sspt_page *page)
{
return page->install;
}
-static inline void sspt_page_installed(struct sspt_page *page)
+static inline void sspt_page_install(struct sspt_page *page)
{
page->install = 1;
}
-static inline void sspt_page_uninstalled(struct sspt_page *page)
+static inline void sspt_page_uninstall(struct sspt_page *page)
{
page->install = 0;
}