X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Fust%2Flttng-ust-abi.h;h=16c49d1665da1f059fe59ec8df4dee367906362c;hb=b35d179d7be2ab0cb4a9c698b86d78928089fc39;hp=f8ba13e56182c0cedec175016d52bc3b4eb8a37c;hpb=204d45df751cfc84133317c88bc6c46e0de12b52;p=lttng-ust.git diff --git a/include/ust/lttng-ust-abi.h b/include/ust/lttng-ust-abi.h index f8ba13e5..16c49d16 100644 --- a/include/ust/lttng-ust-abi.h +++ b/include/ust/lttng-ust-abi.h @@ -15,20 +15,24 @@ #define LTTNG_UST_SYM_NAME_LEN 128 +#define LTTNG_UST_COMM_VERSION_MAJOR 0 +#define LTTNG_UST_COMM_VERSION_MINOR 1 + enum lttng_ust_instrumentation { LTTNG_UST_TRACEPOINT = 0, + LTTNG_UST_PROBE = 1, + LTTNG_UST_FUNCTION = 2, }; -/* - * LTTng consumer mode - */ enum lttng_ust_output { - LTTNG_UST_MMAP = 0, + LTTNG_UST_MMAP = 0, }; -/* - * LTTng DebugFS ABI structures. - */ +struct lttng_ust_tracer_version { + uint32_t version; + uint32_t patchlevel; + uint32_t sublevel; +}; struct lttng_ust_channel { int overwrite; /* 1: overwrite, 0: discard */ @@ -36,7 +40,7 @@ struct lttng_ust_channel { uint64_t num_subbuf; unsigned int switch_timer_interval; /* usecs */ unsigned int read_timer_interval; /* usecs */ - enum lttng_ust_output output; /* mmap */ + enum lttng_ust_output output; /* output mode */ }; struct lttng_ust_event { @@ -47,12 +51,6 @@ struct lttng_ust_event { } u; }; -struct lttng_ust_tracer_version { - uint32_t version; - uint32_t patchlevel; - uint32_t sublevel; -}; - enum lttng_ust_context_type { LTTNG_UST_CONTEXT_VTID = 0, }; @@ -95,4 +93,6 @@ struct lttng_ust_context { #define LTTNG_UST_ENABLE _UST_CMD(0x80) #define LTTNG_UST_DISABLE _UST_CMD(0x81) +void lttng_ust_abi_exit(void); + #endif /* _LTTNG_UST_ABI_H */