projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add structure size field to struct lttng_session
[lttng-ust.git]
/
liblttng-ust
/
lttng-events.c
diff --git
a/liblttng-ust/lttng-events.c
b/liblttng-ust/lttng-events.c
index b024c4cf327603a59c105b9aaf090dc65b48e608..92f04a3c7b2462c0b8a777305f7f07b96e67c51d 100644
(file)
--- a/
liblttng-ust/lttng-events.c
+++ b/
liblttng-ust/lttng-events.c
@@
-138,6
+138,7
@@
struct lttng_session *lttng_session_create(void)
session = zmalloc(sizeof(struct lttng_session));
if (!session)
return NULL;
session = zmalloc(sizeof(struct lttng_session));
if (!session)
return NULL;
+ session->struct_size = sizeof(struct lttng_session);
session_priv = zmalloc(sizeof(struct lttng_ust_session_private));
if (!session_priv) {
free(session);
session_priv = zmalloc(sizeof(struct lttng_ust_session_private));
if (!session_priv) {
free(session);
@@
-784,6
+785,7
@@
int lttng_event_create(const struct lttng_event_desc *desc,
ret = -ENOMEM;
goto cache_error;
}
ret = -ENOMEM;
goto cache_error;
}
+ event->struct_size = sizeof(struct lttng_event);
event_priv = zmalloc(sizeof(struct lttng_ust_event_private));
if (!event_priv) {
ret = -ENOMEM;
event_priv = zmalloc(sizeof(struct lttng_ust_event_private));
if (!event_priv) {
ret = -ENOMEM;
This page took
0.023585 seconds
and
4
git commands to generate.