projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove function:entry option to discourage its use
[lttng-tools.git]
/
lttng-sessiond
/
trace-ust.c
diff --git
a/lttng-sessiond/trace-ust.c
b/lttng-sessiond/trace-ust.c
index bc73b79776780a0d64fe98ceb2e5c93b0bf83a44..20e3dc5f149127d16768ad45381c200fb27c2a03 100644
(file)
--- a/
lttng-sessiond/trace-ust.c
+++ b/
lttng-sessiond/trace-ust.c
@@
-91,14
+91,13
@@
struct ltt_ust_session *trace_ust_create_session(char *path, unsigned int uid,
struct ltt_ust_session *lus;
/* Allocate a new ltt ust session */
struct ltt_ust_session *lus;
/* Allocate a new ltt ust session */
- lus = malloc(sizeof(struct ltt_ust_session));
+ lus =
z
malloc(sizeof(struct ltt_ust_session));
if (lus == NULL) {
if (lus == NULL) {
- PERROR("create ust session malloc");
+ PERROR("create ust session
z
malloc");
goto error;
}
/* Init data structure */
goto error;
}
/* Init data structure */
- lus->consumer_fds_sent = 0;
lus->uid = uid;
lus->start_trace = 0;
lus->uid = uid;
lus->start_trace = 0;
@@
-137,9
+136,9
@@
struct ltt_ust_channel *trace_ust_create_channel(struct lttng_channel *chan,
int ret;
struct ltt_ust_channel *luc;
int ret;
struct ltt_ust_channel *luc;
- luc = malloc(sizeof(struct ltt_ust_channel));
+ luc =
z
malloc(sizeof(struct ltt_ust_channel));
if (luc == NULL) {
if (luc == NULL) {
- perror("ltt_ust_channel malloc");
+ perror("ltt_ust_channel
z
malloc");
goto error;
}
goto error;
}
@@
-194,9
+193,9
@@
struct ltt_ust_event *trace_ust_create_event(struct lttng_event *ev)
{
struct ltt_ust_event *lue;
{
struct ltt_ust_event *lue;
- lue = malloc(sizeof(struct ltt_ust_event));
+ lue =
z
malloc(sizeof(struct ltt_ust_event));
if (lue == NULL) {
if (lue == NULL) {
- PERROR("ust event malloc");
+ PERROR("ust event
z
malloc");
goto error;
}
goto error;
}
@@
-250,7
+249,7
@@
struct ltt_ust_metadata *trace_ust_create_metadata(char *path)
lum = zmalloc(sizeof(struct ltt_ust_metadata));
if (lum == NULL) {
lum = zmalloc(sizeof(struct ltt_ust_metadata));
if (lum == NULL) {
- perror("ust metadata malloc");
+ perror("ust metadata
z
malloc");
goto error;
}
goto error;
}
This page took
0.025867 seconds
and
4
git commands to generate.