projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kmalloc, kfree, etc => malloc, free, etc
[ust.git]
/
libust
/
tracer.c
diff --git
a/libust/tracer.c
b/libust/tracer.c
index 5f9aa69ffe2d8531f1c88bed35eb910b82b709ae..6f3c1aeaaf58b37cfc52fd310b49f655a40d7921 100644
(file)
--- a/
libust/tracer.c
+++ b/
libust/tracer.c
@@
-343,7
+343,7
@@
void ltt_release_trace(struct kref *kref)
struct ust_trace *trace = container_of(kref,
struct ust_trace, kref);
ltt_channels_trace_free(trace->channels);
struct ust_trace *trace = container_of(kref,
struct ust_trace, kref);
ltt_channels_trace_free(trace->channels);
-
k
free(trace);
+ free(trace);
}
static inline void prepare_chan_size_num(unsigned int *subbuf_size,
}
static inline void prepare_chan_size_num(unsigned int *subbuf_size,
@@
-381,7
+381,7
@@
int _ltt_trace_setup(const char *trace_name)
goto traces_error;
}
goto traces_error;
}
- new_trace =
kzalloc(sizeof(struct ust_trace), GFP_KERNEL
);
+ new_trace =
zmalloc(sizeof(struct ust_trace)
);
if (!new_trace) {
ERR("Unable to allocate memory for trace %s", trace_name);
err = -ENOMEM;
if (!new_trace) {
ERR("Unable to allocate memory for trace %s", trace_name);
err = -ENOMEM;
@@
-423,7
+423,7
@@
int _ltt_trace_setup(const char *trace_name)
return 0;
trace_free:
return 0;
trace_free:
-
k
free(new_trace);
+ free(new_trace);
traces_error:
return err;
}
traces_error:
return err;
}
@@
-442,7
+442,7
@@
int ltt_trace_setup(const char *trace_name)
static void _ltt_trace_free(struct ust_trace *trace)
{
list_del(&trace->list);
static void _ltt_trace_free(struct ust_trace *trace)
{
list_del(&trace->list);
-
k
free(trace);
+ free(trace);
}
int ltt_trace_set_type(const char *trace_name, const char *trace_type)
}
int ltt_trace_set_type(const char *trace_name, const char *trace_type)
This page took
0.023748 seconds
and
4
git commands to generate.