Fix: check userspace perf counter name when looking up contexts
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 6 Nov 2014 22:34:08 +0000 (17:34 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 16 Nov 2014 12:29:08 +0000 (07:29 -0500)
commit394235f5332ba803d273b42aa789f137a56e4522
treef0310b53d8fe9d1bc1987e4efc1fc75e81835400
parent9ea7cee64b2cb2a211646009b83384f50e1efff7
Fix: check userspace perf counter name when looking up contexts

create_ust_app_channel_context() looks for a context's existance
in a channel before adding it. However, it only checks for
context types. This is valid for all context types except for
LTTNG_UST_CONTEXT_PERF_THREAD_COUNTER since multiple perf
thread counters may be enabled at the same time.

This fix ensures that the perf counter name is taken into
consideration when checking for a context's presence in a
channel.

Reported-by: Alexander Grigoriev <alexgri@tbricks.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/ust-app.c
This page took 0.024694 seconds and 4 git commands to generate.