summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorhunt <hunt>2005-11-18 21:57:30 +0000
committerhunt <hunt>2005-11-18 21:57:30 +0000
commitb1f3e72e9fb1f41b0dbb5be20506e375fcf89561 (patch)
treed6ddcc2b52307f5b0c8e8a143311b17aa114a82f /tapsets.cxx
parentd02548c0925a02dd0af64a9dc13cce9e84d87b4f (diff)
downloadsystemtap-steved-b1f3e72e9fb1f41b0dbb5be20506e375fcf89561.tar.gz
systemtap-steved-b1f3e72e9fb1f41b0dbb5be20506e375fcf89561.tar.xz
systemtap-steved-b1f3e72e9fb1f41b0dbb5be20506e375fcf89561.zip
2005-11-18 Martin Hunt <hunt@redhat.com>
PR 1837 * testsuite/buildko/one.stp: Replace printk. * testsuite/buildok/one.stp: Ditto. * testsuite/buildok/two.stp: Ditto. * testsuite/semko/fifteen.stp: Ditto. * testsuite/semko/fourteen.stp: Ditto. * testsuite/semko/thirteen.stp: Ditto. * testsuite/transok/eight.stp: Ditto. * testsuite/transok/seven.stp: Ditto. * testsuite/transok/six.stp: Ditto. * tapsets.cxx (*::emit_probe_entries): Replace printk() calls with _stp_warn(). * stap.1.in: Replace printk with printf in example. * stapfuncs.5.in: Remove docs for printk and add for print and printf. * tapset/logging.stp (printk): Deleted.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index d9a75340..99c4c38a 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -158,7 +158,7 @@ be_derived_probe::emit_probe_entries (translator_output* o, unsigned j)
else o->line() << "STAP_SESSION_STOPPING)";
o->newline(1) << "return;";
o->newline(-1) << "if (atomic_inc_return (&c->busy) != 1) {";
- o->newline(1) << "printk (KERN_ERR \"probe reentrancy (%s vs %s)\\n\", "
+ o->newline(1) << "_stp_warn (\"probe reentrancy (%s vs %s)\\n\", "
<< "c->probe_point, probe_point);";
o->newline() << "atomic_set (& session_state, STAP_SESSION_ERROR);";
o->newline() << "atomic_dec (&c->busy);";
@@ -2729,8 +2729,8 @@ dwarf_derived_probe::emit_probe_entries (translator_output* o,
o->newline() << "int stap_kprobe_fault_handler (struct kprobe* kp, "
<< "struct pt_regs* regs, int trapnr) {";
o->newline(1) << "struct context *c = & contexts [smp_processor_id()];";
- o->newline() << "printk (KERN_ERR \"systemtap probe fault\\n\");";
- o->newline() << "printk (KERN_ERR \"cpu %d, probe %s, near %s\\n\", ";
+ o->newline() << "_stp_warn (\"systemtap probe fault\\n\");";
+ o->newline() << "_stp_warn (\"cpu %d, probe %s, near %s\\n\", ";
o->newline(1) << "smp_processor_id(), ";
o->newline() << "c->probe_point ? c->probe_point : \"unknown\", ";
o->newline() << "c->last_stmt ? c->last_stmt : \"unknown\");";
@@ -2842,7 +2842,7 @@ dwarf_derived_probe::emit_probe_entries (translator_output* o,
o->newline() << "if (atomic_read (&session_state) != STAP_SESSION_RUNNING)";
o->newline(1) << "return 0;";
o->newline(-1) << "if (atomic_inc_return (&c->busy) != 1) {";
- o->newline(1) << "printk (KERN_ERR \"probe reentrancy (%s vs %s)\\n\", "
+ o->newline(1) << "_stp_warn (\"probe reentrancy (%s vs %s)\\n\", "
<< "c->probe_point, probe_point);";
o->newline() << "atomic_set (& session_state, STAP_SESSION_ERROR);";
o->newline() << "atomic_dec (&c->busy);";
@@ -2994,7 +2994,7 @@ timer_derived_probe::emit_probe_entries (translator_output* o, unsigned j)
o->newline(1) << "return;";
o->newline(-1) << "if (atomic_inc_return (&c->busy) != 1) {";
- o->newline(1) << "printk (KERN_ERR \"probe reentrancy (%s vs %s)\\n\", "
+ o->newline(1) << "_stp_warn (\"probe reentrancy (%s vs %s)\\n\", "
<< "c->probe_point, probe_point);";
o->newline() << "atomic_set (& session_state, STAP_SESSION_ERROR);";
o->newline() << "atomic_dec (&c->busy);";