X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fcompile%2Fapi1%2Fsame_line_tracepoint%2Fust_tests_sameline.h;fp=tests%2Fcompile%2Fapi1%2Fsame_line_tracepoint%2Fust_tests_sameline.h;h=96be96a84c664a2237dce6c15a44a28e9ca30295;hb=bebb067ef8020d5c36ab48271b0d9d9bb2b24e11;hp=0000000000000000000000000000000000000000;hpb=4405cc3e105e60c95939e595b8dddcd0940a0b92;p=lttng-ust.git diff --git a/tests/compile/api1/same_line_tracepoint/ust_tests_sameline.h b/tests/compile/api1/same_line_tracepoint/ust_tests_sameline.h new file mode 100644 index 00000000..96be96a8 --- /dev/null +++ b/tests/compile/api1/same_line_tracepoint/ust_tests_sameline.h @@ -0,0 +1,33 @@ +/* + * SPDX-License-Identifier: MIT + * + * Copyright (C) 2011 Mathieu Desnoyers + */ + +#undef LTTNG_UST_TRACEPOINT_PROVIDER +#define LTTNG_UST_TRACEPOINT_PROVIDER ust_tests_sameline + +#if !defined(_TRACEPOINT_UST_TESTS_SAMELINE_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ) +#define _TRACEPOINT_UST_TESTS_SAMELINE_H + +#include + +LTTNG_UST_TRACEPOINT_EVENT(ust_tests_sameline, event1, + LTTNG_UST_TP_ARGS(), + LTTNG_UST_TP_FIELDS() +) +LTTNG_UST_TRACEPOINT_LOGLEVEL(ust_tests_sameline, event1, LTTNG_UST_TRACEPOINT_LOGLEVEL_CRIT) + +LTTNG_UST_TRACEPOINT_EVENT(ust_tests_sameline, event2, + LTTNG_UST_TP_ARGS(), + LTTNG_UST_TP_FIELDS() +) +LTTNG_UST_TRACEPOINT_LOGLEVEL(ust_tests_sameline, event2, LTTNG_UST_TRACEPOINT_LOGLEVEL_CRIT) + +#endif /* _TRACEPOINT_UST_TESTS_SAMELINE_H */ + +#undef LTTNG_UST_TRACEPOINT_INCLUDE +#define LTTNG_UST_TRACEPOINT_INCLUDE "./ust_tests_sameline.h" + +/* This part must be outside ifdef protection */ +#include