#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
-#include <ust/ustcmd.h>
+#include <ust/ustctl.h>
#include "scanning_functions.h"
#include "usterr.h"
#include "cli.h"
pid = parse_pid(argv[1]);
- if (ustcmd_create_trace(argv[2], pid)) {
+ if (ustctl_create_trace(argv[2], pid)) {
ERR("Failed to create trace %s for PID %u\n", argv[2], pid);
return -1;
}
pid = parse_pid(argv[1]);
- if (ustcmd_alloc_trace(argv[2], pid)) {
+ if (ustctl_alloc_trace(argv[2], pid)) {
ERR("Failed to allocate trace %s for PID %u\n", argv[2], pid);
return -1;
}
pid = parse_pid(argv[1]);
- if (ustcmd_start_trace(argv[2], pid)) {
+ if (ustctl_start_trace(argv[2], pid)) {
ERR("Failed to start trace %s for PID %u\n", argv[2], pid);
return -1;
}
pid = parse_pid(argv[1]);
- if (ustcmd_stop_trace(argv[2], pid)) {
+ if (ustctl_stop_trace(argv[2], pid)) {
ERR("Failed to stop trace %s for PID %u\n", argv[2], pid);
return -1;
}
pid = parse_pid(argv[1]);
- if (ustcmd_destroy_trace(argv[2], pid)) {
+ if (ustctl_destroy_trace(argv[2], pid)) {
ERR("Failed to destroy trace %s for PID %u\n", argv[2], pid);
return -1;
}
pid = parse_pid(argv[1]);
- if (ustcmd_force_switch(pid)) {
+ if (ustctl_force_switch(pid)) {
ERR("error while trying to force switch for PID %u\n", pid);
return -1;
}