1. 13 Apr, 2018 1 commit
  2. 11 Oct, 2016 1 commit
  3. 02 Sep, 2016 1 commit
  4. 26 Jul, 2016 1 commit
  5. 18 Feb, 2016 1 commit
  6. 16 Jan, 2016 1 commit
  7. 05 Jan, 2016 6 commits
    • Michal Marek's avatar
      tags: Unify emacs and exuberant rules · 93209d65
      Michal Marek authored
      The emacs rules were constantly lagging behind the exuberant ones. Use a
      single set of rules for both, to make the script easier to maintain.
      The language understood by both tools is basic regular expression with
      some limitations, which are documented in a comment. To be able to store
      the rules in an array and easily iterate over it, the script requires
      bash now. In the exuberant case, the change fixes some false matches in
      <linux/page-flags.h> and also some too greedy matches in the arguments
      of the DECLARE_*/DEFINE_* macros. In the emacs case, several previously
      not working rules are matching now. Tested with these versions of the
      tools:
      
        Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
        etags (GNU Emacs 24.5)
      Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
      93209d65
    • Michal Marek's avatar
      tags: Drop the _PE rule · a1ccdb63
      Michal Marek authored
      We are not indexing the userspace tools, so the rules only match some
      false positives in the kernel code.
      Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
      a1ccdb63
    • Michal Marek's avatar
      tags: Do not try to index defconfigs · ab9ca615
      Michal Marek authored
      The defconfig files are in predictable locations, so there is no need to
      index them. Plus, the script was only looking for files named
      'defconfig', which only works on a few architectures nowadays.
      Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
      ab9ca615
    • Michal Marek's avatar
      tags: Process Kconfig files in a single pass · a281b856
      Michal Marek authored
      Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
      a281b856
    • Michal Marek's avatar
      tags: Fix erroneous pattern match in a comment · c26206f2
      Michal Marek authored
      Apparently, ctags applies the rules before deleting comments:
      
      ctags: Warning: include/linux/completion.h:22: null expansion of name pattern "\2"
      
      Work around this particular case by requiring the group to contain at
      least one character. Leave the other patters as they are, until a better
      solution is found.
      Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
      c26206f2
    • Michal Marek's avatar
      tags: Treat header files as C code · d2fb5aed
      Michal Marek authored
      This allows to apply the same patters to both source and header files.
      The effect is mostly visible in the case of DECLARE_BITMAP, but there
      are small gains all over the place. There is also lots of random changes
      in the diff, I believe this is simply because there are still lots of
      unexpanded macros in the code and the C and C++ parsers fail and recover
      at different points. Also, qconf.h is parsed as C, but that's a
      negligible regression.
      Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
      d2fb5aed
  8. 20 Nov, 2015 1 commit
  9. 13 Oct, 2015 1 commit
  10. 19 Aug, 2015 1 commit
  11. 16 Jun, 2015 1 commit
  12. 25 Sep, 2014 1 commit
  13. 19 Aug, 2014 3 commits
  14. 08 Aug, 2014 1 commit
  15. 10 Jun, 2014 1 commit
  16. 09 Jun, 2014 1 commit
    • Yann Droneaud's avatar
      scripts/tags.sh: ignore symlink'ed source files · 9b24a15d
      Yann Droneaud authored
      Since commit 22d651dc ('selftests/powerpc:
      Import Anton's memcpy / copy_tofrom_user tests'), some source files in the
      tree appear as symlink.
      Until commit 8c38a532 ('scripts/tags.sh:
      ignore code of user space tools'), those symlinks made cscope report some
      warnings:
      
          $ make ALLSOURCE_ARCHS=all O=./obj-cscope/ cscope
            GEN     cscope
          cscope: cannot find
      file .../tools/testing/selftests/powerpc/copyloops/copyuser_power7.S
          cscope: cannot find
      file .../tools/testing/selftests/powerpc/copyloops/memcpy_64.S
          cscope: cannot find
      file .../tools/testing/selftests/powerpc/copyloops/memcpy_power7.S
          cscope: cannot find
      file .../tools/testing/selftests/powerpc/copyloops/copyuser_64.S
      
      In order to prevent the same kind of warnings to be triggered by future
      addition of symlinks, the best option is to ignore all symlinks when
      building the file list to be processed by cscope (and other tools
      supported by scripts/tags.sh).
      
      Ignoring symlinks won't hide source files from cscope (and others) as the
      target of these symlinks already appear somewhere else in the tree, and,
      as such, should be processed by cscope (or others).
      
      Note that, cscope, when used with -R option to make it find the files to
      process by itself, already skip symlinks: it's not expected that cscope
      access source files through symlink.
      
      On top of commit 8c38a532 ('scripts/tags.sh:
      ignore code of user space tools'), scripts/tags.sh output from
      "make cscope tags TAGS" is the same with and without this patch: it doesn't
      seems to introduce any regression (on Fedora 20).
      
      Link: http://lkml.kernel.org/r/1396530975.4361.28.camel@localhost.localdomain
      Link: http://mid.gmane.org/534312F8.5090609@t-online.de
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Anton Blanchard <anton@samba.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Hans-Bernhard Bröker <broeker@users.sourceforge.net>,
      Cc: Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>,
      Cc: Neil Horman <nhorman@users.sourceforge.net>
      Cc: Neil Horman <nhorman@tuxdriver.com>
      Cc: Gerhard Sittig <gsi@denx.de>
      Cc: Konstantin Khlebnikov <koct9i@gmail.com>
      Signed-off-by: default avatarYann Droneaud <ydroneaud@opteya.com>
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      9b24a15d
  17. 14 May, 2014 1 commit
  18. 24 Apr, 2014 1 commit
  19. 16 Apr, 2014 1 commit
  20. 06 Feb, 2014 1 commit
    • Prarit Bhargava's avatar
      scripts/tags.sh: Ignore *.mod.c · ae63b2d7
      Prarit Bhargava authored
      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
      4807
      
      These 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 <<GLOBAL>>
                   { 0x618911fc, __VMLINUX_SYMBOL_STR(numa_node) },
         2    508  drivers/block/mtip32xx/mtip32xx.h <<GLOBAL>>
                   int numa_node;
         3     55  drivers/block/mtip32xx/mtip32xx.mod.c <<GLOBAL>>
                   { 0x618911fc, __VMLINUX_SYMBOL_STR(numa_node) },
         4     37  drivers/cpufreq/acpi-cpufreq.mod.c <<GLOBAL>>
                   { 0x618911fc, __VMLINUX_SYMBOL_STR(numa_node) },
         <snip>
      
      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: default avatarPrarit Bhargava <prarit@redhat.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Kirill Tkhai <tkhai@yandex.ru>
      Cc: Michael Opdenacker <michael.opdenacker@free-electrons.com>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      ae63b2d7
  21. 08 Nov, 2013 1 commit
  22. 23 Oct, 2013 1 commit
  23. 27 Mar, 2013 1 commit
  24. 22 Feb, 2013 1 commit
  25. 13 Jan, 2013 1 commit
  26. 11 Dec, 2012 2 commits
  27. 31 Aug, 2012 1 commit
  28. 26 Jul, 2012 1 commit
  29. 02 Apr, 2012 1 commit
  30. 26 Mar, 2012 2 commits
  31. 18 Dec, 2011 1 commit