Add calibrate command
[lttng-tools.git] / include / lttng / lttng.h
index 89f9db3d3e5c8b70a24e913b187f0bbcd81e5e9a..c08580ac2fc70d076e1ddedbd294a6751f10c76e 100644 (file)
  * Domain type are the different possible tracers.
  */
 enum lttng_domain_type {
-       LTTNG_DOMAIN_KERNEL,
-       LTTNG_DOMAIN_UST,
-       LTTNG_DOMAIN_UST_EXEC_NAME,
-       LTTNG_DOMAIN_UST_PID,
-       LTTNG_DOMAIN_UST_PID_FOLLOW_CHILDREN,
+       LTTNG_DOMAIN_KERNEL                   = 1,
+       LTTNG_DOMAIN_UST                      = 2,
+       LTTNG_DOMAIN_UST_EXEC_NAME            = 3,
+       LTTNG_DOMAIN_UST_PID                  = 4,
+       LTTNG_DOMAIN_UST_PID_FOLLOW_CHILDREN  = 5,
 };
 
 /*
@@ -90,6 +90,10 @@ enum lttng_event_context_type {
        LTTNG_EVENT_CONTEXT_VPPID              = 9,
 };
 
+enum lttng_calibrate_type {
+       LTTNG_CALIBRATE_FUNCTION               = 0,
+};
+
 struct lttng_domain {
        enum lttng_domain_type type;
        union {
@@ -167,6 +171,10 @@ struct lttng_channel {
        struct lttng_channel_attr attr;
 };
 
+struct lttng_calibrate {
+       enum lttng_calibrate_type type;
+};
+
 /*
  * Basic session information.
  *
@@ -333,4 +341,10 @@ extern int lttng_disable_event(struct lttng_domain *domain, const char *name,
 extern int lttng_disable_channel(struct lttng_domain *domain,
                const char *name);
 
+/*
+ * Calibrate LTTng overhead.
+ */
+extern int lttng_calibrate(struct lttng_domain *domain,
+               struct lttng_calibrate *calibrate);
+
 #endif /* _LTTNG_H */
This page took 0.024024 seconds and 4 git commands to generate.