Blame tests/hello/ust_tests_hello.h

Packit c04fcb
#undef TRACEPOINT_PROVIDER
Packit c04fcb
#define TRACEPOINT_PROVIDER ust_tests_hello
Packit c04fcb
Packit c04fcb
#if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
Packit c04fcb
#define _TRACEPOINT_UST_TESTS_HELLO_H
Packit c04fcb
Packit c04fcb
/*
Packit c04fcb
 * Copyright (C) 2011  Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Packit c04fcb
 *
Packit c04fcb
 * Permission is hereby granted, free of charge, to any person obtaining a copy
Packit c04fcb
 * of this software and associated documentation files (the "Software"), to deal
Packit c04fcb
 * in the Software without restriction, including without limitation the rights
Packit c04fcb
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
Packit c04fcb
 * copies of the Software, and to permit persons to whom the Software is
Packit c04fcb
 * furnished to do so, subject to the following conditions:
Packit c04fcb
 *
Packit c04fcb
 * The above copyright notice and this permission notice shall be included in
Packit c04fcb
 * all copies or substantial portions of the Software.
Packit c04fcb
 *
Packit c04fcb
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Packit c04fcb
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Packit c04fcb
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Packit c04fcb
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Packit c04fcb
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
Packit c04fcb
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
Packit c04fcb
 * SOFTWARE.
Packit c04fcb
 */
Packit c04fcb
Packit c04fcb
#include <lttng/tracepoint.h>
Packit c04fcb
#include <stdbool.h>
Packit c04fcb
Packit c04fcb
TRACEPOINT_EVENT(ust_tests_hello, tptest,
Packit c04fcb
	TP_ARGS(int, anint, int, netint, long *, values,
Packit c04fcb
		char *, text, size_t, textlen,
Packit c04fcb
		double, doublearg, float, floatarg,
Packit c04fcb
		bool, boolarg),
Packit c04fcb
	TP_FIELDS(
Packit c04fcb
		ctf_integer(int, intfield, anint)
Packit c04fcb
		ctf_integer_hex(int, intfield2, anint)
Packit c04fcb
		ctf_integer(long, longfield, anint)
Packit c04fcb
		ctf_integer_network(int, netintfield, netint)
Packit c04fcb
		ctf_integer_network_hex(int, netintfieldhex, netint)
Packit c04fcb
		ctf_array(long, arrfield1, values, 3)
Packit c04fcb
		ctf_array_text(char, arrfield2, text, 10)
Packit c04fcb
		ctf_sequence(char, seqfield1, text,
Packit c04fcb
			     size_t, textlen)
Packit c04fcb
		ctf_sequence_text(char, seqfield2, text,
Packit c04fcb
			     size_t, textlen)
Packit c04fcb
		ctf_string(stringfield, text)
Packit c04fcb
		ctf_float(float, floatfield, floatarg)
Packit c04fcb
		ctf_float(double, doublefield, doublearg)
Packit c04fcb
		ctf_integer(bool, boolfield, boolarg)
Packit c04fcb
		ctf_integer_nowrite(int, filterfield, anint)
Packit c04fcb
	)
Packit c04fcb
)
Packit c04fcb
Packit c04fcb
TRACEPOINT_EVENT(ust_tests_hello, tptest_sighandler,
Packit c04fcb
	TP_ARGS(),
Packit c04fcb
	TP_FIELDS()
Packit c04fcb
)
Packit c04fcb
Packit c04fcb
#endif /* _TRACEPOINT_UST_TESTS_HELLO_H */
Packit c04fcb
Packit c04fcb
#undef TRACEPOINT_INCLUDE
Packit c04fcb
#define TRACEPOINT_INCLUDE "./ust_tests_hello.h"
Packit c04fcb
Packit c04fcb
/* This part must be outside ifdef protection */
Packit c04fcb
#include <lttng/tracepoint-event.h>