[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 20/20] trace: introduce a formal group name f
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v5 20/20] trace: introduce a formal group name for trace events |
Date: |
Mon, 3 Oct 2016 15:43:14 +0100 |
User-agent: |
Mutt/1.7.0 (2016-08-17) |
On Wed, Sep 28, 2016 at 02:08:23PM +0100, Daniel P. Berrange wrote:
> 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.
>
> Signed-off-by: Daniel P. Berrange <address@hidden>
> ---
> scripts/tracetool.py | 15 ++++++++++++++-
> scripts/tracetool/__init__.py | 6 ++++--
> scripts/tracetool/backend/__init__.py | 12 ++++++------
> scripts/tracetool/backend/dtrace.py | 4 ++--
> scripts/tracetool/backend/ftrace.py | 5 +++--
> scripts/tracetool/backend/log.py | 4 ++--
> scripts/tracetool/backend/simple.py | 8 ++++----
> scripts/tracetool/backend/syslog.py | 4 ++--
> scripts/tracetool/backend/ust.py | 4 ++--
> scripts/tracetool/format/__init__.py | 4 ++--
> scripts/tracetool/format/c.py | 18 ++++++++++--------
> scripts/tracetool/format/d.py | 2 +-
> scripts/tracetool/format/h.py | 14 +++++++-------
> scripts/tracetool/format/simpletrace_stap.py | 2 +-
> scripts/tracetool/format/stap.py | 2 +-
> scripts/tracetool/format/tcg_h.py | 2 +-
> scripts/tracetool/format/tcg_helper_c.py | 2 +-
> scripts/tracetool/format/tcg_helper_h.py | 2 +-
> scripts/tracetool/format/tcg_helper_wrapper_h.py | 2 +-
> scripts/tracetool/format/ust_events_c.py | 2 +-
> scripts/tracetool/format/ust_events_h.py | 9 +++++----
> 21 files changed, 71 insertions(+), 52 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH v5 20/20] trace: introduce a formal group name for trace events,
Stefan Hajnoczi <=