scripts/tags.sh: add regular expression replacement pattern for memcg
authorJianyu Zhan <nasa4836@gmail.com>
Tue, 13 May 2014 13:26:53 +0000 (21:26 +0800)
committerMichal Marek <mmarek@suse.cz>
Wed, 14 May 2014 11:43:05 +0000 (13:43 +0200)
Currently, while using ctags to read code, we would get stumbled on
PageCgroup* symbols: no definition found. And it is quite dull to
manually dig it out.

This patch adds regular expression replacement pattern for such symbols,
like what have done for the PageXXX flag. It will teach ctags to find
out the definition for us.

Signed-off-by: Jianyu Zhan <nasa4836@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/tags.sh

index 6db551e07498b62c0f8a746c5868ff342d1da845..1c50de8202896fcfd8706e2ef28a741afbbddbd2 100755 (executable)
@@ -190,6 +190,10 @@ exuberant()
        --regex-c++='/TESTCLEARFLAG_FALSE\(([^,)]*).*/TestClearPage\1/' \
        --regex-c++='/__TESTCLEARFLAG_FALSE\(([^,)]*).*/__TestClearPage\1/' \
        --regex-c++='/_PE\(([^,)]*).*/PEVENT_ERRNO__\1/'                \
+       --regex-c++='/TESTPCGFLAG\(([^,)]*).*/PageCgroup\1/'            \
+       --regex-c++='/SETPCGFLAG\(([^,)]*).*/SetPageCgroup\1/'          \
+       --regex-c++='/CLEARPCGFLAG\(([^,)]*).*/ClearPageCgroup\1/'      \
+       --regex-c++='/TESTCLEARPCGFLAG\(([^,)]*).*/TestClearPageCgroup\1/' \
        --regex-c='/PCI_OP_READ\((\w*).*[1-4]\)/pci_bus_read_config_\1/' \
        --regex-c='/PCI_OP_WRITE\((\w*).*[1-4]\)/pci_bus_write_config_\1/' \
        --regex-c='/DEFINE_(MUTEX|SEMAPHORE|SPINLOCK)\((\w*)/\2/v/'     \
@@ -248,6 +252,10 @@ emacs()
        --regex='/__CLEARPAGEFLAG_NOOP(\([^,)]*\).*/__ClearPage\1/' \
        --regex='/TESTCLEARFLAG_FALSE(\([^,)]*\).*/TestClearPage\1/' \
        --regex='/__TESTCLEARFLAG_FALSE(\([^,)]*\).*/__TestClearPage\1/' \
+       --regex='/TESTPCGFLAG\(([^,)]*).*/PageCgroup\1/'        \
+       --regex='/SETPCGFLAG\(([^,)]*).*/SetPageCgroup\1/'      \
+       --regex='/CLEARPCGFLAG\(([^,)]*).*/ClearPageCgroup\1/'  \
+       --regex='/TESTCLEARPCGFLAG\(([^,)]*).*/TestClearPageCgroup\1/' \
        --regex='/_PE(\([^,)]*\).*/PEVENT_ERRNO__\1/'           \
        --regex='/PCI_OP_READ(\([a-z]*[a-z]\).*[1-4])/pci_bus_read_config_\1/' \
        --regex='/PCI_OP_WRITE(\([a-z]*[a-z]\).*[1-4])/pci_bus_write_config_\1/'\