X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fexit-fast%2Fust_tests_exitfast.h;fp=tests%2Fregression%2Fust%2Fexit-fast%2Fust_tests_exitfast.h;h=71d81f793ea74ac68fe01e79156f20b3ddaa5471;hp=0000000000000000000000000000000000000000;hb=ee28adfb4b4f5a6b24f4d23024ed256af37060c6;hpb=43c28d504aa8ff65609f915a04e212fb923cfeba diff --git a/tests/regression/ust/exit-fast/ust_tests_exitfast.h b/tests/regression/ust/exit-fast/ust_tests_exitfast.h new file mode 100644 index 000000000..71d81f793 --- /dev/null +++ b/tests/regression/ust/exit-fast/ust_tests_exitfast.h @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2011-2012 Mathieu Desnoyers + * Copyright (C) 2011-2012 Matthew Khouzam + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +#undef TRACEPOINT_PROVIDER +#define TRACEPOINT_PROVIDER ust_tests_exitfast + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#if !defined(_TRACEPOINT_UST_TESTS_EXITFAST_H) || defined(TRACEPOINT_HEADER_MULTI_READ) +#define _TRACEPOINT_UST_TESTS_EXITFAST_H + +#include + +TRACEPOINT_EVENT(ust_tests_exitfast, message, + TP_ARGS(char *, text), + TP_FIELDS(ctf_string(message, text)) +) + +TRACEPOINT_LOGLEVEL(ust_tests_exitfast, message, TRACE_INFO) + +#endif /* _TRACEPOINT_UST_TESTS_EXITFAST_H */ + +#undef TRACEPOINT_INCLUDE +#define TRACEPOINT_INCLUDE "./ust_tests_exitfast.h" + +#include + +#ifdef __cplusplus +} +#endif /* __cplusplus */