[REFACTOR] rename sspt_page_*()
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Mon, 5 Aug 2013 15:58:34 +0000 (19:58 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Mon, 5 Aug 2013 15:58:34 +0000 (19:58 +0400)
functions:
sspt_page_is_install() --> sspt_page_is_installed()
sspt_page_installed() --> sspt_page_install()
sspt_page_uninstalled() --> sspt_page_uninstall()

us_manager/sspt/sspt_file.c
us_manager/sspt/sspt_page.c
us_manager/sspt/sspt_page.h

index 7407834..bb968ed 100644 (file)
@@ -173,7 +173,7 @@ int sspt_file_check_install_pages(struct sspt_file *file)
        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;
                        }
                }
index 38404a9..21dcde1 100644 (file)
@@ -120,7 +120,7 @@ int sspt_register_page(struct sspt_page *page, struct sspt_file *file)
 
        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",
@@ -142,7 +142,7 @@ int sspt_register_page(struct sspt_page *page, struct sspt_file *file)
                }
        }
 unlock:
-       sspt_page_installed(page);
+       sspt_page_install(page);
        spin_unlock(&page->lock);
 
        return 0;
@@ -156,7 +156,7 @@ int sspt_unregister_page(struct sspt_page *page,
        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;
        }
@@ -170,7 +170,7 @@ int sspt_unregister_page(struct sspt_page *page,
        }
 
        if (flag != US_DISARM) {
-               sspt_page_uninstalled(page);
+               sspt_page_uninstall(page);
        }
        spin_unlock(&page->lock);
 
index d62969d..64d2e01 100644 (file)
@@ -57,17 +57,17 @@ static inline void sspt_page_assert_install(const struct sspt_page *page)
        }
 }
 
-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;
 }