* [ltt-dev] usttrace does not support arguments with spaces
@ 2011-11-15 10:38 Stefan Hajnoczi
2011-11-15 11:05 ` Mathieu Desnoyers
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Hajnoczi @ 2011-11-15 10:38 UTC (permalink / raw)
Is usttrace still going to be around for LTTng 2.0? If not, maybe
these observations don't matter, but I wanted to discuss before I
forget them.
usttrace in ust-bin Debian 0.15-3 does not handle spaces in
command-line arguments:
# Prepare vars
CMD=$*
[...]
# Execute the command
$CMD 2>&1
) | tee "$OUTDIR/app.log"
My temporary fix was:
# Execute the command
"@" 2>&1
Since I was tracing a curses application it turned out redirecting
stdout/stderr wasn't helpful ;). So I dropped the app.log and
redirection. Capturing application output is not useful in this case.
If you can point me to the git repo that has usttrace I'm happy to
send patches. I have to admit I failed to find usttrace in the git
repos, I must be looking in the wrong place ;).
Thanks,
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ltt-dev] usttrace does not support arguments with spaces
2011-11-15 10:38 [ltt-dev] usttrace does not support arguments with spaces Stefan Hajnoczi
@ 2011-11-15 11:05 ` Mathieu Desnoyers
0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2011-11-15 11:05 UTC (permalink / raw)
Hi Stefan,
* Stefan Hajnoczi (stefanha at gmail.com) wrote:
> Is usttrace still going to be around for LTTng 2.0? If not, maybe
> these observations don't matter, but I wanted to discuss before I
> forget them.
It's not going to be around in LTTng-UST 2.0. It might be worth fixing
the UST 0.x tree though.
>
> usttrace in ust-bin Debian 0.15-3 does not handle spaces in
> command-line arguments:
>
> # Prepare vars
> CMD=$*
> [...]
> # Execute the command
> $CMD 2>&1
> ) | tee "$OUTDIR/app.log"
>
> My temporary fix was:
>
> # Execute the command
> "@" 2>&1
>
> Since I was tracing a curses application it turned out redirecting
> stdout/stderr wasn't helpful ;). So I dropped the app.log and
> redirection. Capturing application output is not useful in this case.
I guess keeping the redirection would be helpful in the general case
though.
>
> If you can point me to the git repo that has usttrace I'm happy to
> send patches. I have to admit I failed to find usttrace in the git
> repos, I must be looking in the wrong place ;).
It's at:
http://git.lttng.org/?p=ust.git;a=summary
(git://git.lttng.org/ust.git)
(master branch)
You'll find "usttrace" in the root of the tree.
Even though UST 0.x is in maintainance-only mode, this is the kind of
fix that I would pull for an eventual 0.15.1 bugfix-only release.
Thanks!
Mathieu
>
> Thanks,
> Stefan
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-15 11:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-15 10:38 [ltt-dev] usttrace does not support arguments with spaces Stefan Hajnoczi
2011-11-15 11:05 ` Mathieu Desnoyers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox