Skip to contentSkip to conversation

scripts/tags.sh: Add magic for trace-events

PATCH In review Peter Zijlstra 3 participants 5 messages Nov 24, 2010 – Dec 16, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/tags.sh: Add magic for trace-events

Make tags find the trace-event definitions

---
 scripts/tags.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
scripts/tags.sh +3 -1
index 8509bb5..bbbe584 100755
@@ -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              \
#2 lore raw
In reply to Peter Zijlstra
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

LKML-Reference: <1290591835.2072.438.camel@laptop>

---
 scripts/tags.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
scripts/tags.sh +3 -1
index 8509bb5..bbbe584 100755
@@ -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              \
#3 lore raw
In reply to Peter Zijlstra
Quoted 3 lines · Peter Zijlstra

Make tags find the trace-event definitions

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
index 8509bb5..bbbe584 100755
@@ -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              \
#4 lore raw
In reply to Peter Zijlstra
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

LKML-Reference: <1290591835.2072.438.camel@laptop>

---
 scripts/tags.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
scripts/tags.sh +3 -1
index 8509bb5..bbbe584 100755
@@ -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              \