X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Ftracepoint-types.h;h=ceb476a6f9891d760f0e43e60bda928aed2acae0;hb=c0c0989ab70574e09b2f7e8b48c2da6af664a849;hp=37a7662b605f8a9deb5bb3082bd65437c11312e7;hpb=628e1d81fe575cfd281d8e0758b672b23d890c09;p=lttng-ust.git diff --git a/include/lttng/tracepoint-types.h b/include/lttng/tracepoint-types.h index 37a7662b..ceb476a6 100644 --- a/include/lttng/tracepoint-types.h +++ b/include/lttng/tracepoint-types.h @@ -1,29 +1,25 @@ -#ifndef _LTTNG_TRACEPOINT_TYPES_H -#define _LTTNG_TRACEPOINT_TYPES_H - /* - * Copyright (c) 2011 - Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. + * SPDX-License-Identifier: MIT * - * Permission is hereby granted to use or copy this program - * for any purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is granted, - * provided the above notices are retained, and a notice that the code was - * modified is included with the above copyright notice. + * Copyright (C) 2011-2012 Mathieu Desnoyers */ -struct tracepoint_probe { - void *func; +#ifndef _LTTNG_TRACEPOINT_TYPES_H +#define _LTTNG_TRACEPOINT_TYPES_H + +struct lttng_ust_tracepoint_probe { + void (*func)(void); void *data; }; -struct tracepoint { +#define LTTNG_UST_TRACEPOINT_PADDING 16 +struct lttng_ust_tracepoint { const char *name; int state; - struct tracepoint_probe *probes; + struct lttng_ust_tracepoint_probe *probes; int *tracepoint_provider_ref; + const char *signature; + char padding[LTTNG_UST_TRACEPOINT_PADDING]; }; #endif /* _LTTNG_TRACEPOINT_TYPES_H */