Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 170f75ad80115c509d3bedfcbbf4a8237ff6f771
      
https://github.com/qemu/qemu/commit/170f75ad80115c509d3bedfcbbf4a8237ff6f771
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M net/trace-events
    M trace-events

  Log Message:
  -----------
  trace: move colo trace events to net/ sub-directory

The colo patch series added various trace events to the top
level trace-events file, despite the files using them being
in a sub-dir.

  commit 30656b097e9dd7978d3fe9416cb9f5a421a9e63e
  Author: Zhang Chen <zhangchen.f...@cn.fujitsu.com>
  Date:   Tue Sep 27 10:22:34 2016 +0800

    filter-rewriter: rewrite tcp packet to keep secondary connection

  commit f4b618360e5a81b097e2e35d52011bec3c63af68
  Author: Zhang Chen <zhangchen.f...@cn.fujitsu.com>
  Date:   Tue Sep 27 10:22:31 2016 +0800

    colo-compare: add TCP, UDP, ICMP packet comparison

    We add TCP,UDP,ICMP packet comparison to replace
    IP packet comparison. This can increase the
    accuracy of the package comparison.
    Less checkpoint more efficiency.

    Signed-off-by: Zhang Chen <zhangchen.f...@cn.fujitsu.com>
    Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com>
    Signed-off-by: Wen Congyang <we...@cn.fujitsu.com>
    Signed-off-by: Jason Wang <jasow...@redhat.com>

  commit 0682e15b19b2f41c0568142b42518b9471168597
  Author: Zhang Chen <zhangchen.f...@cn.fujitsu.com>
  Date:   Tue Sep 27 10:22:30 2016 +0800

    colo-compare: introduce packet comparison thread

  commit 59509ec16b7ee92b3f8261c554023aa1d3169317
  Author: Zhang Chen <zhangchen.f...@cn.fujitsu.com>
  Date:   Tue Sep 27 10:22:27 2016 +0800

    net/colo.c: add colo.c to define and handle packet

This moves all events into net/trace-events where they
were supposed to live.

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-2-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: 6a1b0f3aea09142cb8989ccffb3b74bb8808a00f
      
https://github.com/qemu/qemu/commit/6a1b0f3aea09142cb8989ccffb3b74bb8808a00f
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M trace/control.c
    M trace/control.h

  Log Message:
  -----------
  trace: add trace event iterator APIs

Currently methods which want to iterate over trace events,
do so using the trace_event_count() and trace_event_id()
methods. This leaks the concept of a single ID enum to
the callers. There is an alternative trace_event_pattern()
method which can be used in an iteration context, but its
design is stateless, so is not easy to expand it in the
future.

This defines a formal iterator API will provide a future-
proof way of iterating over events.

The iterator is also able to apply a pattern match filter
to events, further removing the need for the pattern

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-4-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: 0d4e995c7368f8bdc8845beb499b650386a38819
      
https://github.com/qemu/qemu/commit/0d4e995c7368f8bdc8845beb499b650386a38819
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M monitor.c
    M trace/control-target.c
    M trace/control.c
    M trace/qmp.c

  Log Message:
  -----------
  trace: convert code to use event iterators

This converts the HMP/QMP monitor API implementations
and some internal trace control methods to use the new
trace event iterator APIs.

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu>
Message-id: 1475588159-30598-5-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: 599ab2f241ee6693ea0a2700210718327b346f7f
      
https://github.com/qemu/qemu/commit/599ab2f241ee6693ea0a2700210718327b346f7f
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M trace/control-internal.h
    M trace/control.c
    M trace/control.h

  Log Message:
  -----------
  trace: remove some now unused functions

The trace_event_count, trace_event_id and
trace_event_pattern methods are no longer required
now that everything is using the iterator APIs

The trace_event_set_state and trace_event_set_vcpu_state
macros were also unused.

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-6-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: 93977402441405055500ff0389b49f6bbac9d50b
      
https://github.com/qemu/qemu/commit/93977402441405055500ff0389b49f6bbac9d50b
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M scripts/tracetool/__init__.py
    M scripts/tracetool/format/events_c.py
    M scripts/tracetool/format/events_h.py
    M stubs/trace-control.c
    M trace/control-internal.h
    M trace/control-target.c
    M trace/control.c
    M trace/event-internal.h

  Log Message:
  -----------
  trace: remove global 'uint16 dstate[]' array

Instead of having a global dstate array, declare a single
'uint16 TRACE_${EVENT_NAME}_DSTATE' variable for each
trace event. Record a pointer to this variable in the
TraceEvent struct too.

By turning trace_event_get_state_dynamic_by_id into a
macro, this still hits the fast path, and cache affinity
is ensured by declaring all the uint16 vars adjacent to
each other.

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-7-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: 99672c7167cdee40e7d81e3c8b691b19ae408816
      
https://github.com/qemu/qemu/commit/99672c7167cdee40e7d81e3c8b691b19ae408816
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M scripts/tracetool/backend/ftrace.py
    M scripts/tracetool/backend/log.py
    M scripts/tracetool/backend/syslog.py

  Log Message:
  -----------
  trace: remove duplicate control.h includes in generated-tracers.h

The format/h.py file adds an include for control.h to
generated-tracers.h. ftrace, log and syslog, then
add more duplicate includes for control.h.

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-8-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: a82417b50bc80310b6294ae2698303c3d67f900c
      
https://github.com/qemu/qemu/commit/a82417b50bc80310b6294ae2698303c3d67f900c
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M trace/event-internal.h

  Log Message:
  -----------
  trace: break circular dependency in event-internal.h

Currently event-internal.h includes generated-events.h,
while generated-events.h includes event-internal.h
causing a circular dependency.

event-internal.h requires that the content of
generated-events.h comes first, so that it can see
the typedefs for TraceEventID and TraceEventVCPUID.

Switching the TraceEvent struct to use uint32_t
for the two ID fields removes the dependency on
the typedef, allowing events-internal.h to be a
self-contained header. This will then let the patch
following this move event-internal.h to the top of
generated-events.h, so we can expose TraceEvent
struct variables in generated-events.h

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-9-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: 79218be42b835cbc7bd1b0fbd07d115add6e7605
      
https://github.com/qemu/qemu/commit/79218be42b835cbc7bd1b0fbd07d115add6e7605
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M scripts/tracetool/__init__.py
    M scripts/tracetool/format/events_c.py
    M scripts/tracetool/format/events_h.py
    M trace/control-internal.h
    M trace/control.c

  Log Message:
  -----------
  trace: give each trace event a named TraceEvent struct

Currently we only expose a TraceEvent array, which must
be indexed via the TraceEventID enum constants. This
changes the generator to expose a named TraceEvent
instance for each event, with an _EVENT suffix.

Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu>
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-10-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: ef4c9fc8542e06b1d567172c04b0c0377c7ab0c5
      
https://github.com/qemu/qemu/commit/ef4c9fc8542e06b1d567172c04b0c0377c7ab0c5
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M scripts/tracetool/backend/simple.py
    M scripts/tracetool/format/events_c.py
    M scripts/tracetool/format/events_h.py
    M scripts/tracetool/format/h.py
    M trace/control-internal.h
    M trace/control-target.c
    M trace/control.c
    M trace/control.h
    M trace/event-internal.h
    M trace/simple.c
    M trace/simple.h

  Log Message:
  -----------
  trace: remove the TraceEventID and TraceEventVCPUID enums

The TraceEventID and TraceEventVCPUID enums constants are
no longer actually used for anything critical.

The TRACE_EVENT_COUNT limit is used to determine the size
of the TraceEvents array, and can be removed if we just
NULL terminate the array instead.

The TRACE_VCPU_EVENT_COUNT limit is used as a magic value
for marking non-vCPU events, and also for declaring the
size of the trace dstate mask in the CPUState struct.
The former usage can be replaced by a dedicated constant
TRACE_EVENT_VCPU_NONE, defined as (uint32_t)-1. For the
latter usage, we can simply define a constant for the
number of VCPUs, avoiding the need for the full enum.

The only other usages of the enum values can be replaced
by accesing the id/vcpu_id fields via the named TraceEvent
structs.

Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu>
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-11-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: 7f1b588f20d027730676e627713ae3bbf6baab04
      
https://github.com/qemu/qemu/commit/7f1b588f20d027730676e627713ae3bbf6baab04
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M scripts/simpletrace.py
    M scripts/tracetool/format/simpletrace_stap.py
    M trace/simple.c

  Log Message:
  -----------
  trace: emit name <-> ID mapping in simpletrace header

Currently simpletrace assumes that events are given IDs
starting from 0, based on the order in which they appear
in the trace-events file, with no gaps. When the
trace-events file is split up, this assumption becomes
problematic.

To deal with this, extend the simpletrace format so that
it outputs a table of event name <-> ID mappings. That
will allow QEMU to assign arbitrary IDs to events without
breaking simpletrace parsing.

The v3 simple trace format was

  FILE HEADER
  EVENT TRACE RECORD 0
  EVENT TRACE RECORD 1
  ...
  EVENT TRACE RECORD N

The v4 simple trace format is now

  FILE HEADER
  EVENT MAPPING RECORD 0
  EVENT MAPPING RECORD 1
  ...
  EVENT MAPPING RECORD M
  EVENT TRACE RECORD RECORD 0
  EVENT TRACE RECORD RECORD 1
  ...
  EVENT TRACE RECORD N

Although this shows all the mapping records being emitted
upfront, this is not required by the format. While the main
simpletrace backend will emit all mappings at startup,
the systemtap simpletrace.stp script will emit the mappings
at first use. eg

  FILE HEADER
  ...
  EVENT MAPPING RECORD 0
  EVENT TRACE RECORD RECORD 0
  EVENT TRACE RECORD RECORD 1
  EVENT MAPPING RECORD 1
  EVENT TRACE RECORD RECORD 2
  ...
  EVENT TRACE RECORD N

This is more space efficient given that most trace records
only include a subset of events.

In modifying the systemtap simpletrace code, a 'begin' probe
was added to emit the trace event header, so you no longer
need to add '--no-header' when running simpletrace.py for
systemtap generated trace files.

Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-12-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: 8ed5372874377af4a84a330eeaff1d9d663ca930
      
https://github.com/qemu/qemu/commit/8ed5372874377af4a84a330eeaff1d9d663ca930
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M trace/ftrace.c

  Log Message:
  -----------
  trace: don't abort qemu if ftrace can't be initialized

If the ftrace backend is compiled into QEMU, any attempt
to start QEMU while non-root will fail due to the
inability to open /sys/kernel/debug/tracing/tracing_on.

Add a fallback into the code so that it connects up the
trace_marker_fd variable to /dev/null when getting
EACCES on the 'trace_on' file. This allows QEMU to
run, with ftrace turned into a no-op.

[Fixed s/setting/getting/ and s/EACCESS/EACCES/ errors pointed out by
Eric Blake <ebl...@redhat.com>.
--Stefan]

Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-13-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: fe4db84d49545e669806d0cce12b3aa384e04ac3
      
https://github.com/qemu/qemu/commit/fe4db84d49545e669806d0cce12b3aa384e04ac3
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M bsd-user/main.c
    M include/qemu/module.h
    M linux-user/main.c
    M qemu-img.c
    M qemu-io.c
    M qemu-nbd.c
    M scripts/tracetool/format/events_c.py
    M trace/control-internal.h
    M trace/control.c
    M trace/control.h
    M vl.c

  Log Message:
  -----------
  trace: provide mechanism for registering trace events

Remove the notion of there being a single global array
of trace events, by introducing a method for registering
groups of events.

The module_call_init() needs to be invoked at the start
of any program that wants to make use of the trace
support. Currently this covers system emulators qemu-nbd,
qemu-img and qemu-io.

[Squashed the following fix from Daniel P. Berrange
<berra...@redhat.com>:

linux-user/bsd-user: initialize trace events subsystem

The bsd-user/linux-user programs make use of the CPU emulation
code and this now requires that the trace events subsystem
is enabled, otherwise it'll crash trying to allocate an empty
trace events bitmap for the CPU object.

--Stefan]

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-14-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: b7d48952c375842bd669460fd8384d90cc12286c
      
https://github.com/qemu/qemu/commit/b7d48952c375842bd669460fd8384d90cc12286c
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M include/qom/cpu.h
    M qom/cpu.c
    M trace/control.c
    M trace/control.h

  Log Message:
  -----------
  trace: dynamically allocate trace_dstate in CPUState

The CPUState struct has a bitmap tracking which VCPU
events are currently active. This is indexed based on
the event ID values, and sized according the maximum
TraceEventVCPUID enum value.

When we start dynamically assigning IDs at runtime,
we can't statically declare a bitmap without making
an assumption about the max event count. This problem
can be solved by dynamically allocating the per-CPU
dstate bitmap.

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-15-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: ca3fa0e88f3a8e22f774751bcb10cc205772c2fc
      
https://github.com/qemu/qemu/commit/ca3fa0e88f3a8e22f774751bcb10cc205772c2fc
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M scripts/tracetool/format/events_c.py
    M scripts/tracetool/format/events_h.py
    M trace/control.c

  Log Message:
  -----------
  trace: dynamically allocate event IDs at runtime

Instead of having the code generator assign event IDs and
event VCPU IDs, assign them when the events are registered
at runtime. This will allow code to be generated from
individual trace-events without having to figure out
globally unique numbering at build time.

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-16-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: 347701879ceaa9a03093364bc519042b248b4967
      
https://github.com/qemu/qemu/commit/347701879ceaa9a03093364bc519042b248b4967
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M Makefile
    M include/trace-tcg.h
    M include/trace.h
    M scripts/tracetool/format/c.py
    R scripts/tracetool/format/events_c.py
    R scripts/tracetool/format/events_h.py
    M scripts/tracetool/format/h.py
    M trace/Makefile.objs
    M trace/control.h
    M trace/simple.h

  Log Message:
  -----------
  trace: get rid of generated-events.h/generated-events.c

Currently the generated-events.[ch] files contain the
event dstates, constants and TraceEvent structs, while the
generated-tracers.[ch] files contain the actual trace
probe logic. With the removal of usage of the event enums
from the API there is no longer any compelling reason for
the separation between these files. The generated-events.h
content is only ever needed from the generated-tracers.[ch]
files.

The enums/constants/structs from generated-events.[ch] are
thus moved into the generated-tracers.[ch], so that there
is one less file to be generated.

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-17-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: d1b97bcea3586bad572879f22437f44c690874cb
      
https://github.com/qemu/qemu/commit/d1b97bcea3586bad572879f22437f44c690874cb
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M scripts/simpletrace.py
    M scripts/tracetool/__init__.py

  Log Message:
  -----------
  trace: rename _read_events to read_events

The _read_events method is used by callers outside of
its module, so should be a public method, not private.

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-18-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: 9096b78a38a22963ca59bb16d54a772aa86d5159
      
https://github.com/qemu/qemu/commit/9096b78a38a22963ca59bb16d54a772aa86d5159
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M scripts/tracetool.py
    M scripts/tracetool/__init__.py

  Log Message:
  -----------
  trace: push reading of events up a level to tracetool main

Move the reading of events out of the 'tracetool.generate'
method and into tracetool.main, so that the latter is not
tied to generating from a single source of events.

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-19-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: 0bc6484d58bd7f43fbf6fc87c7974910b698489c
      
https://github.com/qemu/qemu/commit/0bc6484d58bd7f43fbf6fc87c7974910b698489c
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M Makefile.target
    M scripts/tracetool.py
    M trace/Makefile.objs

  Log Message:
  -----------
  trace: pass trace-events to tracetool as a positional param

Instead of reading the contents of 'trace-events' from stdin,
accept the filename as a positional parameter. This also
allows for reading from multiple files, though this facility
is not used at this time.

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-id: 1475588159-30598-20-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: 80dd5c4918aba98f025ca60c838dd68b6e33ff0e
      
https://github.com/qemu/qemu/commit/80dd5c4918aba98f025ca60c838dd68b6e33ff0e
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M scripts/tracetool.py
    M scripts/tracetool/__init__.py
    M scripts/tracetool/backend/__init__.py
    M scripts/tracetool/backend/dtrace.py
    M scripts/tracetool/backend/ftrace.py
    M scripts/tracetool/backend/log.py
    M scripts/tracetool/backend/simple.py
    M scripts/tracetool/backend/syslog.py
    M scripts/tracetool/backend/ust.py
    M scripts/tracetool/format/__init__.py
    M scripts/tracetool/format/c.py
    M scripts/tracetool/format/d.py
    M scripts/tracetool/format/h.py
    M scripts/tracetool/format/simpletrace_stap.py
    M scripts/tracetool/format/stap.py
    M scripts/tracetool/format/tcg_h.py
    M scripts/tracetool/format/tcg_helper_c.py
    M scripts/tracetool/format/tcg_helper_h.py
    M scripts/tracetool/format/tcg_helper_wrapper_h.py
    M scripts/tracetool/format/ust_events_c.py
    M scripts/tracetool/format/ust_events_h.py

  Log Message:
  -----------
  trace: introduce a formal group name for trace events

The declarations in the generated-tracers.h file are
assuming there's only ever going to be one instance
of this header, as they are not namespaced. When we
have one header per event group, if a single source
file needs to include multiple sets of trace events,
the symbols will all clash.

This change thus introduces a '--group NAME' arg to the
'tracetool' program. This will cause all the symbols in
the generated header files to be given a unique namespace.

If no group is given, the group name 'common' is used,
which is suitable for the current usage where there is
only one global trace-events file used for code generation.

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu>
Message-id: 1475588159-30598-21-git-send-email-berra...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: f5e2b3be82ec7e2ec8fed37da3fb2da469ae7d4b
      
https://github.com/qemu/qemu/commit/f5e2b3be82ec7e2ec8fed37da3fb2da469ae7d4b
  Author: Lluís Vilanova <vilan...@ac.upc.edu>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M trace-events

  Log Message:
  -----------
  trace: Add missing execution mode of guest events

Add missing execution mode documentation for the 'guest_cpu_enter' and
'guest_cpu_reset' events.

Signed-off-by: Lluís Vilanova <vilan...@ac.upc.edu>
Message-id: 147566900921.7708.656450813307396468.st...@fimbulvetr.bsc.es
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>


  Commit: ae4b28ace9554385eec50e2e330526159836c33d
      
https://github.com/qemu/qemu/commit/ae4b28ace9554385eec50e2e330526159836c33d
  Author: Peter Maydell <peter.mayd...@linaro.org>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M Makefile
    M Makefile.target
    M bsd-user/main.c
    M include/qemu/module.h
    M include/qom/cpu.h
    M include/trace-tcg.h
    M include/trace.h
    M linux-user/main.c
    M monitor.c
    M net/trace-events
    M qemu-img.c
    M qemu-io.c
    M qemu-nbd.c
    M qom/cpu.c
    M scripts/simpletrace.py
    M scripts/tracetool.py
    M scripts/tracetool/__init__.py
    M scripts/tracetool/backend/__init__.py
    M scripts/tracetool/backend/dtrace.py
    M scripts/tracetool/backend/ftrace.py
    M scripts/tracetool/backend/log.py
    M scripts/tracetool/backend/simple.py
    M scripts/tracetool/backend/syslog.py
    M scripts/tracetool/backend/ust.py
    M scripts/tracetool/format/__init__.py
    M scripts/tracetool/format/c.py
    M scripts/tracetool/format/d.py
    R scripts/tracetool/format/events_c.py
    R scripts/tracetool/format/events_h.py
    M scripts/tracetool/format/h.py
    M scripts/tracetool/format/simpletrace_stap.py
    M scripts/tracetool/format/stap.py
    M scripts/tracetool/format/tcg_h.py
    M scripts/tracetool/format/tcg_helper_c.py
    M scripts/tracetool/format/tcg_helper_h.py
    M scripts/tracetool/format/tcg_helper_wrapper_h.py
    M scripts/tracetool/format/ust_events_c.py
    M scripts/tracetool/format/ust_events_h.py
    M stubs/trace-control.c
    M trace-events
    M trace/Makefile.objs
    M trace/control-internal.h
    M trace/control-target.c
    M trace/control.c
    M trace/control.h
    M trace/event-internal.h
    M trace/ftrace.c
    M trace/qmp.c
    M trace/simple.c
    M trace/simple.h
    M vl.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' 
into staging

# gpg: Signature made Wed 12 Oct 2016 09:43:03 BST
# gpg:                using RSA key 0x9CA4ABB381AB73C8
# gpg: Good signature from "Stefan Hajnoczi <stefa...@redhat.com>"
# gpg:                 aka "Stefan Hajnoczi <stefa...@gmail.com>"
# Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35  775A 9CA4 ABB3 81AB 73C8

* remotes/stefanha/tags/tracing-pull-request:
  trace: Add missing execution mode of guest events
  trace: introduce a formal group name for trace events
  trace: pass trace-events to tracetool as a positional param
  trace: push reading of events up a level to tracetool main
  trace: rename _read_events to read_events
  trace: get rid of generated-events.h/generated-events.c
  trace: dynamically allocate event IDs at runtime
  trace: dynamically allocate trace_dstate in CPUState
  trace: provide mechanism for registering trace events
  trace: don't abort qemu if ftrace can't be initialized
  trace: emit name <-> ID mapping in simpletrace header
  trace: remove the TraceEventID and TraceEventVCPUID enums
  trace: give each trace event a named TraceEvent struct
  trace: break circular dependency in event-internal.h
  trace: remove duplicate control.h includes in generated-tracers.h
  trace: remove global 'uint16 dstate[]' array
  trace: remove some now unused functions
  trace: convert code to use event iterators
  trace: add trace event iterator APIs
  trace: move colo trace events to net/ sub-directory

Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>


Compare: https://github.com/qemu/qemu/compare/6b39b06339ee...ae4b28ace955

Reply via email to