X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Flttng%2Fust-abi.h;h=2f21e49b1d4f9efe69ca9395aa50a237ef399376;hb=902e13794ab77170a59123c3c62c5d6204941756;hp=e502f729bea83d0cec5a081cccfa8de31d443dde;hpb=e15372592f425ecfdda7f8260b4bc33db9623459;p=lttng-ust.git diff --git a/include/lttng/ust-abi.h b/include/lttng/ust-abi.h index e502f729..2f21e49b 100644 --- a/include/lttng/ust-abi.h +++ b/include/lttng/ust-abi.h @@ -29,7 +29,12 @@ enum lttng_ust_instrumentation { LTTNG_UST_TRACEPOINT = 0, LTTNG_UST_PROBE = 1, LTTNG_UST_FUNCTION = 2, - LTTNG_UST_TRACEPOINT_LOGLEVEL = 3, +}; + +enum lttng_ust_loglevel_type { + LTTNG_UST_LOGLEVEL_ALL = 0, + LTTNG_UST_LOGLEVEL_RANGE = 1, + LTTNG_UST_LOGLEVEL_SINGLE = 2, }; enum lttng_ust_output { @@ -55,8 +60,12 @@ struct lttng_ust_stream { }; struct lttng_ust_event { - char name[LTTNG_UST_SYM_NAME_LEN]; /* event name */ enum lttng_ust_instrumentation instrumentation; + char name[LTTNG_UST_SYM_NAME_LEN]; /* event name */ + + enum lttng_ust_loglevel_type loglevel_type; + int loglevel; /* value, -1: all */ + /* Per instrumentation type configuration */ union { } u; @@ -89,8 +98,7 @@ struct lttng_ust_channel_attr { struct lttng_ust_tracepoint_iter { char name[LTTNG_UST_SYM_NAME_LEN]; /* provider:name */ - char loglevel[LTTNG_UST_SYM_NAME_LEN]; /* loglevel */ - int64_t loglevel_value; + int loglevel; }; struct lttng_ust_object_data { @@ -100,6 +108,14 @@ struct lttng_ust_object_data { uint64_t memory_map_size; }; +enum lttng_ust_calibrate_type { + LTTNG_UST_CALIBRATE_TRACEPOINT, +}; + +struct lttng_ust_calibrate { + enum lttng_ust_calibrate_type type; /* type (input) */ +}; + #define _UST_CMD(minor) (minor) #define _UST_CMDR(minor, type) (minor) #define _UST_CMDW(minor, type) (minor)