projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change force_subbuffer switch to be per trace
[ust.git]
/
libustctl
/
libustctl.c
diff --git
a/libustctl/libustctl.c
b/libustctl/libustctl.c
index e9709c574e0bbe1e2b82a0b27e784288b5e8ec67..d57e6458b047a1d4c82353b331be4a8ac89fac79 100644
(file)
--- a/
libustctl/libustctl.c
+++ b/
libustctl/libustctl.c
@@
-379,6
+379,12
@@
int ustctl_alloc_trace(int sock, const char *trace)
return do_trace_cmd(sock, trace, ALLOC_TRACE);
}
return do_trace_cmd(sock, trace, ALLOC_TRACE);
}
+
+int ustctl_force_switch(int sock, const char *trace)
+{
+ return do_trace_cmd(sock, trace, FORCE_SUBBUF_SWITCH);
+}
+
/**
* Stops an UST trace according to a PID.
*
/**
* Stops an UST trace according to a PID.
*
@@
-647,13
+653,3
@@
int ustctl_get_sock_path(int sock, char **sock_path)
return 0;
}
return 0;
}
-
-int ustctl_force_switch(int sock, const char *trace)
-{
- struct ustcomm_header req_header, res_header;
-
- req_header.command = FORCE_SUBBUF_SWITCH;
- req_header.size = 0;
-
- return do_cmd(sock, &req_header, NULL, &res_header, NULL);
-}
This page took
0.023508 seconds
and
4
git commands to generate.