06 Feb, 2014
1 commit
-
CONFIG_MODVERSIONS=y results in a .mod.c for every compiled file in the
kernel. Issuing a 'make cscope' on a compiled kernel tree results in
the cscope files containing *.mod.c files.[prarit@prarit linux]# make cscope
[prarit@prarit linux]# cat cscope.files | grep mod.c | wc -l
4807These files are not useful for cscope and should be ignored. For example,
# line filename / context / line
1 105 arch/x86/kvm/kvm-intel.mod.c <>
{ 0x618911fc, __VMLINUX_SYMBOL_STR(numa_node) },
2 508 drivers/block/mtip32xx/mtip32xx.h <>
int numa_node;
3 55 drivers/block/mtip32xx/mtip32xx.mod.c <>
{ 0x618911fc, __VMLINUX_SYMBOL_STR(numa_node) },
4 37 drivers/cpufreq/acpi-cpufreq.mod.c <>
{ 0x618911fc, __VMLINUX_SYMBOL_STR(numa_node) },
Add an export to RCS_FIND_IGNORE so it can be used in scripts/tags.sh
and add explicitly ignore *.mod.c files.Signed-off-by: Prarit Bhargava
Cc: Andrew Morton
Cc: Kirill Tkhai
Cc: Michael Opdenacker
Cc: Rusty Russell
Signed-off-by: Michal Marek
08 Nov, 2013
1 commit
-
This removes the use of __devinitconst and __devinitdata in scripts/tags.sh,
which were removed in 3.8.Signed-off-by: Michael Opdenacker
Cc: Michal Marek
Signed-off-by: Andrew Morton
Signed-off-by: Michal Marek
23 Oct, 2013
1 commit
-
Add __maybe_unused
__always_unused
__cacheline_aligned
__cacheline_aligned_in_smp
ACPI_EXPORT_SYMBOL
to the list.Signed-off-by: Kirill Tkhai
Signed-off-by: Andrew Morton
Signed-off-by: Michal Marek
27 Mar, 2013
1 commit
-
Add rules for definitions which is generally used in asm-offsets files.
Signed-off-by: Kirill V Tkhai
CC: Michal Marek
CC: Andrew Morton
Signed-off-by: Michal Marek
28 Feb, 2013
1 commit
-
Pull misc non-critical kbuild changes from Michal Marek:
- Fix for make TAGS
- Fix for make rpm
- Some new coccinelle semantic patches
* 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
scripts/coccinelle: find constant additions that could be bit ors
coccicheck: Allow to show the executed command line
coccicheck: Allow the user to give a V= (verbose) argument
scripts/coccinelle/misc/memcpy-assign.cocci: Replace memcpy with struct assignment
kbuild: clear KBUILD_SRC when calling 'make' in RPM spec
scripts/coccinelle/misc/semicolon.cocci: Add unneeded semicolon test
scripts/tags.sh: Fix regex syntax for etags
22 Feb, 2013
1 commit
-
- 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
Cc: Michal Marek
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
14 Jan, 2013
1 commit
-
Signed-off-by: Andreas Schwab
Tested-by: Jesper Juhl
Signed-off-by: Michal Marek
11 Dec, 2012
2 commits
-
We usually have interst in compiled files only,
because they are strongly related to individual's work.
Current tags.sh can't select compiled files, so support it.We can use this functionality like below.
"make cscope O=. SRCARCH=xxxx COMPILED_SOURCE=compiled"It must be executed after building the kernel.
Signed-off-by: Joonsoo Kim
Signed-off-by: Michal Marek -
Current tags.sh doesn't handle subarch for ARM.
There are too many subarch on ARM, it is hard that we locate some
functions which are defined in every subarch with tags util family.
Therefore support subarch for removing this unconvenience.We can use ARM subarch functionality like below.
"make cscope O=. SRCARCH=arm SUBARCH=xxx"Signed-off-by: Joonsoo Kim
Signed-off-by: Michal Marek
31 Aug, 2012
1 commit
-
scripts/tags.sh: Add magic for pci access functions
Make [ce]tags find the pci_bus_read_config_* and pci_bus_write_config_*
definitionsSigned-off-by: Kirill Tkhai
Signed-off-by: Michal Marek
26 Jul, 2012
1 commit
-
As we use a macro trick to sync each error codes with its
description string, teach [ce]tags to process them properly.Suggested-by: Steven Rostedt
Cc: Frederic Weisbecker
Link: http://lkml.kernel.org/n/tip-qt5fv4pzigr2nnl27ydimg4h@git.kernel.org
Signed-off-by: Namhyung Kim
Acked-by: Steven Rostedt
Signed-off-by: Michal Marek
02 Apr, 2012
1 commit
-
When $remove_structs is empty a test for empty string will turn
into test -n with no arguments meaning true. Add quotes so an
empty string is tested and so that make cscope works again.Reported-and-tested-by: Jike Song
Reported-by: Prarit Bhargava
Acked-by: Yang Bai
Signed-off-by: Stephen Boyd
Signed-off-by: Michal Marek
27 Mar, 2012
1 commit
-
Since now it has some problems when generate TAGS,
refactor this code. Now it will not show the error
message and will remove declarations using emacs etags.Signed-off-by: Yang Bai
Reviewed-by: Stephen Boyd
Signed-off-by: Michal Marek
26 Mar, 2012
1 commit
-
GNU gtags support '-i' for updating tag files incrementally.
It runs more quickly than generating new tags after kernel source update.Signed-off-by: Jianbin Kang
Signed-off-by: Michal Marek
19 Dec, 2011
1 commit
-
They're quite pointless and obscure location of real structure definition.
Signed-off-by: Alexey Dobriyan
Signed-off-by: Michal Marek
15 Nov, 2011
1 commit
-
It takes a while to find the macro-magically defined Page*()
functions defined in include/linux/page-flags.h if you're new to
the kernel. Add some magic to the tags script to transform these
macros into the actual functions they are, so that tag jumping in
the mm code is a bit easier.Signed-off-by: Stephen Boyd
Signed-off-by: Michal Marek
31 Aug, 2011
1 commit
-
On PowerPC we use _GLOBAL throughout the assembly to define symbols, but
currently these symbols are missing from the tags generated with
ARCH=powerpc make tags. This patch modifies the tags.sh script to
recognise _GLOBAL(.*) so that these symbols will be in the tags.This is almost (but not quite) PowerPC specific and this change should
not affect anyone else:$ git grep -E '^_GLOBAL\(([^)]*)\).*' |sed 's/^\([^/]*\/[^/]*\)\/.*$/\1/'|uniq -c
627 arch/powerpc
2 arch/umSigned-off-by: Ian Munsie
Signed-off-by: Michal Marek
26 May, 2011
2 commits
-
Seems that Peter Zijlstra treats us emacs users as second class
citizens and the commit:commit 15664125f7cadcb6d725cb2d9b90f9715397848d
Author: Peter Zijlstra
scripts/tags.sh: Add magic for trace-eventsonly updated ctags (for vim) and did not do the work to let us
lowly emacs users benefit from such a change.Cc: Peter Zijlstra
Signed-off-by: Steven Rostedt -
The regex to handle DEFINE_EVENT() should not be the same as
the TRACE_EVENT() as the first parameter in DEFINE_EVENT is the
template name, not the event name. We need the second parameter
as that is what the trace_... will use.Tested-by: Peter Zijlstra
Signed-off-by: Steven Rostedt
21 Mar, 2011
1 commit
-
* 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6:
scripts/extract-ikconfig: add xz compression support
kbuild: add GNU GLOBAL tags generation
setlocalversion: update mercurial tag parsing
15 Jan, 2011
1 commit
-
GNU GLOBAL (http://www.gnu.org/software/global/) is a source code tagging system
It is really cheap to support it in kbuild system.Signed-off-by: Jianbin Kang
Signed-off-by: Michal Marek
11 Jan, 2011
1 commit
-
* 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6:
Documentation/kbuild: add info that 'choice' can have a symbol name
kbuild: add numeric --set-val option to scripts/config
headers_check: Fix warning text
headers_check: better search for functions in headers
scripts/coccinelle: update for compatability with Coccinelle 0.2.4
tags: put function prototypes back!
Kconfig: fix single letter command in scripts/config
gitignore: add scripts/recordmcount
02 Dec, 2010
2 commits
-
Make tags find the trace-event definitions
Acked-by: WANG Cong
Signed-off-by: Peter Zijlstra
LKML-Reference:
Signed-off-by: Steven Rostedt -
Commit 7db86dc (ctags: usability fix) removed function prototypes from
tags file claiming "It makes no real sense to include function
prototypes".
But it is useful for quickly determining which header file developer
needs to include to fix compilation.Now if someone wants to remove forward declarations (which I agree are
baggage), write a postprocessing script.Signed-off-by: Alexey Dobriyan
Signed-off-by: Uwe Kleine-König
Signed-off-by: Michal Marek
08 Mar, 2010
1 commit
-
This reverts commit eb8f844c0a41c4529a7d06b7801296eca9ae67aa. Ian
Campbell writes:
> I keep my kernel source tree on a more powerful build box where I run my
> builds etc (including "make cscope") but run my editor from my
> workstation with an NFS mount to the source. This worked fine for me
> using relative paths for cscope. Using absolute paths in cscope breaks
> this previously working setup because the root path is not the same on
> both systems. I guess this is similar to moving the source tree around.
>
> Without wanting to start a flamewar it really sounds to me like we are
> working around a vim (or cscope) bug here, emacs with cscope bindings
> works fine in this configuration.Given that absolute paths can be forced by make O=. cscope, change the
default back to relative paths.Ian Campbell
Cc: Daniel Vetter
Signed-off-by: Michal Marek
03 Mar, 2010
2 commits
-
make ALLSOURCE_ARCHS=all tags
- Document this in kbuild.txt
Without this change you have to type each arch separately.Signed-off-by: John Kacur
Signed-off-by: Michal Marek -
Signed-off-by: John Kacur
Signed-off-by: Michal Marek
22 Feb, 2010
1 commit
-
$ make mrproper
$ make tags
GEN tags
find: `arch/x86_64/': No such file or directoryCaused by commit f81b1be (tags: include headers before source files)
Cc: Guennadi Liakhovetski
Acked-by: WANG Cong
Signed-off-by: Michal Marek
17 Feb, 2010
1 commit
-
Currently looking up a structure definition in TAGS / tags takes one to
one of multiple "static struct X" definitions in arch sources, which makes
it for many structs practically impossible to get to the required header.
This patch changes the order of sources being tagged to first scan
architecture includes, then the top-level include/ directory, and only
then the rest. It also takes into account, that many architectures have
more than one include directory, i.e., not only arch/$ARCH/include, but
also arch/$ARCH/mach-X/include etc.Signed-off-by: Guennadi Liakhovetski
Reviewed-by: WANG Cong
[mmarek@suse.cz: fix 'var+=text' bashism]
Signed-off-by: Michal Marek
12 Dec, 2009
1 commit
-
Cscope doesn't hadle relative paths when cscope.out is not in $PWD. Use
absolute paths when generating cscope.files, which seems to be the
recommended way to generate cscope.out, anyway (at least according to
cscope.sf.net). The speed and size differences are minimal, the only
drawback is that the database needs to be regenerated if the source
directory is moved.[mmarek: fixed for O= builds, modified changelog]
Signed-off-by: Daniel Vetter
Signed-off-by: Michal Marek
20 Sep, 2009
1 commit
-
The tag file generated by the tags.sh script has some issue.
First:
The identifier-list miss the
DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL
special handling, which can result in a wrong tag, not to jump to the
right variable definition or function implementation.Second:
It makes no real sense to include function prototypes and external and
forward variable declarations, because jumping to a tag will sometimes
go to this and not to the real definition and implementation. The information
about the declaration is still there at the definition and implementation
place.So this patch make it lot easier to navigate through the kernel source
tree using vi.Signed-off-by: Stefani Seibold
Acked-by: WANG Cong
Signed-off-by: Andrew Morton
Signed-off-by: Sam Ravnborg
01 May, 2009
1 commit
-
If a tag file is not removed before it is regenerated, the newly
generated data is appended to the old, which preserves stale data and
makes the tag file grow over time.Signed-off-by: Matt Kraai
Signed-off-by: Sam Ravnborg
15 Feb, 2009
2 commits
-
Currently, it is no longer possible to use the tags file to jump to
system call function definitions with sys_foo, because the definitions
are obscured by use of the SYSCALL_DEFINE* macros.This patch adds the appropriate option to ctags to make it see through
the macro. Also, it adds the ENTRY() work already done for Exuberant
to Emacs too.Signed-off-by: Rabin Vincent
Signed-off-by: Sam Ravnborg -
commit 4f628248a578585472e19e4cba2c604643af8c6c aka "kbuild: reintroduce
ALLSOURCE_ARCHS support for tags/cscope" breaks tags generation for
Kconfig symbols.Steps to reproduce:
make tags
vi -t PROC_FSIt should jump to 'config PROC_FS' line.
Signed-off-by: Alexey Dobriyan
Tested-by: Pete Wyckoff
Signed-off-by: Andrew Morton
Signed-off-by: Sam Ravnborg
08 Jan, 2009
1 commit
-
This patch reintroduce the ALLSOURCE_ARCHS support for tags/TAGS/
cscope targets. The Kbuild previously has this feature, but after
moving the targets into scripts/tags.sh, ALLSOURCE_ARCHS disappears.It's something like this:
$ make ALLSOURCE_ARCHS="x86 mips arm" tags cscope
Signed-off-by: Jike Song
Signed-off-by: Sam Ravnborg
03 Jan, 2009
1 commit
-
Noticed by Jike.
Reported-by: "Jike Song"
Signed-off-by: Sam Ravnborg
14 Dec, 2008
2 commits
-
Test of string equality in shells is =, not C-like ==.
Signed-off-by: Jiri Slaby
Signed-off-by: Sam Ravnborg -
- fix combining O=... and tags
- don't allow * expansion during sh function callsSigned-off-by: Jiri Slaby
[sam: use KBUILD_SRC to check if we use O=...]
Signed-off-by: Sam Ravnborg
04 Dec, 2008
1 commit
-
as they do not benefit from the make functionality.
Moving the support to a shell script has several benefits:
- The readability of the code has increased a lot
- More people is able to extend the tags support
- We see less changes to the top-level MakefileThe shell script version includes improvements from:
Alexey Dobriyan (jump to kconfig symbols)
Alexey Dobriyan (drop ./ in paths)
Ian Campbell (simplified find algorithms)This version has a few caveats:
=> It does not support ALLSOURCE_ARCHS
- it is easy to add if it is really used
=> It assumes all archs have moved to arch/$ARCH/include
- until that happens we have a few additional hits in the archsSigned-off-by: Sam Ravnborg
Cc: Alexey Dobriyan
Tested-by: Ian Campbell