91aef87a2b
Patch created mechanically by running: $ chmod 644 $(git grep -lF '#!/usr/bin/env python' \ | xargs grep -L 'if __name__.*__main__') $ sed -i "/^#\!\/usr\/bin\/\(env\ \)\?python.\?$/d" \ $(git grep -lF '#!/usr/bin/env python' \ | xargs grep -L 'if __name__.*__main__') Reported-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Suggested-by: Stefan Hajnoczi <stefanha@redhat.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200130163232.10446-9-philmd@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
35 lines
968 B
Python
35 lines
968 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
trace/generated-ust.c
|
|
"""
|
|
|
|
__author__ = "Mohamad Gebai <mohamad.gebai@polymtl.ca>"
|
|
__copyright__ = "Copyright 2012, Mohamad Gebai <mohamad.gebai@polymtl.ca>"
|
|
__license__ = "GPL version 2 or (at your option) any later version"
|
|
|
|
__maintainer__ = "Stefan Hajnoczi"
|
|
__email__ = "stefanha@redhat.com"
|
|
|
|
|
|
from tracetool import out
|
|
|
|
|
|
def generate(events, backend, group):
|
|
events = [e for e in events
|
|
if "disabled" not in e.properties]
|
|
|
|
out('/* This file is autogenerated by tracetool, do not edit. */',
|
|
'',
|
|
'#include "qemu/osdep.h"',
|
|
'',
|
|
'#define TRACEPOINT_DEFINE',
|
|
'#define TRACEPOINT_CREATE_PROBES',
|
|
'',
|
|
'/* If gcc version 4.7 or older is used, LTTng ust gives a warning when compiling with',
|
|
' -Wredundant-decls.',
|
|
' */',
|
|
'#pragma GCC diagnostic ignored "-Wredundant-decls"',
|
|
'',
|
|
'#include "trace-ust-all.h"')
|