SoW-2020-0002: Trace Hit Counters
[deliverable/lttng-ust.git] / include / lttng / ust-ctl.h
index 3260400602f26018ac7a3bd24eb59aefd87ee439..56e7951c6a7212454f065764f585367f710113d3 100644 (file)
@@ -539,13 +539,15 @@ int ustctl_recv_register_event(int sock,
                                         */
        size_t *nr_fields,
        struct ustctl_field **fields,
-       char **model_emf_uri);
+       char **model_emf_uri,
+       uint64_t *user_token);
 
 /*
  * Returns 0 on success, negative error value on error.
  */
 int ustctl_reply_register_event(int sock,
-       uint32_t id,                    /* event id (input) */
+       uint32_t event_id,              /* event id (input) */
+       uint64_t counter_index,         /* counter index (input) */
        int ret_code);                  /* return code. 0 ok, negative error */
 
 /*
@@ -622,7 +624,8 @@ struct ustctl_daemon_counter *
                const int *counter_cpu_fds,
                enum ustctl_counter_bitness bitness,
                enum ustctl_counter_arithmetic arithmetic,
-               uint32_t alloc_flags);
+               uint32_t alloc_flags,
+               bool coalesce_hits);
 
 int ustctl_create_counter_data(struct ustctl_daemon_counter *counter,
                struct lttng_ust_object_data **counter_data);
@@ -647,6 +650,11 @@ int ustctl_send_counter_cpu_data_to_ust(int sock,
                struct lttng_ust_object_data *counter_data,
                struct lttng_ust_object_data *counter_cpu_data);
 
+int ustctl_counter_create_event(int sock,
+               struct lttng_ust_counter_event *counter_event,
+               struct lttng_ust_object_data *counter_data,
+               struct lttng_ust_object_data **counter_event_data);
+
 int ustctl_counter_read(struct ustctl_daemon_counter *counter,
                const size_t *dimension_indexes,
                int cpu, int64_t *value,
This page took 0.024468 seconds and 5 git commands to generate.