All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] make trace options use autoconfy names
@ 2010-11-14 11:50 Paolo Bonzini
  2010-11-14 13:38 ` Andreas Färber
  0 siblings, 1 reply; 6+ messages in thread
From: Paolo Bonzini @ 2010-11-14 11:50 UTC (permalink / raw)
  To: qemu-devel

These are not in any release, so I am splitting them off the other
patch for autoconfy command line and not introducing deprecation.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 configure |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure b/configure
index 50fb3cd..4e79059 100755
--- a/configure
+++ b/configure
@@ -523,9 +523,9 @@ for opt do
   ;;
   --target-list=*) target_list="$optarg"
   ;;
-  --trace-backend=*) trace_backend="$optarg"
+  --enable-trace-backend=*) trace_backend="$optarg"
   ;;
-  --trace-file=*) trace_file="$optarg"
+  --enable-trace-file=*) trace_file="$optarg"
   ;;
   --enable-gprof) gprof="yes"
   ;;
@@ -906,8 +906,8 @@ echo "  --enable-docs            enable documentation build"
 echo "  --disable-docs           disable documentation build"
 echo "  --disable-vhost-net      disable vhost-net acceleration support"
 echo "  --enable-vhost-net       enable vhost-net acceleration support"
-echo "  --trace-backend=B        Trace backend nop simple ust"
-echo "  --trace-file=NAME        Full PATH,NAME of file to store traces"
+echo "  --enable-trace-backend=B Trace backend nop simple ust"
+echo "  --enable-trace-file=NAME Full PATH,NAME of file to store traces"
 echo "                           Default:trace-<pid>"
 echo "  --disable-spice          disable spice"
 echo "  --enable-spice           enable spice"
-- 
1.7.3.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH] make trace options use autoconfy names
  2010-11-14 11:50 [Qemu-devel] [PATCH] make trace options use autoconfy names Paolo Bonzini
@ 2010-11-14 13:38 ` Andreas Färber
  2010-11-14 13:52   ` Paolo Bonzini
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Färber @ 2010-11-14 13:38 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel Developers, Stefan Hajnoczi

Am 14.11.2010 um 12:50 schrieb Paolo Bonzini:

> These are not in any release, so I am splitting them off the other
> patch for autoconfy command line and not introducing deprecation.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> configure |    8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/configure b/configure
> index 50fb3cd..4e79059 100755
> --- a/configure
> +++ b/configure
> @@ -523,9 +523,9 @@ for opt do
>   ;;
>   --target-list=*) target_list="$optarg"
>   ;;
> -  --trace-backend=*) trace_backend="$optarg"
> +  --enable-trace-backend=*) trace_backend="$optarg"
>   ;;

This one's okay...

> -  --trace-file=*) trace_file="$optarg"
> +  --enable-trace-file=*) trace_file="$optarg"
>   ;;

but this should be --with-trace-file=... please. It is not being  
enabled, just set to a different value.

Andreas

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH] make trace options use autoconfy names
  2010-11-14 13:38 ` Andreas Färber
@ 2010-11-14 13:52   ` Paolo Bonzini
  2010-11-15 14:17     ` Stefan Hajnoczi
  0 siblings, 1 reply; 6+ messages in thread
From: Paolo Bonzini @ 2010-11-14 13:52 UTC (permalink / raw)
  To: Andreas Färber; +Cc: qemu-devel Developers, Stefan Hajnoczi

On 11/14/2010 02:38 PM, Andreas Färber wrote:
>> - --trace-file=*) trace_file="$optarg"
>> + --enable-trace-file=*) trace_file="$optarg"
>> ;;
>
> but this should be --with-trace-file=... please. It is not being
> enabled, just set to a different value.

--with-* should be reserved for library paths, but I can change it if 
people prefer it that way.

Paolo

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH] make trace options use autoconfy names
  2010-11-14 13:52   ` Paolo Bonzini
@ 2010-11-15 14:17     ` Stefan Hajnoczi
  2010-11-15 15:48       ` Paolo Bonzini
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Hajnoczi @ 2010-11-15 14:17 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: Andreas Färber, qemu-devel Developers, Stefan Hajnoczi

On Sun, Nov 14, 2010 at 1:52 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
> On 11/14/2010 02:38 PM, Andreas Färber wrote:
>>>
>>> - --trace-file=*) trace_file="$optarg"
>>> + --enable-trace-file=*) trace_file="$optarg"
>>> ;;
>>
>> but this should be --with-trace-file=... please. It is not being
>> enabled, just set to a different value.
>
> --with-* should be reserved for library paths, but I can change it if people
> prefer it that way.

Actually I think we have something similar to overriding --prefix here
>:).  It's a path that you can set at ./configure time.

So is it not okay to use --trace-file=<filename>?  But I know nothing
of autoconf and --enable-* or --with-* sort of make sense too.

Stefan

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH] make trace options use autoconfy names
  2010-11-15 14:17     ` Stefan Hajnoczi
@ 2010-11-15 15:48       ` Paolo Bonzini
  2010-11-15 19:50         ` Andreas Färber
  0 siblings, 1 reply; 6+ messages in thread
From: Paolo Bonzini @ 2010-11-15 15:48 UTC (permalink / raw)
  To: Stefan Hajnoczi
  Cc: Andreas Färber, qemu-devel Developers, Stefan Hajnoczi

On 11/15/2010 03:17 PM, Stefan Hajnoczi wrote:
> On Sun, Nov 14, 2010 at 1:52 PM, Paolo Bonzini<pbonzini@redhat.com>  wrote:
>> On 11/14/2010 02:38 PM, Andreas Färber wrote:
>>>>
>>>> - --trace-file=*) trace_file="$optarg"
>>>> + --enable-trace-file=*) trace_file="$optarg"
>>>> ;;
>>>
>>> but this should be --with-trace-file=... please. It is not being
>>> enabled, just set to a different value.
>>
>> --with-* should be reserved for library paths, but I can change it if people
>> prefer it that way.
>
> Actually I think we have something similar to overriding --prefix here
> :).  It's a path that you can set at ./configure time.

Yeah, that's true.  However...

> So is it not okay to use --trace-file=<filename>?

... Autoconf would not allow unknown options not starting with --enable- 
or --with-.

The rationale to avoid incompatible options in QEMU is this: suppose you 
have a project using Autoconf (e.g. GCC) and you want to drop QEMU as a 
subdirectory in there, e.g. to run the GCC testsuite under QEMU usermode 
emulation (GCC can already do this for other simulators).  To pass 
options to QEMU's configure, you can include them in GCC's commandline. 
  The script will simply pass the option down to QEMU and it will be 
processed there.  However, if you pass --trace-file to GCC's configure 
script, it will complain and stop.

Probably I would use something like --enable-trace-backend=simple:trace- 
if I was adding something similar to an autoconfiscated project.  But 
unless it provides some additional benefit (as is the case with 
cross-compilation support) I want to keep the syntactic changes in my 
patches to the minimum.

> But I know nothing of autoconf and --enable-* or --with-* sort of
> make sense too.

Whatever, I have to repost the other series anyway, so I'll change to 
--with-.

Paolo

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH] make trace options use autoconfy names
  2010-11-15 15:48       ` Paolo Bonzini
@ 2010-11-15 19:50         ` Andreas Färber
  0 siblings, 0 replies; 6+ messages in thread
From: Andreas Färber @ 2010-11-15 19:50 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: Stefan Hajnoczi, qemu-devel Developers, Stefan Hajnoczi

Am 15.11.2010 um 16:48 schrieb Paolo Bonzini:

> On 11/15/2010 03:17 PM, Stefan Hajnoczi wrote:
>> On Sun, Nov 14, 2010 at 1:52 PM, Paolo  
>> Bonzini<pbonzini@redhat.com>  wrote:
>>> On 11/14/2010 02:38 PM, Andreas Färber wrote:
>>>>>
>>>>> - --trace-file=*) trace_file="$optarg"
>>>>> + --enable-trace-file=*) trace_file="$optarg"
>>>>> ;;
>>>>
>>>> but this should be --with-trace-file=... please. It is not being
>>>> enabled, just set to a different value.
>>>
>>> --with-* should be reserved for library paths, but I can change it  
>>> if people
>>> prefer it that way.

I did think of the argument as a file name, sort of a relative path...

>> Actually I think we have something similar to overriding --prefix  
>> here
>> :).  It's a path that you can set at ./configure time.
>
> Yeah, that's true.  However...
>
>> So is it not okay to use --trace-file=<filename>?
>
> ... Autoconf would not allow unknown options not starting with -- 
> enable- or --with-.
>
> The rationale to avoid incompatible options in QEMU is this: suppose  
> you have a project using Autoconf (e.g. GCC) and you want to drop  
> QEMU as a subdirectory in there, e.g. to run the GCC testsuite under  
> QEMU usermode emulation (GCC can already do this for other  
> simulators).  To pass options to QEMU's configure, you can include  
> them in GCC's commandline.  The script will simply pass the option  
> down to QEMU and it will be processed there.  However, if you pass -- 
> trace-file to GCC's configure script, it will complain and stop.
>
> Probably I would use something like --enable-trace- 
> backend=simple:trace- if I was adding something similar to an  
> autoconfiscated project.  But unless it provides some additional  
> benefit (as is the case with cross-compilation support) I want to  
> keep the syntactic changes in my patches to the minimum.
>
>> But I know nothing of autoconf and --enable-* or --with-* sort of
>> make sense too.
>
> Whatever, I have to repost the other series anyway, so I'll change  
> to --with-.

Thinking more about it, what about --enable-simple-trace=...,  
callapsing the two options into one?

Another autoconf way to pass this stuff would we ./configure ...  
TRACE_FILE=...

I wouldn't mind either way though, just noticed that the --enable- 
trace-file suggestion by autoconf convention would allow --disable- 
trace-file. Similar issue for --without-trace-file though.

Andreas

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-11-15 19:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-14 11:50 [Qemu-devel] [PATCH] make trace options use autoconfy names Paolo Bonzini
2010-11-14 13:38 ` Andreas Färber
2010-11-14 13:52   ` Paolo Bonzini
2010-11-15 14:17     ` Stefan Hajnoczi
2010-11-15 15:48       ` Paolo Bonzini
2010-11-15 19:50         ` Andreas Färber

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.