1#!/usr/bin/env python 2# -*- coding: utf-8 -*- 3 4""" 5Generate .c 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 16from tracetool import out 17 18 19def begin(events): 20 out('/* This file is autogenerated by tracetool, do not edit. */', 21 '', 22 '#define TRACEPOINT_DEFINE', 23 '#define TRACEPOINT_CREATE_PROBES', 24 '', 25 '/* If gcc version 4.7 or older is used, LTTng ust gives a warning when compiling with', 26 ' -Wredundant-decls.', 27 ' */', 28 '#pragma GCC diagnostic ignored "-Wredundant-decls"', 29 '', 30 '#include "generated-ust-provider.h"') 31