projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: build on sles15sp4
[lttng-modules.git]
/
lttng-tracepoint.c
diff --git
a/lttng-tracepoint.c
b/lttng-tracepoint.c
index ec77e7ccfb7dbfa4a7ffb62f232682f6ff824690..c0c8c4dbf0a5ca0f60b1b6a71d18747432598bfd 100644
(file)
--- a/
lttng-tracepoint.c
+++ b/
lttng-tracepoint.c
@@
-17,6
+17,7
@@
#include <lttng-tracepoint.h>
#include <wrapper/list.h>
#include <lttng-tracepoint.h>
#include <wrapper/list.h>
+#include <wrapper/tracepoint.h>
/*
* Protect the tracepoint table. lttng_tracepoint_mutex nests within
/*
* Protect the tracepoint table. lttng_tracepoint_mutex nests within
@@
-40,7
+41,7
@@
struct tracepoint_entry {
struct tracepoint *tp;
int refcount;
struct list_head probes;
struct tracepoint *tp;
int refcount;
struct list_head probes;
- char name[
0
];
+ char name[];
};
struct lttng_tp_probe {
};
struct lttng_tp_probe {
@@
-228,7
+229,7
@@
int lttng_tracepoint_coming(struct tp_module *tp_mod)
struct tracepoint_entry *e;
struct lttng_tp_probe *p;
struct tracepoint_entry *e;
struct lttng_tp_probe *p;
- tp =
tp_mod->mod->tracepoints_ptrs[i]
;
+ tp =
lttng_tracepoint_ptr_deref(&tp_mod->mod->tracepoints_ptrs[i])
;
e = get_tracepoint(tp->name);
if (!e) {
e = add_tracepoint(tp->name);
e = get_tracepoint(tp->name);
if (!e) {
e = add_tracepoint(tp->name);
@@
-255,7
+256,7
@@
int lttng_tracepoint_coming(struct tp_module *tp_mod)
}
}
mutex_unlock(<tng_tracepoint_mutex);
}
}
mutex_unlock(<tng_tracepoint_mutex);
- return
0
;
+ return
NOTIFY_OK
;
}
static
}
static
@@
-269,7
+270,7
@@
int lttng_tracepoint_going(struct tp_module *tp_mod)
struct tracepoint_entry *e;
struct lttng_tp_probe *p;
struct tracepoint_entry *e;
struct lttng_tp_probe *p;
- tp =
tp_mod->mod->tracepoints_ptrs[i]
;
+ tp =
lttng_tracepoint_ptr_deref(&tp_mod->mod->tracepoints_ptrs[i])
;
e = get_tracepoint(tp->name);
if (!e || !e->tp)
continue;
e = get_tracepoint(tp->name);
if (!e || !e->tp)
continue;
This page took
0.036179 seconds
and
4
git commands to generate.