Blame liblttng-ust-python-agent/lttng_ust_python.h

Packit c04fcb
#undef TRACEPOINT_PROVIDER
Packit c04fcb
#define TRACEPOINT_PROVIDER lttng_python
Packit c04fcb
Packit c04fcb
#if !defined(_TRACEPOINT_LTTNG_UST_PYTHON_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
Packit c04fcb
#define _TRACEPOINT_LTTNG_UST_PYTHON_H
Packit c04fcb
Packit c04fcb
/*
Packit c04fcb
 * Copyright (C) 2014 - David Goulet <dgoulet@efficios.com>
Packit c04fcb
 *
Packit c04fcb
 * This library is free software; you can redistribute it and/or modify it
Packit c04fcb
 * under the terms of the GNU Lesser General Public License as published by the
Packit c04fcb
 * Free Software Foundation; version 2.1 of the License.
Packit c04fcb
 *
Packit c04fcb
 * This library is distributed in the hope that it will be useful, but WITHOUT
Packit c04fcb
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
Packit c04fcb
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
Packit c04fcb
 * for more details.
Packit c04fcb
 *
Packit c04fcb
 * You should have received a copy of the GNU Lesser General Public License
Packit c04fcb
 * along with this library; if not, write to the Free Software Foundation,
Packit c04fcb
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
Packit c04fcb
 */
Packit c04fcb
Packit c04fcb
#include <lttng/tracepoint.h>
Packit c04fcb
#include <stdbool.h>
Packit c04fcb
Packit c04fcb
TRACEPOINT_EVENT(lttng_python, event,
Packit c04fcb
	TP_ARGS(
Packit c04fcb
		const char *, asctime,
Packit c04fcb
		const char *, msg,
Packit c04fcb
		const char *, logger_name,
Packit c04fcb
		const char *, funcName,
Packit c04fcb
		int, lineno,
Packit c04fcb
		int, int_loglevel,
Packit c04fcb
		int, thread,
Packit c04fcb
		const char *, threadName
Packit c04fcb
	),
Packit c04fcb
	TP_FIELDS(
Packit c04fcb
		ctf_string(asctime, asctime)
Packit c04fcb
		ctf_string(msg, msg)
Packit c04fcb
		ctf_string(logger_name, logger_name)
Packit c04fcb
		ctf_string(funcName, funcName)
Packit c04fcb
		ctf_integer(unsigned int, lineno, lineno)
Packit c04fcb
		ctf_integer(unsigned int, int_loglevel, int_loglevel)
Packit c04fcb
		ctf_integer(unsigned int, thread, thread)
Packit c04fcb
		ctf_string(threadName, threadName)
Packit c04fcb
	)
Packit c04fcb
)
Packit c04fcb
Packit c04fcb
#endif /* _TRACEPOINT_LTTNG_UST_PYTHON_H */
Packit c04fcb
Packit c04fcb
#undef TRACEPOINT_INCLUDE
Packit c04fcb
#define TRACEPOINT_INCLUDE "./lttng_ust_python.h"
Packit c04fcb
Packit c04fcb
/* This part must be outside ifdef protection */
Packit c04fcb
#include <lttng/tracepoint-event.h>