projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add single disable UST event support
[lttng-tools.git]
/
lttng-sessiond
/
kernel-ctl.c
diff --git
a/lttng-sessiond/kernel-ctl.c
b/lttng-sessiond/kernel-ctl.c
index 203c01050e82199f34128d09b9c5dd95ca6fb0a4..52d60f00460ed01660c1578f3060d84eceb28220 100644
(file)
--- a/
lttng-sessiond/kernel-ctl.c
+++ b/
lttng-sessiond/kernel-ctl.c
@@
-49,9
+49,9
@@
int kernel_add_channel_context(struct ltt_kernel_channel *chan,
goto error;
}
goto error;
}
- chan->ctx = malloc(sizeof(struct lttng_kernel_context));
+ chan->ctx =
z
malloc(sizeof(struct lttng_kernel_context));
if (chan->ctx == NULL) {
if (chan->ctx == NULL) {
- perror("malloc event context");
+ perror("
z
malloc event context");
goto error;
}
goto error;
}
@@
-78,9
+78,9
@@
int kernel_add_event_context(struct ltt_kernel_event *event,
goto error;
}
goto error;
}
- event->ctx = malloc(sizeof(struct lttng_kernel_context));
+ event->ctx =
z
malloc(sizeof(struct lttng_kernel_context));
if (event->ctx == NULL) {
if (event->ctx == NULL) {
- perror("malloc event context");
+ perror("
z
malloc event context");
goto error;
}
goto error;
}
@@
-574,7
+574,7
@@
ssize_t kernel_list_events(int tracer_fd, struct lttng_event **events)
* See kernel-ctl.h for explanation of this value
*/
nbmem = KERNEL_EVENT_LIST_SIZE;
* See kernel-ctl.h for explanation of this value
*/
nbmem = KERNEL_EVENT_LIST_SIZE;
- elist = malloc(sizeof(struct lttng_event) * nbmem);
+ elist =
z
malloc(sizeof(struct lttng_event) * nbmem);
while ((size = fscanf(fp, "event { name = %m[^;]; };%n\n", &event, &pos)) == 1) {
if (count > nbmem) {
while ((size = fscanf(fp, "event { name = %m[^;]; };%n\n", &event, &pos)) == 1) {
if (count > nbmem) {
This page took
0.025947 seconds
and
5
git commands to generate.