lttng-modules:stable-2.4

Last commit made on 2015-01-26
Get this branch:
git clone -b stable-2.4 https://git.launchpad.net/lttng-modules

Branch merges

Branch information

Name:
stable-2.4
Repository:
lp:lttng-modules

Recent commits

c7bc5e1... by Mathieu Desnoyers

Version 2.4.4

Signed-off-by: Mathieu Desnoyers <email address hidden>

d6589e5... by Mathieu Desnoyers

Fix: missing parenthesis in offset_align_floor

Is currently unused. Triggers a compile error when used.

Signed-off-by: Mathieu Desnoyers <email address hidden>

397f5ba... by David Engraf <email address hidden>

Fix compile error on kernel 3.0.101 with CONFIG_PERF_EVENTS

The context parameter of perf_event_create_kernel_counter() was introduced
with kernel 3.1.

Signed-off-by: David Engraf <email address hidden>
Signed-off-by: Mathieu Desnoyers <email address hidden>

180b516... by David Engraf <email address hidden>

Conditional compilation introduced by lttng-modules commit

  0007344741ef65259bc52dea72259173dfbf96c0

needs to be applied for kernels 3.12.30 and up in the 3.12.x branch.

Signed-off-by: David Engraf <email address hidden>
Signed-off-by: Mathieu Desnoyers <email address hidden>

42b06b4... by Mathieu Desnoyers

Version 2.4.3

Signed-off-by: Mathieu Desnoyers <email address hidden>

30c7896... by Mathieu Desnoyers

Fix: compaction instrumentation update for 3.14.x stable kernels

Conditional compilation introduced by lttng-modules commit

  0007344741ef65259bc52dea72259173dfbf96c0

needs to be applied to kernels 3.14.25 and up in the 3.14.x branch.

Squashed with commit 0007344741ef65259bc52dea72259173dfbf96c0 which was
originally targetting 3.16.

Signed-off-by: Simon Marchi <email address hidden>
Reported-by: Bjørn Forsman <email address hidden>
Signed-off-by: Mathieu Desnoyers <email address hidden>

338e5cc... by Mathieu Desnoyers

Fix: context alignment not properly handled

This issue affects only architectures without efficient unaligned
accesses, only when a context field with larger alignment follows a
context field with smaller alignment. It generates unreadable traces
when such context fields are enabled in this configuration.

Fixes #858

Signed-off-by: Mathieu Desnoyers <email address hidden>

bea0665... by Mathieu Desnoyers

Check for stale version.h files

Signed-off-by: Mathieu Desnoyers <email address hidden>

6dfd22b... by Mathieu Desnoyers

Fix: lttng-modules teardown NULL pointer OOPS

Accessing the lttng channel and lttng session from the metadata ring
buffer client is a bad idea, because we don't have any reference
ensuring those are valid for the lifetime of the metadata cache.
Therefore, rather than keeping a lttng channel as private data pointer
for the metadata ring buffer channel, keep a pointer to the metadata
cache instead: this will ensure we don't shoot ourself in the foot and
access data we for which coherency is not guaranteed (we don't hold any
reference to it).

Anyway, the only reason why we needed to access the lttng session from
the metadata client in the first place was the UUID of the session. Copy
it into the metadata cache instead.

Signed-off-by: Mathieu Desnoyers <email address hidden>

8ec6342... by Mathieu Desnoyers

Fix: handle concurrent flush vs get_next_subbuf on metadata cache

The "flush" operation can be performed on the metadata file descriptor
concurrently with get_next_subbuffer operations by different processes
(e.g. lttng session daemon issuing flush at "stop" concurrently with
consumer daemon issuing get_next_subbuf for metadata I/O). We need
to protect the metadata cache from those concurrent use by introducing a
mutex.

This fixes a race where metadata from a kernel trace is corrupted due to
this scenario. The corruption shows up like the same metadata content (a
metadata packet) being written twice consecutively in the metadata
stream, thus triggering a babeltrace "parse error" when trying to read
the trace.

Signed-off-by: Mathieu Desnoyers <email address hidden>