From: Anthony Liguori <anthony@codemonkey.ws>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/2] Add a DTrace tracing backend targetted for SystemTAP compatability
Date: Tue, 16 Nov 2010 12:58:48 -0600 [thread overview]
Message-ID: <4CE2D468.4020604@codemonkey.ws> (raw)
In-Reply-To: <AANLkTik6xjnE0hmwVX5JB5hrO8ex1xXp6b-bQXMz0dmy@mail.gmail.com>
On 11/16/2010 12:54 PM, Peter Maydell wrote:
> On 16 November 2010 18:10, Anthony Liguori<anthony@codemonkey.ws> wrote:
>
>> On 11/16/2010 11:43 AM, Peter Maydell wrote:
>>
>>> Unfortunately these commits:
>>> 2834c3e Add support for generating a systemtap tapset static probes
>>> 4addb11 Add a DTrace tracing backend targetted for SystemTAP compatability
>>>
>> What's your configure output?
>>
> I've attached it; the trace related bits are:
> Trace backend nop
> Trace output file trace-<pid>
>
>
>> I don't have the right environment to build with systemtap support, but
>> --trace-backend=nop should work regardless.
>>
> I'm using the nop backend, yes.
>
> I think the problem is that commit 2834c3e adds a target 'trace:' to the
> Makefile.target which looks like it's intended to be a phony target. However
> it isn't marked as such, so make actually tries to create a binary 'trace'
> by falling back to its default rules (since there's a "trace.c" in the root
> directory):
>
> petmay01@LinaroE102767:~/qemu-test/qemu/i386-softmmu$ make -n trace
> echo " CC trace.o"&& gcc -I/home/petmay01/qemu-test/qemu/slirp
> -Werror -m64 -I. -I/home/petmay01/qemu-test/qemu -D_FORTIFY_SOURCE=2
> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wendif-labels
> -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing
> -fstack-protector-all -Wempty-body -Wnested-externs -Wformat-security
> -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration
> -Wold-style-definition -Wtype-limits -DHAS_AUDIO -DHAS_AUDIO_CHOICE
> -I/home/petmay01/qemu-test/qemu/fpu
> -I/home/petmay01/qemu-test/qemu/tcg
> -I/home/petmay01/qemu-test/qemu/tcg/i386 -DTARGET_PHYS_ADDR_BITS=32
> -I.. -I/home/petmay01/qemu-test/qemu/target-i386 -DNEED_CPU_H -MMD
> -MP -MT trace.o -MF ./trace.d -O2 -g -c -o trace.o
> /home/petmay01/qemu-test/qemu/trace.c
> echo " LINK trace"&& gcc -I/home/petmay01/qemu-test/qemu/slirp
> -Werror -m64 -I. -I/home/petmay01/qemu-test/qemu -D_FORTIFY_SOURCE=2
> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wendif-labels
> -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing
> -fstack-protector-all -Wempty-body -Wnested-externs -Wformat-security
> -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration
> -Wold-style-definition -Wtype-limits -DHAS_AUDIO -DHAS_AUDIO_CHOICE
> -I/home/petmay01/qemu-test/qemu/fpu
> -I/home/petmay01/qemu-test/qemu/tcg
> -I/home/petmay01/qemu-test/qemu/tcg/i386 -DTARGET_PHYS_ADDR_BITS=32
> -I.. -I/home/petmay01/qemu-test/qemu/target-i386 -DNEED_CPU_H -O2
> -g -Wl,--warn-common -m64 -g -o trace trace.o -lrt -lpthread
> -lutil -lcurl -lncurses -luuid -lpng -lsasl2 -lgnutls -lSDL
> -lX11 -laio -lm -lz
>
> ...and linking only trace.o into a binary 'trace' fails because
> trace.c doesn't have a main() (or indeed any functions at all).
>
> If I add a ".PHONY: trace" or change the "trace" target
> name to "tracexyzzy" then this fixes the problem.
>
Curious, care to send a patch? I think I'm not seeing this because I
build with srcdir != objdir.
Regards,
Anthony Liguori
> -- PMM
>
next prev parent reply other threads:[~2010-11-16 18:58 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-08 19:33 [Qemu-devel] [PATCH 0/2] Add support for SystemTAP and DTrace tracing backends (v5) Daniel P. Berrange
2010-11-08 19:33 ` [Qemu-devel] [PATCH 1/2] Add a DTrace tracing backend targetted for SystemTAP compatability Daniel P. Berrange
2010-11-16 15:46 ` Anthony Liguori
2010-11-16 17:43 ` Peter Maydell
2010-11-16 18:10 ` Anthony Liguori
2010-11-16 18:54 ` Peter Maydell
2010-11-16 18:58 ` Anthony Liguori [this message]
2010-11-16 20:07 ` [Qemu-devel] [PATCH] Fix compilation failure with simple trace when srcdir==objdir Peter Maydell
2010-11-16 21:12 ` Stefan Hajnoczi
2010-11-16 22:25 ` Anthony Liguori
2010-11-16 20:22 ` [Qemu-devel] [PATCH 1/2] Add a DTrace tracing backend targetted for SystemTAP compatability Peter Maydell
2010-11-17 11:36 ` Daniel P. Berrange
2010-11-17 11:35 ` Daniel P. Berrange
2010-11-18 0:00 ` Anthony Liguori
2010-11-18 15:58 ` Stefan Hajnoczi
2010-11-08 19:33 ` [Qemu-devel] [PATCH 2/2] Add support for generating a systemtap tapset static probes Daniel P. Berrange
-- strict thread matches above, loose matches on Subject: below --
2010-11-12 13:20 [Qemu-devel] Add support for SystemTAP and DTrace tracing backends (v6) Daniel P. Berrange
2010-11-12 13:20 ` [Qemu-devel] [PATCH 1/2] Add a DTrace tracing backend targetted for SystemTAP compatability Daniel P. Berrange
2010-11-12 13:30 ` Stefan Hajnoczi
2010-11-08 11:33 [Qemu-devel] [PATCH 0/2] Add support for SystemTAP and DTrace tracing backends Daniel P. Berrange
2010-11-08 11:33 ` [Qemu-devel] [PATCH 1/2] Add a DTrace tracing backend targetted for SystemTAP compatability Daniel P. Berrange
2010-11-08 16:52 ` Stefan Hajnoczi
2010-11-08 16:57 ` Daniel P. Berrange
2010-11-08 19:29 ` Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CE2D468.4020604@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.