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 14:15:47 +0000 (09:15 -0500)
commit2b8d9b6851021f17437e751f59ac5f4866dd744d
tree69c54780f825422136f74ae6c8b7e9c971e8fe63
parentaa7102d7b77e8db772ae1656e4435b2ddd67537c
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.026046 seconds and 4 git commands to generate.