David Goulet [Wed, 27 Apr 2011 19:31:56 +0000 (15:31 -0400)]
Add mutex protection for the traceable apps
The two threads are using this list so now protected
by a pthread_mutex_t using add and del function.
Also introduce add and del function to manage
the session list.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 27 Apr 2011 18:53:49 +0000 (14:53 -0400)]
Fix create trace using the current session
Better create trace internal function for the session daemon.
Add a check for command that needs a session.
Add lttcomm error message for missing session.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 27 Apr 2011 17:25:48 +0000 (13:25 -0400)]
Add ust create trace feature
Can now create a trace with name set to 'auto' using
the PID of the application.
Also, this patch adds a missing param to the long_options, add
some information for help and sort the option's array.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 27 Apr 2011 15:40:13 +0000 (11:40 -0400)]
Change list command line options -l and -L
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 27 Apr 2011 15:34:10 +0000 (11:34 -0400)]
Add close unix socket function to libcomm API
Using clean_exit everywhere in lttng now and adding
the session daemon disconnect to that clean exit function.
Also fix the recv <= 0 for process client msg on the
session daemon side in order to not send back empty data.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 27 Apr 2011 15:18:25 +0000 (11:18 -0400)]
Add --session feature
This allows any user to select a session and any
tracing command will affect that particular session.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Tue, 26 Apr 2011 20:36:38 +0000 (16:36 -0400)]
Add destroy session feature
The destroy command is added. Some fixes were needed
for destroy_session function in ltt-sessiond and basic
handling of uuid.
Now, the whole chain of tools uses libuuid.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Tue, 26 Apr 2011 19:11:25 +0000 (15:11 -0400)]
Clean some part of the code
Add goto to send data in the process client command.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Tue, 26 Apr 2011 19:02:17 +0000 (15:02 -0400)]
Add create session feature
Add create session command to liblttngctl, lttng and
session daemon.
Fix a major bug with send data buffer having the wrong
pointer arithmetic and thus failing with memcpy.
Add -fno-strict-aliasing to the global CFLAGS.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Fri, 22 Apr 2011 14:56:59 +0000 (10:56 -0400)]
Fix segfault for ltt-sessiond pathname
The getenv sessiond path could return NULL so the strdup failed
at this point.
Also added the "not running" indication when listing pids that are not
found in /proc.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Thu, 21 Apr 2011 21:29:32 +0000 (17:29 -0400)]
Major changes for the daemon data transmission
This commit reengineer the data transmission from the session daemon to
the liblttngctl. Instead of sending a packet on a per data structure
basis, this scheme uses lttcomm_lttng_msg structure has a header control
structure adding the payload_size to it. The payload data is then
appended after and only one send() is used.
This will permit AF_INET socket scaling for future development.
List sessions and list apps command has been modified to fit this
change.
In the meantime, some unuse code is removed and minor cleanup.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Thu, 21 Apr 2011 19:02:15 +0000 (15:02 -0400)]
Add lttngerr support to ltt-sessiond
Now using the lttngerr API for message/error printing.
Also add the quiet option to the ltt-sessiond. The lttng auto spawn
session daemon option was also modified to use that quiet option to not
to pollute stdout when that spawned daemon is killed.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Thu, 21 Apr 2011 18:50:18 +0000 (14:50 -0400)]
Add listing session option
The lttng client can now list available sessions using the liblttngctl
API and session daemon support.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Thu, 21 Apr 2011 16:31:00 +0000 (12:31 -0400)]
Replace daemonize function by std glibc daemon()
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Tue, 19 Apr 2011 16:41:02 +0000 (12:41 -0400)]
Add support for session daemon auto spawn
The lttng tool now spawns a session daemon if no ltt-sessiond is
running. Two new options added to control this behavior.
Introduce --sessiond-path and --no-sessiond to lttng command line tool.
Add --sig-parent to ltt-sessiond that sends a SIGCHLD to the parent pid
when the daemon is ready to process client command.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 20 Apr 2011 19:56:29 +0000 (15:56 -0400)]
Minor fix for ERR() call in lttng
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 20 Apr 2011 19:33:23 +0000 (15:33 -0400)]
Change client message processing
ltt-sessiond can now send multiple response to the client for only one
command.
The list traceable apps command was modified accordingly to that
modification and now send one response per pid.
The liblttnctl was also changed to handle multiple reply and the
recvfrom_sessiond internal function is added removing the recv from the
ask_sessiond() function. Fine grained control helps.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
Mathieu Desnoyers [Wed, 13 Apr 2011 21:56:21 +0000 (17:56 -0400)]
Minor code cleanup
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 13 Apr 2011 21:39:52 +0000 (17:39 -0400)]
Copyright notices cleanup
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
David Goulet [Wed, 13 Apr 2011 20:15:24 +0000 (16:15 -0400)]
Initial import
This is the first import of the lttng-tools tree.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
This page took 0.031711 seconds and 5 git commands to generate.