tracepoint: validate provider/event name length with static assert
[lttng-ust.git] / src / lib / lttng-ust-tracepoint / tracepoint.c
index 03e1e0bba807a27219de30a364ff7f3af911f81a..e43c1aeb312967aefaec9e52757dad447fb7034e 100644 (file)
@@ -130,6 +130,10 @@ struct callsite_entry {
        bool tp_entry_callsite_ref; /* Has a tp_entry took a ref on this callsite */
 };
 
+lttng_ust_static_assert(LTTNG_UST_TRACEPOINT_NAME_LEN_MAX == LTTNG_UST_ABI_SYM_NAME_LEN,
+               "Tracepoint name max length mismatch between UST ABI and tracepoint API",
+               Tracepoint_name_max_length_mismatch);
+
 /* coverity[+alloc] */
 static void *allocate_probes(int count)
 {
This page took 0.027383 seconds and 4 git commands to generate.