projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update version to 2.0-pre17
[lttng-tools.git]
/
lttng-sessiond
/
trace-kernel.c
diff --git
a/lttng-sessiond/trace-kernel.c
b/lttng-sessiond/trace-kernel.c
index fa3ba692c828669e3d1edfa37a9645074602437a..c5b81f1e0d6b43138046d3e6cbde5bb7643e36fb 100644
(file)
--- a/
lttng-sessiond/trace-kernel.c
+++ b/
lttng-sessiond/trace-kernel.c
@@
-88,9
+88,9
@@
struct ltt_kernel_session *trace_kernel_create_session(char *path)
struct ltt_kernel_session *lks;
/* Allocate a new ltt kernel session */
struct ltt_kernel_session *lks;
/* Allocate a new ltt kernel session */
- lks = malloc(sizeof(struct ltt_kernel_session));
+ lks =
z
malloc(sizeof(struct ltt_kernel_session));
if (lks == NULL) {
if (lks == NULL) {
- perror("create kernel session malloc");
+ perror("create kernel session
z
malloc");
goto error;
}
goto error;
}
@@
-126,15
+126,15
@@
struct ltt_kernel_channel *trace_kernel_create_channel(struct lttng_channel *cha
int ret;
struct ltt_kernel_channel *lkc;
int ret;
struct ltt_kernel_channel *lkc;
- lkc = malloc(sizeof(struct ltt_kernel_channel));
+ lkc =
z
malloc(sizeof(struct ltt_kernel_channel));
if (lkc == NULL) {
if (lkc == NULL) {
- perror("ltt_kernel_channel malloc");
+ perror("ltt_kernel_channel
z
malloc");
goto error;
}
goto error;
}
- lkc->channel = malloc(sizeof(struct lttng_channel));
+ lkc->channel =
z
malloc(sizeof(struct lttng_channel));
if (lkc->channel == NULL) {
if (lkc->channel == NULL) {
- perror("lttng_channel malloc");
+ perror("lttng_channel
z
malloc");
goto error;
}
memcpy(lkc->channel, chan, sizeof(struct lttng_channel));
goto error;
}
memcpy(lkc->channel, chan, sizeof(struct lttng_channel));
@@
-170,10
+170,10
@@
struct ltt_kernel_event *trace_kernel_create_event(struct lttng_event *ev)
struct ltt_kernel_event *lke;
struct lttng_kernel_event *attr;
struct ltt_kernel_event *lke;
struct lttng_kernel_event *attr;
- lke = malloc(sizeof(struct ltt_kernel_event));
- attr = malloc(sizeof(struct lttng_kernel_event));
+ lke =
z
malloc(sizeof(struct ltt_kernel_event));
+ attr =
z
malloc(sizeof(struct lttng_kernel_event));
if (lke == NULL || attr == NULL) {
if (lke == NULL || attr == NULL) {
- perror("kernel event malloc");
+ perror("kernel event
z
malloc");
goto error;
}
goto error;
}
@@
-242,10
+242,10
@@
struct ltt_kernel_metadata *trace_kernel_create_metadata(char *path)
struct ltt_kernel_metadata *lkm;
struct lttng_channel *chan;
struct ltt_kernel_metadata *lkm;
struct lttng_channel *chan;
- lkm = malloc(sizeof(struct ltt_kernel_metadata));
- chan = malloc(sizeof(struct lttng_channel));
+ lkm =
z
malloc(sizeof(struct ltt_kernel_metadata));
+ chan =
z
malloc(sizeof(struct lttng_channel));
if (lkm == NULL || chan == NULL) {
if (lkm == NULL || chan == NULL) {
- perror("kernel metadata malloc");
+ perror("kernel metadata
z
malloc");
goto error;
}
goto error;
}
@@
-283,9
+283,9
@@
struct ltt_kernel_stream *trace_kernel_create_stream(void)
{
struct ltt_kernel_stream *lks;
{
struct ltt_kernel_stream *lks;
- lks = malloc(sizeof(struct ltt_kernel_stream));
+ lks =
z
malloc(sizeof(struct ltt_kernel_stream));
if (lks == NULL) {
if (lks == NULL) {
- perror("kernel stream malloc");
+ perror("kernel stream
z
malloc");
goto error;
}
goto error;
}
This page took
0.025991 seconds
and
4
git commands to generate.