add a command to force subbuffer switch
[ust.git] / libustcmd / ustcmd.c
index 1c5894be4dd41657c88b721a62f1864db512fcb2..46a95618439915336fc654f9a90495b479d11039 100644 (file)
@@ -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.022697 seconds and 4 git commands to generate.