The "-*- coding: utf-8 -*-" header was needed in Python 2, but in Python 3 UTF-8 is already the default encoding of source files. It is even less necessary in .css files that do not have UTF-8 sequences at all. Suggested-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-ID: <20250929154938.594389-4-pbonzini@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
33 lines
1,002 B
Python
33 lines
1,002 B
Python
"""
|
|
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. */',
|
|
'/* SPDX-License-Identifier: GPL-2.0-or-later */',
|
|
'',
|
|
'#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"')
|