Skip to contentSkip to conversation

Unnecessary events option of the trace argument with UST backend

Qemu-devel Francis Deslauriers 3 participants 5 messages Nov 12, 2014 – Jan 19, 2021

lore
Share & tools
lore
#0 lore raw

Public bug reported:

When running configure with the --enable-trace-backends=ust option and compiling.
The user should not have to specify a the "events" and "file" options because they are not used with that tracing framework.

Right now, in order the use this option the need to specify a dummy events file.

This fails:
$> qemu-system-x86_64 -hda debian_wheezy_amd64_standard.qcow2 -trace -m 512
qemu-system-x86_64: -trace -m: Invalid parameter '-m'

This works:
$> qemu-system-x86_64 -hda debian_wheezy_amd64_standard.qcow2 -trace events=dummy-events.txt -m 512 VNC server running on `127.0.0.1:5900'

I am using version:
$> qemu-system-x86_64 --version
QEMU emulator version 2.1.90, Copyright (c) 2003-2008 Fabrice Bellard

** Affects: qemu
Importance: Undecided
Status: New

** Tags: lttng trace ust

** Description changed:

- When running configure with the --enable-trace-backends=ust option the
- user should not have to specify a the "events" and "file" options
- because they are not used with that tracing framework.
+ When running configure with the --enable-trace-backends=ust option and compiling.
+ The user should not have to specify a the "events" and "file" options because they are not used with that tracing framework.

Right now, in order the use this option the need to specify a dummy events file.

This fails:
- $> qemu-system-x86_64 -hda debian_wheezy_amd64_standard.qcow2 -trace -m 512
+ $> qemu-system-x86_64 -hda debian_wheezy_amd64_standard.qcow2 -trace -m 512
qemu-system-x86_64: -trace -m: Invalid parameter '-m'

This works:
$> qemu-system-x86_64 -hda debian_wheezy_amd64_standard.qcow2 -trace events=dummy-events.txt -m 512 VNC server running on `127.0.0.1:5900'

I am using version:
- $> qemu-system-x86_64 --version
+ $> qemu-system-x86_64 --version
QEMU emulator version 2.1.90, Copyright (c) 2003-2008 Fabrice Bellard

Signature · 31 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1391942

Title:
  Unnecessary events option of the trace argument with UST backend

Status in QEMU:
  New

Bug description:
  When running configure with the --enable-trace-backends=ust option and compiling. 
  The user should not have to specify a the "events" and "file" options because they are not used with that tracing framework.

  Right now, in order the use this option the need to specify a dummy
  events file.

  This fails:
  $> qemu-system-x86_64 -hda debian_wheezy_amd64_standard.qcow2 -trace -m 512
  qemu-system-x86_64: -trace -m: Invalid parameter '-m'

  This works:
  $> qemu-system-x86_64 -hda debian_wheezy_amd64_standard.qcow2 -trace events=dummy-events.txt -m 512
  VNC server running on `127.0.0.1:5900'

  I am using version:
  $> qemu-system-x86_64 --version
  QEMU emulator version 2.1.90, Copyright (c) 2003-2008 Fabrice Bellard

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1391942/+subscriptions
#1 lore raw
Quoted 10 lines · Francis Deslauriers

When running configure with the --enable-trace-backends=ust option and compiling.
The user should not have to specify a the "events" and "file" options because they are not used with that tracing framework.

Right now, in order the use this option the need to specify a dummy events file.

This fails:
$> qemu-system-x86_64 -hda debian_wheezy_amd64_standard.qcow2 -trace -m 512
qemu-system-x86_64: -trace -m: Invalid parameter '-m'

Quoted 7 lines

This works:
$> qemu-system-x86_64 -hda debian_wheezy_amd64_standard.qcow2 -trace events=dummy-events.txt -m 512 VNC server running on `127.0.0.1:5900'

I am using version:
$> qemu-system-x86_64 --version
QEMU emulator version 2.1.90, Copyright (c) 2003-2008 Fabrice Bellard

What happens when you pass no -trace option?

Stefan

#2 lore raw
In reply to Francis Deslauriers

It works without the -trace option.

Want I meant with this post is that the "events" argument of the "-trace" option has no effect in the case of using LTTng UST as the tracing backend because the events are enabled from the LTTng tracer itself.

Is there some way I can make an argument optional or conditional to a tracing framework?

Thanks,

Francis

Signature · 31 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1391942

Title:
  Unnecessary events option of the trace argument with UST backend

Status in QEMU:
  New

Bug description:
  When running configure with the --enable-trace-backends=ust option and compiling. 
  The user should not have to specify a the "events" and "file" options because they are not used with that tracing framework.

  Right now, in order the use this option the need to specify a dummy
  events file.

  This fails:
  $> qemu-system-x86_64 -hda debian_wheezy_amd64_standard.qcow2 -trace -m 512
  qemu-system-x86_64: -trace -m: Invalid parameter '-m'

  This works:
  $> qemu-system-x86_64 -hda debian_wheezy_amd64_standard.qcow2 -trace events=dummy-events.txt -m 512
  VNC server running on `127.0.0.1:5900'

  I am using version:
  $> qemu-system-x86_64 --version
  QEMU emulator version 2.1.90, Copyright (c) 2003-2008 Fabrice Bellard

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1391942/+subscriptions
#3 lore raw
In reply to Francis Deslauriers

The QEMU project is currently considering to move its bug tracking to another system. For this we need to know which bugs are still valid and which could be closed already. Thus we are setting older bugs to "Incomplete" now.
If you still think this bug report here is valid, then please switch the state back to "New" within the next 60 days, otherwise this report will be marked as "Expired". Or mark it as "Fix Released" if the problem has been solved with a newer version of QEMU already. Thank you and sorry for the inconvenience.

** Changed in: qemu
Status: New => Incomplete

Signature · 31 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1391942

Title:
  Unnecessary events option of the trace argument with UST backend

Status in QEMU:
  Incomplete

Bug description:
  When running configure with the --enable-trace-backends=ust option and compiling. 
  The user should not have to specify a the "events" and "file" options because they are not used with that tracing framework.

  Right now, in order the use this option the need to specify a dummy
  events file.

  This fails:
  $> qemu-system-x86_64 -hda debian_wheezy_amd64_standard.qcow2 -trace -m 512
  qemu-system-x86_64: -trace -m: Invalid parameter '-m'

  This works:
  $> qemu-system-x86_64 -hda debian_wheezy_amd64_standard.qcow2 -trace events=dummy-events.txt -m 512
  VNC server running on `127.0.0.1:5900'

  I am using version:
  $> qemu-system-x86_64 --version
  QEMU emulator version 2.1.90, Copyright (c) 2003-2008 Fabrice Bellard

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1391942/+subscriptions
#4 lore raw
In reply to Francis Deslauriers

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
Status: Incomplete => Expired

Signature · 31 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1391942

Title:
  Unnecessary events option of the trace argument with UST backend

Status in QEMU:
  Expired

Bug description:
  When running configure with the --enable-trace-backends=ust option and compiling. 
  The user should not have to specify a the "events" and "file" options because they are not used with that tracing framework.

  Right now, in order the use this option the need to specify a dummy
  events file.

  This fails:
  $> qemu-system-x86_64 -hda debian_wheezy_amd64_standard.qcow2 -trace -m 512
  qemu-system-x86_64: -trace -m: Invalid parameter '-m'

  This works:
  $> qemu-system-x86_64 -hda debian_wheezy_amd64_standard.qcow2 -trace events=dummy-events.txt -m 512
  VNC server running on `127.0.0.1:5900'

  I am using version:
  $> qemu-system-x86_64 --version
  QEMU emulator version 2.1.90, Copyright (c) 2003-2008 Fabrice Bellard

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1391942/+subscriptions