Lines Matching refs:prototype
315 my ($newsection, $newcontents, $prototype, $brcount, %source_map);
1784 my ($prototype, $file) = @_;
2161 my $prototype = shift;
2165 $prototype =~ s/^static +//;
2166 $prototype =~ s/^extern +//;
2167 $prototype =~ s/^asmlinkage +//;
2168 $prototype =~ s/^inline +//;
2169 $prototype =~ s/^__inline__ +//;
2170 $prototype =~ s/^__inline +//;
2171 $prototype =~ s/^__always_inline +//;
2172 $prototype =~ s/^noinline +//;
2173 $prototype =~ s/__init +//;
2174 $prototype =~ s/__init_or_module +//;
2175 $prototype =~ s/__meminit +//;
2176 $prototype =~ s/__must_check +//;
2177 $prototype =~ s/__weak +//;
2178 my $define = $prototype =~ s/^#\s*define\s+//; #ak added
2179 $prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//;
2197 if ($define && $prototype =~ m/^()([a-zA-Z0-9_~:]+)\s+/) {
2205 } elsif ($prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
2206 $prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
2207 $prototype =~ m/^(\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
2208 $prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
2209 $prototype =~ m/^(\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
2210 $prototype =~ m/^(\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
2211 $prototype =~ m/^(\w+\s+\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
2212 $prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2213 $prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2214 $prototype =~ m/^(\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2215 $prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2216 $prototype =~ m/^(\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2217 $prototype =~ m/^(\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2218 $prototype =~ m/^(\w+\s+\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2219 $prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2220 $prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2221 $prototype =~ m/^(\w+\s+\w+\s*\*\s*\w+\s*\*\s*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/) {
2228 print STDERR "${file}:$.: warning: cannot understand function prototype: '$prototype'\n";
2268 $prototype = "";
2279 if ($prototype =~ m/TRACE_EVENT\((.*?),/) {
2282 if ($prototype =~ m/DEFINE_SINGLE_EVENT\((.*?),/) {
2285 if ($prototype =~ m/DEFINE_EVENT\((.*?),(.*?),/) {
2289 if ($prototype =~ m/TP_PROTO\((.*?)\)/) {
2294 "$prototype\n";
2296 $prototype = "static inline void trace_$tracepointname($tracepointargs)";
2303 $prototype =~ s@[\r\n\t]+@ @gos; # strip newlines/CR's/tabs
2305 if ($prototype =~ m/SYSCALL_DEFINE0/) {
2310 $prototype =~ s/SYSCALL_DEFINE.*\(/long sys_/; # fix return type & func name
2311 if ($prototype =~ m/long (sys_.*?),/) {
2312 $prototype =~ s/,/\(/;
2314 $prototype =~ s/\)/\(void\)/;
2320 my $len = length($prototype);
2325 if (substr($prototype, $ix, 1) eq ',') {
2328 substr($prototype, $ix, 1) = ' ';
2344 $prototype .= $1;
2348 $prototype =~ s@/\*.*?\*/@@gos; # strip comments.
2349 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
2350 $prototype =~ s@^\s+@@gos; # strip leading spaces
2351 if ($prototype =~ /SYSCALL_DEFINE/) {
2354 if ($prototype =~ /TRACE_EVENT/ || $prototype =~ /DEFINE_EVENT/ ||
2355 $prototype =~ /DEFINE_SINGLE_EVENT/)
2359 dump_function($prototype, $file);
2380 $prototype .= $1 . $2;
2384 dump_declaration($prototype, $file);
2390 $prototype .= $x;
2556 $prototype = "";
2639 $prototype = "";
2657 $prototype = "";