scripts/tags.sh: Add magic for trace-events
PATCH 1/1 scripts/tags.sh: Add magic for trace-events
Make tags find the trace-event definitions
Signed-off-by Peter Zijlstra <[email protected]>
--- scripts/tags.sh | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
scripts/tags.sh +3 -1
@@ -125,7 +125,9 @@ exuberant() -I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \ --extra=+f --c-kinds=-px \ --regex-asm='/^ENTRY\(([^)]*)\).*/\1/' \ - --regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/' + --regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/' \ + --regex-c++='/^TRACE_EVENT\(([^,)]*).*/trace_\1/' \ + --regex-c++='/^DEFINE_EVENT\(([^,)]*).*/trace_\1/' all_kconfigs | xargs $1 -a \ --langdef=kconfig --language-force=kconfig \
Quoted 4 lines · Peter Zijlstra
Make tags find the trace-event definitions
Signed-off-by Peter Zijlstra <[email protected]>
Acked-by WANG Cong <[email protected]>
Thanks.
Commit-ID: 35d3778a8fe3c8b4a7513565e34d3bde00ce43ec Gitweb: http://git.kernel.org/tip/35d3778a8fe3c8b4a7513565e34d3bde00ce43ec Author: Peter Zijlstra <[email protected]> AuthorDate: Wed, 24 Nov 2010 10:43:55 +0100 Committer: Ingo Molnar <[email protected]> CommitDate: Fri, 26 Nov 2010 15:14:54 +0100
scripts/tags.sh: Add magic for trace-events
Make tags find the trace-event definitions
Signed-off-by Peter Zijlstra <[email protected]>
Acked-by WANG Cong <[email protected]>
LKML-Reference: <1290591835.2072.438.camel@laptop>
Signed-off-by Ingo Molnar <[email protected]>
--- scripts/tags.sh | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
scripts/tags.sh +3 -1
@@ -125,7 +125,9 @@ exuberant() -I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \ --extra=+f --c-kinds=-px \ --regex-asm='/^ENTRY\(([^)]*)\).*/\1/' \ - --regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/' + --regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/' \ + --regex-c++='/^TRACE_EVENT\(([^,)]*).*/trace_\1/' \ + --regex-c++='/^DEFINE_EVENT\(([^,)]*).*/trace_\1/' all_kconfigs | xargs $1 -a \ --langdef=kconfig --language-force=kconfig \
Quoted 3 lines · Peter Zijlstra
Make tags find the trace-event definitions
Signed-off-by Peter Zijlstra <[email protected]>
Should we push this patch for 2.6.37? It's small, useful, and does not impact the kernel whatsoever. But can we call this a bug fix?
-- Steve
Quoted 19 lines
--- scripts/tags.sh | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)scripts/tags.sh +3
-1@@ -125,7 +125,9 @@ exuberant() -I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \ --extra=+f --c-kinds=-px \ --regex-asm='/^ENTRY\(([^)]*)\).*/\1/' \ - --regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/' + --regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/' \ + --regex-c++='/^TRACE_EVENT\(([^,)]*).*/trace_\1/' \ + --regex-c++='/^DEFINE_EVENT\(([^,)]*).*/trace_\1/' all_kconfigs | xargs $1 -a \ --langdef=kconfig --language-force=kconfig \
Commit-ID: 15664125f7cadcb6d725cb2d9b90f9715397848d Gitweb: http://git.kernel.org/tip/15664125f7cadcb6d725cb2d9b90f9715397848d Author: Peter Zijlstra <[email protected]> AuthorDate: Wed, 24 Nov 2010 10:43:55 +0100 Committer: Steven Rostedt <[email protected]> CommitDate: Thu, 2 Dec 2010 09:39:48 -0500
scripts/tags.sh: Add magic for trace-events
Make tags find the trace-event definitions
Acked-by WANG Cong <[email protected]>
Signed-off-by Peter Zijlstra <[email protected]>
LKML-Reference: <1290591835.2072.438.camel@laptop>
Signed-off-by Steven Rostedt <[email protected]>
--- scripts/tags.sh | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
scripts/tags.sh +3 -1
@@ -125,7 +125,9 @@ exuberant() -I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \ --extra=+f --c-kinds=-px \ --regex-asm='/^ENTRY\(([^)]*)\).*/\1/' \ - --regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/' + --regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/' \ + --regex-c++='/^TRACE_EVENT\(([^,)]*).*/trace_\1/' \ + --regex-c++='/^DEFINE_EVENT\(([^,)]*).*/trace_\1/' all_kconfigs | xargs $1 -a \ --langdef=kconfig --language-force=kconfig \