~ubuntu-branches/ubuntu/vivid/qemu/vivid

« back to all changes in this revision

Viewing changes to scripts/tracetool/format/ust_events_h.py

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2014-02-25 22:31:43 UTC
  • mfrom: (1.8.5)
  • Revision ID: package-import@ubuntu.com-20140225223143-odhqxfc60wxrjl15
Tags: 2.0.0~rc1+dfsg-0ubuntu1
* Merge 2.0.0-rc1
* debian/rules: consolidate ppc filter entries.
* Move qemu-system-arch64 into qemu-system-arm
* debian/patches/define-trusty-machine-type.patch: define a trusty machine
  type, currently the same as pc-i440fx-2.0, to put is in a better position
  to enable live migrations from trusty onward.  (LP: #1294823)
* debian/control: build-dep on libfdt >= 1.4.0  (LP: #1295072)
* Merge latest upstream git to commit dc9528f
* Debian/rules:
  - remove -enable-uname-release=2.6.32
  - don't make the aarch64 target Ubuntu-specific.
* Remove patches which are now upstream:
  - fix-smb-security-share.patch
  - slirp-smb-redirect-port-445-too.patch 
  - linux-user-Implement-sendmmsg-syscall.patch (better version is upstream)
  - signal-added-a-wrapper-for-sigprocmask-function.patch
  - ubuntu/signal-sigsegv-protection-on-do_sigprocmask.patch
  - ubuntu/Don-t-block-SIGSEGV-at-more-places.patch
  - ubuntu/ppc-force-cpu-threads-count-to-be-power-of-2.patch
* add link for /usr/share/qemu/bios-256k.bin
* Remove all linaro patches.
* Remove all arm64/ patches.  Many but not all are upstream.
* Remove CVE-2013-4377.patch which is upstream.
* debian/control-in: don't make qemu-system-aarch64 ubuntu-specific

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# -*- coding: utf-8 -*-
 
3
 
 
4
"""
 
5
Generate .h for LTTng ust event description.
 
6
"""
 
7
 
 
8
__author__     = "Mohamad Gebai <mohamad.gebai@polymtl.ca>"
 
9
__copyright__  = "Copyright 2012, Mohamad Gebai <mohamad.gebai@polymtl.ca>"
 
10
__license__    = "GPL version 2 or (at your option) any later version"
 
11
 
 
12
__maintainer__ = "Stefan Hajnoczi"
 
13
__email__      = "stefanha@redhat.com"
 
14
 
 
15
 
 
16
from tracetool import out
 
17
 
 
18
 
 
19
def begin(events):
 
20
    out('/* This file is autogenerated by tracetool, do not edit. */',
 
21
        '',
 
22
        '#undef TRACEPOINT_PROVIDER',
 
23
        '#define TRACEPOINT_PROVIDER qemu',
 
24
        '',
 
25
        '#undef TRACEPOINT_INCLUDE_FILE',
 
26
        '#define TRACEPOINT_INCLUDE_FILE ./generated-ust-provider.h',
 
27
        '',
 
28
        '#if !defined (TRACE__GENERATED_UST_H) || defined(TRACEPOINT_HEADER_MULTI_READ)',
 
29
        '#define TRACE__GENERATED_UST_H',
 
30
        '',
 
31
        '#include "qemu-common.h"',
 
32
        '#include <lttng/tracepoint.h>',
 
33
        '',
 
34
        '/*',
 
35
        ' * LTTng ust 2.0 does not allow you to use TP_ARGS(void) for tracepoints',
 
36
        ' * requiring no arguments. We define these macros introduced in more recent'
 
37
        ' * versions of LTTng ust as a workaround',
 
38
        ' */',
 
39
        '#ifndef _TP_EXPROTO1',
 
40
        '#define _TP_EXPROTO1(a)               void',
 
41
        '#endif',
 
42
        '#ifndef _TP_EXDATA_PROTO1',
 
43
        '#define _TP_EXDATA_PROTO1(a)          void *__tp_data',
 
44
        '#endif',
 
45
        '#ifndef _TP_EXDATA_VAR1',
 
46
        '#define _TP_EXDATA_VAR1(a)            __tp_data',
 
47
        '#endif',
 
48
        '#ifndef _TP_EXVAR1',
 
49
        '#define _TP_EXVAR1(a)',
 
50
        '#endif',
 
51
        '')
 
52
 
 
53
def end(events):
 
54
    out('#endif /* TRACE__GENERATED_UST_H */',
 
55
        '',
 
56
        '/* This part must be outside ifdef protection */',
 
57
        '#include <lttng/tracepoint-event.h>')