Add flush buffers command
[lttng-ust.git] / libustctl / ustctl.c
index cec7e24cab8a0b7eef95d995530843330138457c..51826c13fb0f2e31acd334dbb972499081a187b1 100644 (file)
@@ -401,6 +401,17 @@ int ustctl_wait_quiescent(int sock)
        return 0;
 }
 
+int ustctl_flush_buffers(int sock, struct object_data *channel_data)
+{
+       struct ustcomm_ust_msg lum;
+       struct ustcomm_ust_reply lur;
+
+       memset(&lum, 0, sizeof(lum));
+       lum.handle = channel_data->handle;
+       lum.cmd = LTTNG_UST_FLUSH_BUFFERS;
+       return ustcomm_send_app_cmd(sock, &lum, &lur);
+}
+
 int ustctl_calibrate(int sock, struct lttng_ust_calibrate *calibrate)
 {
        return -ENOSYS;
This page took 0.022549 seconds and 4 git commands to generate.