Re: [PATCH] perf tools: consider header files outside perf directory in tags target

From: Jiri Olsa
Date: Tue May 27 2014 - 12:33:38 EST


On Tue, May 27, 2014 at 06:23:42PM +0200, Sebastian Andrzej Siewior wrote:
> This fixes lookups like "vi -t event_format"
>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
> ---
> tools/perf/Makefile.perf | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
> index 895edd3..8148992 100644
> --- a/tools/perf/Makefile.perf
> +++ b/tools/perf/Makefile.perf
> @@ -812,15 +812,15 @@ INSTALL_DOC_TARGETS += quick-install-doc quick-install-man quick-install-html
>
> TAGS:
> $(RM) TAGS
> - $(FIND) . -name '*.[hcS]' -print | xargs etags -a
> + $(FIND) . ../lib/traceevent -name '*.[hcS]' -print | xargs etags -a ../../include/uapi/linux/perf_event.h
>
> tags:
> $(RM) tags
> - $(FIND) . -name '*.[hcS]' -print | xargs ctags -a
> + $(FIND) . ../lib/traceevent -name '*.[hcS]' -print | xargs ctags -a ../../include/uapi/linux/perf_event.h
>
> cscope:
> $(RM) cscope*
> - $(FIND) . -name '*.[hcS]' -print | xargs cscope -b
> + $(FIND) . ../lib/traceevent -name '*.[hcS]' -print | xargs cscope -b ../../include/uapi/linux/perf_event.h

while you are at it, could you please also include:
../lib/api/
../lib/symbol/

also given that same paths are used on multiple places,
please put them into variable

thanks,
jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/