diff options
author | Kirill Tkhai <tkhai@yandex.ru> | 2013-02-21 19:42:42 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 20:22:19 -0500 |
commit | 1b2643f0d09381ad504123809ff587bf6ab0ec7d (patch) | |
tree | 9deef7631d190476ac985675448d8c697aa20a54 | |
parent | af3b56289be1f65d5c9f28bb1775e01056a5a2de (diff) |
scripts/tags.sh: add ctags magic for declarations of popular kernel type
- Add magic for declarations of variables of popular kernel type like
spinlock_t, list_head, wait_queue_head_t and other.
- Add a set of specially handled declaration extentions like
__attribute, __aligned and other.
- Simplify pci_bus_* magic
Signed-off-by: Kirill V Tkhai <tkhai@yandex.ru>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rwxr-xr-x | scripts/tags.sh | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/scripts/tags.sh b/scripts/tags.sh index 08f06c00745e..65f9595acea9 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh | |||
@@ -149,12 +149,17 @@ dogtags() | |||
149 | exuberant() | 149 | exuberant() |
150 | { | 150 | { |
151 | all_target_sources | xargs $1 -a \ | 151 | all_target_sources | xargs $1 -a \ |
152 | -I __initdata,__exitdata,__acquires,__releases \ | 152 | -I __initdata,__exitdata,__initconst,__devinitdata \ |
153 | -I __read_mostly,____cacheline_aligned \ | 153 | -I __devinitconst,__cpuinitdata,__initdata_memblock \ |
154 | -I __refdata,__attribute \ | ||
155 | -I __acquires,__releases,__deprecated \ | ||
156 | -I __read_mostly,__aligned,____cacheline_aligned \ | ||
154 | -I ____cacheline_aligned_in_smp \ | 157 | -I ____cacheline_aligned_in_smp \ |
155 | -I ____cacheline_internodealigned_in_smp \ | 158 | -I ____cacheline_internodealigned_in_smp \ |
159 | -I __used,__packed,__packed2__,__must_check,__must_hold \ | ||
156 | -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \ | 160 | -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \ |
157 | -I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \ | 161 | -I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \ |
162 | -I static,const \ | ||
158 | --extra=+f --c-kinds=+px \ | 163 | --extra=+f --c-kinds=+px \ |
159 | --regex-asm='/^(ENTRY|_GLOBAL)\(([^)]*)\).*/\2/' \ | 164 | --regex-asm='/^(ENTRY|_GLOBAL)\(([^)]*)\).*/\2/' \ |
160 | --regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/' \ | 165 | --regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/' \ |
@@ -182,8 +187,19 @@ exuberant() | |||
182 | --regex-c++='/TESTCLEARFLAG_FALSE\(([^,)]*).*/TestClearPage\1/' \ | 187 | --regex-c++='/TESTCLEARFLAG_FALSE\(([^,)]*).*/TestClearPage\1/' \ |
183 | --regex-c++='/__TESTCLEARFLAG_FALSE\(([^,)]*).*/__TestClearPage\1/' \ | 188 | --regex-c++='/__TESTCLEARFLAG_FALSE\(([^,)]*).*/__TestClearPage\1/' \ |
184 | --regex-c++='/_PE\(([^,)]*).*/PEVENT_ERRNO__\1/' \ | 189 | --regex-c++='/_PE\(([^,)]*).*/PEVENT_ERRNO__\1/' \ |
185 | --regex-c='/PCI_OP_READ\(([a-z]*[a-z]).*[1-4]\)/pci_bus_read_config_\1/' \ | 190 | --regex-c='/PCI_OP_READ\((\w*).*[1-4]\)/pci_bus_read_config_\1/' \ |
186 | --regex-c='/PCI_OP_WRITE\(([a-z]*[a-z]).*[1-4]\)/pci_bus_write_config_\1/' | 191 | --regex-c='/PCI_OP_WRITE\((\w*).*[1-4]\)/pci_bus_write_config_\1/' \ |
192 | --regex-c='/DEFINE_(MUTEX|SEMAPHORE|SPINLOCK)\((\w*)/\2/v/' \ | ||
193 | --regex-c='/DEFINE_(RAW_SPINLOCK|RWLOCK|SEQLOCK)\((\w*)/\2/v/' \ | ||
194 | --regex-c='/DECLARE_(RWSEM|COMPLETION)\((\w*)/\2/v/' \ | ||
195 | --regex-c='/DECLARE_BITMAP\((\w*)/\1/v/' \ | ||
196 | --regex-c='/(^|\s)(|L|H)LIST_HEAD\((\w*)/\3/v/' \ | ||
197 | --regex-c='/(^|\s)RADIX_TREE\((\w*)/\2/v/' \ | ||
198 | --regex-c='/DEFINE_PER_CPU\(([^,]*,\s*)(\w*).*\)/\2/v/' \ | ||
199 | --regex-c='/DEFINE_PER_CPU_SHARED_ALIGNED\(([^,]*,\s*)(\w*).*\)/\2/v/' \ | ||
200 | --regex-c='/DECLARE_WAIT_QUEUE_HEAD\((\w*)/\1/v/' \ | ||
201 | --regex-c='/DECLARE_(TASKLET|WORK|DELAYED_WORK)\((\w*)/\2/v/' \ | ||
202 | --regex-c='/DEFINE_PCI_DEVICE_TABLE\((\w*)/\1/v/' | ||
187 | 203 | ||
188 | all_kconfigs | xargs $1 -a \ | 204 | all_kconfigs | xargs $1 -a \ |
189 | --langdef=kconfig --language-force=kconfig \ | 205 | --langdef=kconfig --language-force=kconfig \ |