diff options
author | fche <fche> | 2006-05-16 03:24:57 +0000 |
---|---|---|
committer | fche <fche> | 2006-05-16 03:24:57 +0000 |
commit | ffd1346fe1294b4d8a589f7085e394f091761378 (patch) | |
tree | 382b5e8810a31ecb9e263180a137fe50c52fbf81 /tapsets.cxx | |
parent | 090e8d5e8cc00bf7c887668f85a43d5767298df5 (diff) | |
download | systemtap-steved-ffd1346fe1294b4d8a589f7085e394f091761378.tar.gz systemtap-steved-ffd1346fe1294b4d8a589f7085e394f091761378.tar.xz systemtap-steved-ffd1346fe1294b4d8a589f7085e394f091761378.zip |
2006-05-15 Frank Ch. Eigler <fche@elastic.org>
* tapsets.cxx, translator.cxx (*): Designate more emitted
functions as static.
* translator.cxx (visit_print_format): Correct regression
regression from two weeks ago.
* stapfuncs.5.in: Tweak wording. Deprecate returnval() in favour
of retval().
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index 2fab6583..d562677b 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -222,8 +222,7 @@ be_derived_probe::emit_probe_entries (translator_output* o) { probe_point *l = locations[i]; o->newline() << "/* location " << i << ": " << *l << " */"; - o->newline() << "static void enter_" << name << "_" << i << " (void);"; - o->newline() << "void enter_" << name << "_" << i << " () {"; + o->newline() << "static void enter_" << name << "_" << i << " (void) {"; // While begin/end probes are executed single-threaded, we // still code defensively and use a per-cpu context. @@ -3066,7 +3065,7 @@ dwarf_derived_probe::emit_probe_entries (translator_output* o) assert(probe_points.size() == locations.size()); - o->newline() << "char const * " + o->newline() << "static char const * " << string_array << "[" << locations.size() << "] = {"; o->indent(1); @@ -3265,7 +3264,7 @@ timer_derived_probe::emit_probe_entries (translator_output* o) { o->newline() << "static struct timer_list timer_" << name << ";"; - o->newline() << "void enter_" << name << " (unsigned long val) {"; + o->newline() << "static void enter_" << name << " (unsigned long val) {"; o->indent(1); o->newline() << "const char* probe_point = " << lex_cast_qstring(*locations[0]) << ";"; @@ -3579,7 +3578,7 @@ mark_derived_probe::emit_probe_entries (translator_output* o) { assert (this->locations.size() == 1); - o->newline() << "void enter_" << name << " (" << probe_sig_expanded << ")"; + o->newline() << "static void enter_" << name << " (" << probe_sig_expanded << ")"; o->newline() << "{"; o->newline(1) << "const char* probe_point = " << lex_cast_qstring(* this->locations[0]) << ";"; |