diff options
author | Li Zhou <li.zhou@windriver.com> | 2015-09-18 10:39:05 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-23 09:53:04 +0100 |
commit | d762ea1b9ccf063cb180a02e3826cbd87793b0be (patch) | |
tree | 8450b70e62476f76d98505b1376c3badfe8cc35a /meta | |
parent | c8a7d76d36626deb23630a091c56e669e893de73 (diff) | |
download | poky-d762ea1b9ccf063cb180a02e3826cbd87793b0be.tar.gz |
lttng-tools: sessiond: disable: match app event by name
Get upstream patch from lttng-tools github:
<https://github.com/lttng/lttng-tools>
<commit:700c5a9d4dc7b552926b8ddcbba91cc13312aba0>,
for solving the filtered tracepoint disabling error.
The use of a simple lookup and match on event name is insufficient
to identify the corresponding ust app event.
(From OE-Core rev: 60f8c0e679f70f4477472d7895fddff12530a929)
Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-tools/0001-Fix-sessiond-disable-match-app-event-by-name.patch | 58 | ||||
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb | 1 |
2 files changed, 59 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-tools/0001-Fix-sessiond-disable-match-app-event-by-name.patch b/meta/recipes-kernel/lttng/lttng-tools/0001-Fix-sessiond-disable-match-app-event-by-name.patch new file mode 100644 index 0000000000..ac1f34bfaa --- /dev/null +++ b/meta/recipes-kernel/lttng/lttng-tools/0001-Fix-sessiond-disable-match-app-event-by-name.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | From 700c5a9d4dc7b552926b8ddcbba91cc13312aba0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> | ||
3 | Date: Wed, 9 Sep 2015 17:08:20 -0400 | ||
4 | Subject: [PATCH] Fix: sessiond: disable: match app event by name | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | The use of a simple lookup and match on event name is insufficient | ||
10 | to identify the corresponding ust app event. | ||
11 | |||
12 | Fixes #914 | ||
13 | |||
14 | Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> | ||
15 | Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com> | ||
16 | |||
17 | Upstream-Status: Backport | ||
18 | |||
19 | Signed-off-by: Li Zhou <li.zhou@windriver.com> | ||
20 | --- | ||
21 | src/bin/lttng-sessiond/ust-app.c | 10 +++++----- | ||
22 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
23 | |||
24 | diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c | ||
25 | index 4066b06..53a6f93 100644 | ||
26 | --- a/src/bin/lttng-sessiond/ust-app.c | ||
27 | +++ b/src/bin/lttng-sessiond/ust-app.c | ||
28 | @@ -3873,7 +3873,7 @@ int ust_app_disable_event_glb(struct ltt_ust_session *usess, | ||
29 | { | ||
30 | int ret = 0; | ||
31 | struct lttng_ht_iter iter, uiter; | ||
32 | - struct lttng_ht_node_str *ua_chan_node, *ua_event_node; | ||
33 | + struct lttng_ht_node_str *ua_chan_node; | ||
34 | struct ust_app *app; | ||
35 | struct ust_app_session *ua_sess; | ||
36 | struct ust_app_channel *ua_chan; | ||
37 | @@ -3910,14 +3910,14 @@ int ust_app_disable_event_glb(struct ltt_ust_session *usess, | ||
38 | } | ||
39 | ua_chan = caa_container_of(ua_chan_node, struct ust_app_channel, node); | ||
40 | |||
41 | - lttng_ht_lookup(ua_chan->events, (void *)uevent->attr.name, &uiter); | ||
42 | - ua_event_node = lttng_ht_iter_get_node_str(&uiter); | ||
43 | - if (ua_event_node == NULL) { | ||
44 | + ua_event = find_ust_app_event(ua_chan->events, uevent->attr.name, | ||
45 | + uevent->filter, uevent->attr.loglevel, | ||
46 | + uevent->exclusion); | ||
47 | + if (ua_event == NULL) { | ||
48 | DBG2("Event %s not found in channel %s for app pid %d." | ||
49 | "Skipping", uevent->attr.name, uchan->name, app->pid); | ||
50 | continue; | ||
51 | } | ||
52 | - ua_event = caa_container_of(ua_event_node, struct ust_app_event, node); | ||
53 | |||
54 | ret = disable_ust_app_event(ua_sess, ua_event, app); | ||
55 | if (ret < 0) { | ||
56 | -- | ||
57 | 1.7.9.5 | ||
58 | |||
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb b/meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb index 6397a987a6..9ecc2ab8ae 100644 --- a/meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb +++ b/meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb | |||
@@ -28,6 +28,7 @@ SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.6 \ | |||
28 | file://extern-decls.patch \ | 28 | file://extern-decls.patch \ |
29 | file://run-ptest \ | 29 | file://run-ptest \ |
30 | file://lttng-tools-Fix-live-timer-calculation-error.patch \ | 30 | file://lttng-tools-Fix-live-timer-calculation-error.patch \ |
31 | file://0001-Fix-sessiond-disable-match-app-event-by-name.patch \ | ||
31 | " | 32 | " |
32 | 33 | ||
33 | S = "${WORKDIR}/git" | 34 | S = "${WORKDIR}/git" |