* [Bug runtime/10700] New: log() doesn't output newline anymore
@ 2009-09-28 12:27 mjw at redhat dot com
2009-09-28 12:35 ` [Bug runtime/10700] " mjw at redhat dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: mjw at redhat dot com @ 2009-09-28 12:27 UTC (permalink / raw)
To: systemtap
It used to be that a log(string) statement would add a newline (version 1.0/0.142):
$ stap -e 'probe begin { log("begin"); log("done"); exit(); }'
begin
done
But with recent git (version 1.0/0.142 commit release-1.0-17-g9e75660) it gives:
$ /usr/local/install/systemtap/bin/stap -e 'probe begin { log("begin");
log("done"); exit(); }'
begindone
This causes some make installcheck failures, like cxxclass.exp.
--
Summary: log() doesn't output newline anymore
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: runtime
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: mjw at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10700
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug runtime/10700] log() doesn't output newline anymore
2009-09-28 12:27 [Bug runtime/10700] New: log() doesn't output newline anymore mjw at redhat dot com
@ 2009-09-28 12:35 ` mjw at redhat dot com
2009-09-28 12:40 ` mjw at redhat dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: mjw at redhat dot com @ 2009-09-28 12:35 UTC (permalink / raw)
To: systemtap
------- Additional Comments From mjw at redhat dot com 2009-09-28 12:35 -------
This was introduced by:
commit 450718c9c424bce67e8580183788380431f90434
Author: Frank Ch. Eigler <fche@elastic.org>
Date: Wed Sep 23 07:41:47 2009 -0400
PR10390: ftrace() tapset function
* tapset/logging.stp (ftrace): New function.
(*): Add kerneldoc to other functions.
* doc/SystemTap_Tapset_Reference/tapsets.tmpl: Process logging.stp.
* stapfuncs.3stap.in: Remove "LOGGING" section, now redundant.
* runtime/autoconf-trace-printk.c: New autoconf test.
* buildrun.cxx (compile_pass): Build it.
* NEWS: Mention it.
* testsuite/buildok/logging.stp: Test it.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10700
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug runtime/10700] log() doesn't output newline anymore
2009-09-28 12:27 [Bug runtime/10700] New: log() doesn't output newline anymore mjw at redhat dot com
2009-09-28 12:35 ` [Bug runtime/10700] " mjw at redhat dot com
@ 2009-09-28 12:40 ` mjw at redhat dot com
2009-09-28 13:42 ` mjw at redhat dot com
2009-09-28 14:01 ` mjw at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: mjw at redhat dot com @ 2009-09-28 12:40 UTC (permalink / raw)
To: systemtap
------- Additional Comments From mjw at redhat dot com 2009-09-28 12:40 -------
In particular, reverting this hunk against tapset/logging.stp fixes it:
function log (msg:string) %{ /* unprivileged */
- _stp_printf ("%s\n", THIS->msg);
+ _stp_print (THIS->msg);
%}
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10700
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug runtime/10700] log() doesn't output newline anymore
2009-09-28 12:27 [Bug runtime/10700] New: log() doesn't output newline anymore mjw at redhat dot com
2009-09-28 12:35 ` [Bug runtime/10700] " mjw at redhat dot com
2009-09-28 12:40 ` mjw at redhat dot com
@ 2009-09-28 13:42 ` mjw at redhat dot com
2009-09-28 14:01 ` mjw at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: mjw at redhat dot com @ 2009-09-28 13:42 UTC (permalink / raw)
To: systemtap
------- Additional Comments From mjw at redhat dot com 2009-09-28 13:42 -------
Committed the reversal of the code in comment #2, since it seems to solve the
testsuite failures, as:
commit d498530cec1fcf4b71b1b27a068206fda18f3188
Author: Mark Wielaard <mjw@redhat.com>
Date: Mon Sep 28 15:34:56 2009 +0200
PR10700 Add newline after log() message.
* tapset/logging.stp (log): Use _stp_printf "%s\n".
Please revert if this breaks some of the newer ftrace logging.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10700
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug runtime/10700] log() doesn't output newline anymore
2009-09-28 12:27 [Bug runtime/10700] New: log() doesn't output newline anymore mjw at redhat dot com
` (2 preceding siblings ...)
2009-09-28 13:42 ` mjw at redhat dot com
@ 2009-09-28 14:01 ` mjw at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: mjw at redhat dot com @ 2009-09-28 14:01 UTC (permalink / raw)
To: systemtap
------- Additional Comments From mjw at redhat dot com 2009-09-28 14:00 -------
It doesn't seem needed and the change would be a regression anyway.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=10700
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-09-28 14:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-28 12:27 [Bug runtime/10700] New: log() doesn't output newline anymore mjw at redhat dot com
2009-09-28 12:35 ` [Bug runtime/10700] " mjw at redhat dot com
2009-09-28 12:40 ` mjw at redhat dot com
2009-09-28 13:42 ` mjw at redhat dot com
2009-09-28 14:01 ` mjw at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).