projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.lttng.org/lttng-tools
[lttng-tools.git]
/
src
/
common
/
ust-consumer
/
ust-consumer.c
diff --git
a/src/common/ust-consumer/ust-consumer.c
b/src/common/ust-consumer/ust-consumer.c
index c8ba084606180790b51fc7d11ba8ea5075f019c4..8dec2d78366af35793e56797c0db537fcfd6bc6a 100644
(file)
--- a/
src/common/ust-consumer/ust-consumer.c
+++ b/
src/common/ust-consumer/ust-consumer.c
@@
-59,7
+59,7
@@
ssize_t lttng_ustconsumer_on_read_subbuffer_mmap(
stream->buf, &mmap_offset);
if (ret != 0) {
errno = -ret;
stream->buf, &mmap_offset);
if (ret != 0) {
errno = -ret;
-
perror
("ustctl_get_mmap_read_offset");
+
PERROR
("ustctl_get_mmap_read_offset");
goto end;
}
while (len > 0) {
goto end;
}
while (len > 0) {
@@
-68,7
+68,7
@@
ssize_t lttng_ustconsumer_on_read_subbuffer_mmap(
len = 0;
} else if (ret < 0) {
errno = -ret;
len = 0;
} else if (ret < 0) {
errno = -ret;
-
perror
("Error in file write");
+
PERROR
("Error in file write");
goto end;
}
/* This won't block, but will start writeout asynchronously */
goto end;
}
/* This won't block, but will start writeout asynchronously */
@@
-110,7
+110,7
@@
int lttng_ustconsumer_take_snapshot(struct lttng_consumer_local_data *ctx,
ret = ustctl_snapshot(stream->chan->handle, stream->buf);
if (ret != 0) {
errno = -ret;
ret = ustctl_snapshot(stream->chan->handle, stream->buf);
if (ret != 0) {
errno = -ret;
-
perror
("Getting sub-buffer snapshot.");
+
PERROR
("Getting sub-buffer snapshot.");
}
return ret;
}
return ret;
@@
-132,7
+132,7
@@
int lttng_ustconsumer_get_produced_snapshot(
stream->buf, pos);
if (ret != 0) {
errno = -ret;
stream->buf, pos);
if (ret != 0) {
errno = -ret;
-
perror
("kernctl_snapshot_get_produced");
+
PERROR
("kernctl_snapshot_get_produced");
}
return ret;
}
return ret;
@@
-261,7
+261,7
@@
end:
/* signal the poll thread */
ret = write(ctx->consumer_poll_pipe[1], "4", 1);
if (ret < 0) {
/* signal the poll thread */
ret = write(ctx->consumer_poll_pipe[1], "4", 1);
if (ret < 0) {
-
perror
("write consumer poll");
+
PERROR
("write consumer poll");
}
end_nosignal:
return 0;
}
end_nosignal:
return 0;
@@
-401,7
+401,7
@@
int lttng_ustconsumer_on_recv_stream(struct lttng_consumer_stream *stream)
stream->uid, stream->gid);
if (ret < 0) {
ERR("Opening %s", stream->path_name);
stream->uid, stream->gid);
if (ret < 0) {
ERR("Opening %s", stream->path_name);
-
perror
("open");
+
PERROR
("open");
goto error;
}
stream->out_fd = ret;
goto error;
}
stream->out_fd = ret;
This page took
0.026737 seconds
and
5
git commands to generate.