David Goulet [Mon, 15 Aug 2011 17:00:11 +0000 (13:00 -0400)]
Add runall.sh test script to distribution
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Sun, 14 Aug 2011 21:24:40 +0000 (17:24 -0400)]
Rename and export lib kernel consumer
The old liblttkconsumerd is renamed to liblttngkconsumerd and exported
publicly having the public header "lttng/lttng-kconsumerd.h".
To link with this library, use -llttngkconsumerd.
Every public functions now begins with the "lttng_" prefix to fit the
lttng public namespace.
Comments are changed also to fit 80 lines standard and the rest of the
git tree comments.
This complete renaming was motivated by the new tool made by Julien
Desfossez called 'lttngtop' which uses the kernel consumer library to
create a custom consumer. More works will add consumers in the lttv and
babeltrace projects.
Please see lttng.org to learn about lttngtop.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
Julien Desfossez [Sun, 14 Aug 2011 15:14:14 +0000 (11:14 -0400)]
Kconsumerd use the output parameter
Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
David Goulet [Sat, 13 Aug 2011 17:49:19 +0000 (13:49 -0400)]
Fix bad channel output when sending to consumer
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Fri, 12 Aug 2011 20:26:18 +0000 (16:26 -0400)]
Permit custom consumer registration to a session
Introduce the new API call lttng_register_consumer(...).
By giving a lttng_handle and a socket path, the fds will be sent to that
socket for the specific tracing session and domain. No kernel consumer
will be spawned by the session daemon for that session.
At this point, only kernel consumer is supported.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Fri, 12 Aug 2011 21:56:34 +0000 (17:56 -0400)]
Fix missing file for make dist
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Fri, 12 Aug 2011 21:00:33 +0000 (17:00 -0400)]
Fix copy_string dst validation
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Fri, 12 Aug 2011 18:43:23 +0000 (14:43 -0400)]
Add tar and bz2 file to gitignore
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Fri, 12 Aug 2011 18:34:55 +0000 (14:34 -0400)]
Update version to 2.0-pre11
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Fri, 12 Aug 2011 18:38:01 +0000 (14:38 -0400)]
Fix makefile
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Fri, 12 Aug 2011 18:12:55 +0000 (14:12 -0400)]
Change lttng API to use a lttng_handle
Introduce the lttng_handle structure that is now used by the API
containing the session name and lttng domain.
This removes multiple static variables of the library and makes it safe
for multithread tool to use the library.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
Julien Desfossez [Fri, 12 Aug 2011 14:45:28 +0000 (10:45 -0400)]
Cleanup mmap consuming
Only one mmap call per buffer, once the first mmap is done, we use the
offset to know where to start consuming the data.
When we receive the FD and its output mode is mmap, we mmap the buffer,
when it is closing, we munmap it.
Removed the manual padding handling because the kernel already exposes a
padded subbuffer.
Also updated the check of the return code of
kconsumerd_consumerd_recv_fd to be consistent with the rest of the code,
we are in error when it's < 0 not <= 0.
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Julien Desfossez [Fri, 12 Aug 2011 13:36:47 +0000 (09:36 -0400)]
Register the consuming function and add a library context
The init function of the library now takes a function as argument to
allow a consumer using the library to control the function to be called
when data is ready in a buffer.
The kconsumerd_on_read_subbuffer_mmap and
kconsumerd_on_read_subbuffer_splice are now exported to allow a consumer
to use them directly if needed.
Also the library has now a context, where all local parameters are
registered instead of static variables. That way, we can have multiple
callers using the library within the same process. Only the flag
indicating that all fds are closed remain global to the library and
shared among callers.
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Julien Desfossez [Fri, 12 Aug 2011 13:36:46 +0000 (09:36 -0400)]
Add doc to liblttkconsumerd.h
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
David Goulet [Fri, 12 Aug 2011 14:51:32 +0000 (10:51 -0400)]
Change kernel traces output directory
Adds the kernel/ directory level for kernel traces.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
Mathieu Desnoyers [Thu, 11 Aug 2011 22:16:14 +0000 (18:16 -0400)]
Privatize lttng-sessiond-comm
With the intent of keeping libust, which is really an instrumentation
library, stand-alone, we prefer not to make it depend on a library from
the lttng-tools tree. Therefore, we privatize lttng-sessiond-comm, and
both package will interact through a communication protocol rather than
a shared library.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
David Goulet [Thu, 11 Aug 2011 16:00:47 +0000 (12:00 -0400)]
Header cleanup and alignment fix
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Thu, 11 Aug 2011 15:47:38 +0000 (11:47 -0400)]
Fix wrong message with lttng list
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
Mathieu Desnoyers [Wed, 10 Aug 2011 20:07:51 +0000 (16:07 -0400)]
kernel_list_events: fix file descriptor leak
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Wed, 10 Aug 2011 21:54:45 +0000 (17:54 -0400)]
Merge branch 'master' of ssh://git.lttng.org/home/git/lttng-tools
David Goulet [Wed, 10 Aug 2011 21:24:05 +0000 (17:24 -0400)]
Replace underscores of enable-channel options
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
Mathieu Desnoyers [Tue, 9 Aug 2011 00:57:40 +0000 (20:57 -0400)]
Version 2.0-pre10
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 9 Aug 2011 00:46:35 +0000 (20:46 -0400)]
Remove "lib" prefix from .c/.h file names
This is uncommon. "lib" prefix is only needed for the library name.
Let's keep the lib prefix for source tree directory names for clarity
though.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 9 Aug 2011 00:41:06 +0000 (20:41 -0400)]
Rename liblttsessiondcomm to liblttng-sessiond-comm, install it.
Install this library in the system, for UST.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 9 Aug 2011 00:25:24 +0000 (20:25 -0400)]
Header Alignment Cleanups
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 9 Aug 2011 00:18:19 +0000 (20:18 -0400)]
Move LTTNG_RUNDIR declaration to lttng/lttng-sessiond-comm.h
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 9 Aug 2011 00:15:34 +0000 (20:15 -0400)]
header cleanup
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 9 Aug 2011 00:12:46 +0000 (20:12 -0400)]
Fix all strncpy() usage: need to set a final \0 character at the end
strncpy does not necessarily set the last character to the null
terminating character. It must be done explicitly in case of overflow.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 8 Aug 2011 23:54:04 +0000 (19:54 -0400)]
Install lttng/lttng-sessiond-comm.h into system
This header is needed by UST 2.0 for communication with the sessiond.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Simon Marchi [Mon, 8 Aug 2011 19:42:34 +0000 (15:42 -0400)]
Fix format string warnings
Print size_t as %zu.
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 8 Aug 2011 17:58:29 +0000 (13:58 -0400)]
Cleanup libkernelctl API
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 8 Aug 2011 16:08:46 +0000 (12:08 -0400)]
Version 2.0-pre9
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 8 Aug 2011 16:07:40 +0000 (12:07 -0400)]
Don't print connect error upon failure
Used in normal operation, should not print error.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 8 Aug 2011 15:40:41 +0000 (11:40 -0400)]
Version 2.0-pre8
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 8 Aug 2011 15:08:29 +0000 (11:08 -0400)]
Cleanup compiler warnings
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 8 Aug 2011 06:13:27 +0000 (02:13 -0400)]
Allow tracing group users to read trace files they generated
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 8 Aug 2011 05:22:00 +0000 (01:22 -0400)]
Fix handling of sessiond respawn after a SIGKILL
Checking if the sessiond responds to connect() lets lttng / ltt-sessiond
check correctly if the socket files are stale files or actively used.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 8 Aug 2011 04:31:41 +0000 (00:31 -0400)]
Safe list iteration in kconsumerd: protect against free()
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 8 Aug 2011 04:29:01 +0000 (00:29 -0400)]
Add --verbose-kconsumerd option to sessiond
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Mon, 8 Aug 2011 04:03:04 +0000 (00:03 -0400)]
ltt-sessiond teardown cleanup
ltt-sessiond now kills (SIGTERM) the kconsumerd before exiting, so the
LTTng module unload succeeds. Previously, the kconsumerd was still
holding a reference on ltt-relay.ko -- it was only being released after
ltt-sessiond closed its communication socket with kconsumerd.
Now, all the teardown actually wakes each thread, getting them to
return, and main() joins each of them before calling cleanup().
Previously, we had no guarantee that threads would not run concurrently
with cleanup() executed from the signal handler.
It would still be good to audit _each_ read call so we ensure that they
are performed on O_NONBLOCK fcntl fds (as we did in the kconsumerd), so
all the blocking is done in a poll() call, which can be woken up by the
sessiond termination file descriptor too (from the signal handler).
Failure to respect this could lead to races where sessiond blocks on a
file descriptor and never really honour the signal for a thread, thus
leading to blocking of the main() thread on a join.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sat, 6 Aug 2011 18:57:08 +0000 (14:57 -0400)]
Version 2.0-pre7
Mathieu Desnoyers [Sat, 6 Aug 2011 18:21:51 +0000 (14:21 -0400)]
Add calibrate.txt
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sat, 6 Aug 2011 18:04:46 +0000 (14:04 -0400)]
mkdir_recursive: keep original prototype
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sat, 6 Aug 2011 17:55:23 +0000 (13:55 -0400)]
Cleanup mkdir_recursive indent
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sat, 6 Aug 2011 15:05:04 +0000 (11:05 -0400)]
Make "please specify tracer" comment more helpful
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sat, 6 Aug 2011 06:33:48 +0000 (02:33 -0400)]
Add calibrate command
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sat, 6 Aug 2011 05:50:23 +0000 (01:50 -0400)]
Fix module unload order
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 5 Aug 2011 20:28:01 +0000 (16:28 -0400)]
Unload lttng modules when sessiond quits
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
David Goulet [Thu, 4 Aug 2011 01:43:39 +0000 (21:43 -0400)]
Remove all remaining sessiond kernel command
All command now uses the lttng_domain
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Thu, 4 Aug 2011 01:21:12 +0000 (21:21 -0400)]
Change disable event command to be per domain
Removes LTTNG_KERNEL_DISABLE_EVENT and use a generic command based on
lttng domain.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Thu, 4 Aug 2011 01:03:27 +0000 (21:03 -0400)]
Remove path and session from session message
Replace the two by a lttng_session structure.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Thu, 4 Aug 2011 00:55:02 +0000 (20:55 -0400)]
Change disable channel command to be per domain
Removes LTTNG_KERNEL_DISABLE_CHANNEL and use a generic command based on
lttng domain.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 3 Aug 2011 22:50:13 +0000 (18:50 -0400)]
Rewrite the add context command of sessiond
Introduce context.c/.h which contains code to manage lttng context.
The add context command is now based on the lttng domain removing the
LTTNG_KERNEL_ADD_CONTEXT to simply LTTNG_ADD_CONTEXT.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 3 Aug 2011 21:23:56 +0000 (17:23 -0400)]
Remove session daemon kernel list events command
Replace this command by list tracepoints and use the domain for listing.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 3 Aug 2011 21:11:44 +0000 (17:11 -0400)]
Improve protection around strncpy and memcpy calls
Add copy_string which check for null pointer and add the null terminated
byte by default.
All pointer pass to memcpy are checked for null value.
All lttng_domain pointer are checked also for null value.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 3 Aug 2011 20:28:21 +0000 (16:28 -0400)]
Change list kernel events to list tracepoints
Remove lttng_list_kernel_events to lttng_list_tracepoints(domain).
Make it generic to lttng domain and specific for tracepoints which are
static instrumentation.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 3 Aug 2011 20:06:55 +0000 (16:06 -0400)]
Fix uninitialized variable
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 3 Aug 2011 19:56:54 +0000 (15:56 -0400)]
Improve the lttng list feature
Introduce three new functions to the public API which are
lttng_list_channels, lttng_list_events and lttng_list_domains.
Also add the lttng_list_kernel_events which list available tracing
events of the kernel.
Adds new options to the lttng list command for listing a lot more
details of a tracing session including channels, events and domains.
Also adds the enabled flag to the lttng_event and lttng_channel
structure.
Fix a bad pointer cast in list events.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
Mathieu Desnoyers [Tue, 2 Aug 2011 17:46:52 +0000 (13:46 -0400)]
Update quickstart
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
David Goulet [Mon, 1 Aug 2011 17:37:49 +0000 (13:37 -0400)]
Fix missing session list unlock
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
Mathieu Desnoyers [Fri, 29 Jul 2011 18:45:36 +0000 (14:45 -0400)]
Update quickstart
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
David Goulet [Fri, 29 Jul 2011 15:30:44 +0000 (11:30 -0400)]
Update version to 2.0-pre6
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
Mathieu Desnoyers [Thu, 28 Jul 2011 22:45:37 +0000 (18:45 -0400)]
Add kretprobe support (new --function implementation)
Add kretprobe support (new --function implementation)
Also support probe "symbol" (without +offset) by checking first
character with isalpha().
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
David Goulet [Fri, 29 Jul 2011 15:15:20 +0000 (11:15 -0400)]
Fix multiple enable events
The session name was not set after the first event enabled.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Thu, 28 Jul 2011 19:33:11 +0000 (15:33 -0400)]
Update version to 2.0-pre5
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Thu, 28 Jul 2011 17:15:32 +0000 (13:15 -0400)]
Print trace output patch on lttng create
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Thu, 28 Jul 2011 17:12:34 +0000 (13:12 -0400)]
Fix adding multiple kernel context at once
The session name was not set when multiple add-context was asked.
Also fix error message and session daemon return error when one add
kernel context fails.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Thu, 28 Jul 2011 16:13:35 +0000 (12:13 -0400)]
Fix auto session path duplication
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Thu, 28 Jul 2011 16:13:02 +0000 (12:13 -0400)]
Fix bad strncmp length
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 27 Jul 2011 20:32:27 +0000 (16:32 -0400)]
Update version to 2.0-pre4
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 27 Jul 2011 20:26:21 +0000 (16:26 -0400)]
Fix channel creation when enabling an event
If the channel is not found when enabling an event, that channel will be
created.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 27 Jul 2011 20:15:24 +0000 (16:15 -0400)]
Add event count in channel structure
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 27 Jul 2011 20:13:46 +0000 (16:13 -0400)]
Fix uninitialized kprobe attributes
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 27 Jul 2011 19:01:29 +0000 (15:01 -0400)]
Fix bad address conversion
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Tue, 26 Jul 2011 15:43:35 +0000 (11:43 -0400)]
Trace path creation made on the client side
The traces output path is set on the client side with the date and time
if no output path is specified.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Tue, 26 Jul 2011 14:59:20 +0000 (10:59 -0400)]
Fix safe list iteration
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Tue, 26 Jul 2011 14:45:43 +0000 (10:45 -0400)]
Add reset of the session message
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Tue, 26 Jul 2011 14:01:26 +0000 (10:01 -0400)]
Fix comments in main.c
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Tue, 26 Jul 2011 13:45:34 +0000 (09:45 -0400)]
Increase possible verbose level for session daemon
Using -vv, the kernel consumer goes into verbose mode.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Tue, 26 Jul 2011 13:33:42 +0000 (09:33 -0400)]
Fix set session command
The command was appending a new session name and not replacing it.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Mon, 25 Jul 2011 20:50:12 +0000 (16:50 -0400)]
Add kernel trace data structure test
Test all kernel data structure found in ltt-sessiond/trace.c/.h.
Also adds a utils.h having a pretty print for OK and FAIL. The session
test is modified to use those prints.
Better runall.sh which iterates over an array containing test binaries
name and terminates when one test fails.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Mon, 25 Jul 2011 20:48:50 +0000 (16:48 -0400)]
Fix missing pointer initialisation
Channel and event context pointer was not set to NULL at creation.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Mon, 25 Jul 2011 17:36:00 +0000 (13:36 -0400)]
Add tracing session test
Tests the tracing session functions found in ltt-sessiond/session.h/.c
Creation, destruction and iteration is tested.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Sat, 23 Jul 2011 17:06:07 +0000 (13:06 -0400)]
Update version to 2.0-pre3
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
Mathieu Desnoyers [Sat, 23 Jul 2011 08:36:38 +0000 (04:36 -0400)]
Fix perf hw cache counter config values
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
David Goulet [Fri, 22 Jul 2011 20:20:08 +0000 (16:20 -0400)]
Update version to 2.0-pre2
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Fri, 22 Jul 2011 20:00:26 +0000 (16:00 -0400)]
Add missing fprintf format
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
Mathieu Desnoyers [Fri, 22 Jul 2011 19:06:23 +0000 (15:06 -0400)]
UI print cleanup
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 22 Jul 2011 19:04:48 +0000 (15:04 -0400)]
Use "probe" rather than "kprobe" for UI
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 22 Jul 2011 19:04:30 +0000 (15:04 -0400)]
Update quickstart for new perf UI
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 22 Jul 2011 18:38:58 +0000 (14:38 -0400)]
Update handling of perf counters in add-context
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 22 Jul 2011 18:38:17 +0000 (14:38 -0400)]
Remove assert from kconsumerd (multi-fd handling is ok)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Fri, 22 Jul 2011 18:05:53 +0000 (14:05 -0400)]
Cleanup header
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
David Goulet [Thu, 21 Jul 2011 20:40:24 +0000 (16:40 -0400)]
Add string options for add-context
List of strings can be used for context type, perf type and perf id.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
Mathieu Desnoyers [Thu, 21 Jul 2011 18:16:05 +0000 (14:16 -0400)]
Fix sending fd through sendmsg/recvmsg ancillary data
ltt-kconsumerd was only reading a "char" rather than an integer. It
worked fine on little endian for values below 256, and failed on big
endian machines (always reading "0").
Also cleanup msg initialization.
Also perform final msg.msg_controllen = cmsg->cmsg_len; after memcpy, as
done in cmsg(3) example (extra safety).
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
David Goulet [Thu, 21 Jul 2011 16:07:43 +0000 (12:07 -0400)]
Improve add-context command
Better multiple context type handling using a linked list at args
parsing.
Change some error message.
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Thu, 21 Jul 2011 14:47:55 +0000 (10:47 -0400)]
Update and add to the quickstart guide
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
David Goulet [Wed, 20 Jul 2011 21:18:58 +0000 (17:18 -0400)]
Merge branch 'master' of git://git.lttng.org/lttng-tools
David Goulet [Wed, 20 Jul 2011 21:18:07 +0000 (17:18 -0400)]
Rename binary installation path define
INSTALL_PATH --> INSTALL_BIN_PATH
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
Mathieu Desnoyers [Wed, 20 Jul 2011 21:11:51 +0000 (17:11 -0400)]
Fix double-unlock in kconsumerd_find_session_fd()
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
This page took 0.041444 seconds and 4 git commands to generate.