Fix: add a kernel context list to the channel
authorDavid Goulet <dgoulet@efficios.com>
Wed, 25 Jun 2014 19:42:15 +0000 (15:42 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Wed, 25 Jun 2014 19:42:15 +0000 (15:42 -0400)
commit645328ae989e5f50a3a49c1ac34b2fee287a3d7b
treeb2bc3f292c6d1bf65ce043821a95dab673ba98ce
parentc455d428591ca798da9f1e7c2aeb7db348d74853
Fix: add a kernel context list to the channel

The internal state of the session daemon was recording only one context
per channel thus overwriting the previous one if multiple context were
added causing a memory leak.

This commit adds a list inside a kernel channel which keeps track of all
context added. It also fixes the save command that now saves all of
them.

Fixes #205

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/context.c
src/bin/lttng-sessiond/kernel.c
src/bin/lttng-sessiond/kernel.h
src/bin/lttng-sessiond/save.c
src/bin/lttng-sessiond/trace-kernel.c
src/bin/lttng-sessiond/trace-kernel.h
tests/unit/test_kernel_data.c
This page took 0.035569 seconds and 4 git commands to generate.