projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update following loglevel support UST API change
[lttng-tools.git]
/
lttng-sessiond
/
ust-app.c
diff --git
a/lttng-sessiond/ust-app.c
b/lttng-sessiond/ust-app.c
index 12ac39404cfbbe46a483b0aa6e0659fe8d387a86..69164126beafbe15e276a7f694bc5dc2045cd7b9 100644
(file)
--- a/
lttng-sessiond/ust-app.c
+++ b/
lttng-sessiond/ust-app.c
@@
-1372,6
+1372,8
@@
int ust_app_list_events(struct lttng_event **events)
rcu_read_lock();
cds_lfht_for_each_entry(ust_app_ht, &iter, app, node) {
rcu_read_lock();
cds_lfht_for_each_entry(ust_app_ht, &iter, app, node) {
+ struct lttng_ust_tracepoint_iter iter;
+
handle = ustctl_tracepoint_list(app->key.sock);
if (handle < 0) {
ERR("UST app list events getting handle failed for app pid %d",
handle = ustctl_tracepoint_list(app->key.sock);
if (handle < 0) {
ERR("UST app list events getting handle failed for app pid %d",
@@
-1380,7
+1382,9
@@
int ust_app_list_events(struct lttng_event **events)
}
while ((ret = ustctl_tracepoint_list_get(app->key.sock, handle,
}
while ((ret = ustctl_tracepoint_list_get(app->key.sock, handle,
- tmp[count].name)) != -ENOENT) {
+ &iter)) != -ENOENT) {
+ memcpy(tmp[count].name, iter.name, LTTNG_UST_SYM_NAME_LEN);
+ /* TODO : get loglevel too */
if (count > nbmem) {
DBG2("Reallocating event list from %zu to %zu bytes", nbmem,
nbmem + UST_APP_EVENT_LIST_SIZE);
if (count > nbmem) {
DBG2("Reallocating event list from %zu to %zu bytes", nbmem,
nbmem + UST_APP_EVENT_LIST_SIZE);
This page took
0.022944 seconds
and
4
git commands to generate.