Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146077
b: refs/heads/master
c: 56afb0f
h: refs/heads/master
i:
  146075: 37491e4
v: v3
  • Loading branch information
Jason Baron authored and Ingo Molnar committed May 1, 2009
1 parent 8b4ac32 commit 089e844
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a0e39ed378fb6ba916522764cd508fa7d42ad495
refs/heads/master: 56afb0f8823650f53a5f0e96d69a282e8892c61b
22 changes: 22 additions & 0 deletions trunk/scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -1827,6 +1827,25 @@ sub reset_state {
$state = 0;
}

sub tracepoint_munge($) {
my $file = shift;
my $tracepointname = 0;
my $tracepointargs = 0;

if($prototype =~ m/TRACE_EVENT\((.*?),/) {
$tracepointname = $1;
}
if($prototype =~ m/TP_PROTO\((.*?)\)/) {
$tracepointargs = $1;
}
if (($tracepointname eq 0) || ($tracepointargs eq 0)) {
print STDERR "Warning(${file}:$.): Unrecognized tracepoint format: \n".
"$prototype\n";
} else {
$prototype = "static inline void trace_$tracepointname($tracepointargs)";
}
}

sub syscall_munge() {
my $void = 0;

Expand Down Expand Up @@ -1881,6 +1900,9 @@ sub process_state3_function($$) {
if ($prototype =~ /SYSCALL_DEFINE/) {
syscall_munge();
}
if ($prototype =~ /TRACE_EVENT/) {
tracepoint_munge($file);
}
dump_function($prototype, $file);
reset_state();
}
Expand Down

0 comments on commit 089e844

Please sign in to comment.