libustctl: use direct socket communication
authorNils Carlson <nils.carlson@ericsson.com>
Fri, 4 Feb 2011 07:24:51 +0000 (08:24 +0100)
committerNils Carlson <nils.carlson@ericsson.com>
Fri, 25 Feb 2011 08:27:56 +0000 (09:27 +0100)
commit8b26d56b9988ac0c09999c14a08bc28d42551367
tree15ff9c68299c04ca12442cba0921cac1c19d42b0
parentbc549f166d7ece1bfd6d1a937019a7568b38b332
libustctl: use direct socket communication

This patch changes libustctl to be socket instead of pid oriented.
The user is expected to connect to a pid using
ustctl_connect_pid(pid_t) which returns a socket file-descriptor and
then use the socket for the rest of the api. This reduces the amount
of open and closing systemcalls and also makes it possible for a
session daemon to detect process shutdown by the socket closing.

David, this ones for you. :-)

Signed-off-by: Nils Carlson <nils.carlson@ericsson.com>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/ust/ustctl.h
libustctl/libustctl.c
tests/libustctl_function_tests/libustctl_function_tests.c
ustctl/channel_cmds.c
ustctl/marker_cmds.c
ustctl/scanning_functions.c
ustctl/scanning_functions.h
ustctl/trace_cmds.c
ustctl/ustctl.c
This page took 0.024477 seconds and 4 git commands to generate.