X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libustcmd%2Fustcmd.c;h=46a95618439915336fc654f9a90495b479d11039;hb=b9318b35947bbd6d3b2998b28d974c5e5bfabcf6;hp=1c5894be4dd41657c88b721a62f1864db512fcb2;hpb=b2fb2f91912b59447459eecc4b41baf8154be1bf;p=ust.git diff --git a/libustcmd/ustcmd.c b/libustcmd/ustcmd.c index 1c5894b..46a9561 100644 --- a/libustcmd/ustcmd.c +++ b/libustcmd/ustcmd.c @@ -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 *