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>
Thu, 6 Nov 2014 22:34:08 +0000 (17:34 -0500)
commit6a6b20683ccf29e16baceef5d29357001c2c713a
treebd8ad5f02e54a17aecdd0f527bb7a13223d72928
parent9b22d135a4586b0c859d3d4c734090a1954930d9
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.024843 seconds and 4 git commands to generate.