update ustctl man page
[ust.git] / libustcmd / ustcmd.c
index 1c5894be4dd41657c88b721a62f1864db512fcb2..cf6b9d720fbcdac85580664097d10580ee98c995 100644 (file)
@@ -25,7 +25,7 @@
 #include <dirent.h>
 
 #include "ustcomm.h"
-#include "ustcmd.h"
+#include "ust/ustcmd.h"
 #include "usterr.h"
 
 pid_t *ustcmd_get_online_pids(void)
@@ -470,6 +470,18 @@ int ustcmd_get_sock_path(char **sock_path, pid_t pid)
        return 0;
 }
 
+int ustcmd_force_switch(pid_t pid)
+{
+       int result;
+
+       result = ustcmd_send_cmd("force_switch", pid, NULL);
+       if (result != 1) {
+               return USTCMD_ERR_GEN;
+       }
+
+       return 0;
+}
+
 /**
  * Sends a given command to a traceable process
  *
This page took 0.023887 seconds and 4 git commands to generate.