X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libust-initializer.h;fp=libust-initializer.h;h=b5d88acb21f8e7c7534cd8aa6865bd5fd313af1f;hb=3c6eae02c4bd3cea00113ca9dbccf753113ffc6d;hp=0000000000000000000000000000000000000000;hpb=0c0686eefbf60682c54bc4b3c0bc593250deedc1;p=ust.git diff --git a/libust-initializer.h b/libust-initializer.h new file mode 100644 index 0000000..b5d88ac --- /dev/null +++ b/libust-initializer.h @@ -0,0 +1,48 @@ +/* Copyright (C) 2010 Nils Carlson + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +#undef TRACE_SYSTEM +#define TRACE_SYSTEM ust_dummy + +#if !defined(_TRACE_EVENT_TEST_H) || defined(TRACE_HEADER_MULTI_READ) +#define _TRACE_EVENT_TEST_H + +#include + +TRACE_EVENT(ust_dummy_event, + + TP_PROTO(int dummy_int), + + TP_ARGS(dummy_int), + + TP_STRUCT__entry( + __field( int, dummy ) + ), + + TP_fast_assign( + __entry->dummy = dummy_int; + ), + + TP_printf("dummy=%d", __entry->dummy) +); + +#endif /* _TRACE_EVENT_TEST_H */ + +/* This part must be outside protection */ +#undef TRACE_INCLUDE_PATH +#define TRACE_INCLUDE_PATH . +#define TRACE_INCLUDE_FILE libust-initializer +#include