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
/
tracepoint.c
diff --git
a/libust/tracepoint.c
b/libust/tracepoint.c
index 7976f7d920c3f3a6ff3e8c442e6aa2eace925e92..584b3ffe1af50ffdb01f383ed9ba6ace0fb267bc 100644
(file)
--- a/
libust/tracepoint.c
+++ b/
libust/tracepoint.c
@@
-86,8
+86,8
@@
struct tp_probes {
static inline void *allocate_probes(int count)
{
static inline void *allocate_probes(int count)
{
- struct tp_probes *p =
k
malloc(count * sizeof(void *)
- + sizeof(struct tp_probes)
, GFP_KERNEL
);
+ struct tp_probes *p = malloc(count * sizeof(void *)
+ + sizeof(struct tp_probes));
return p == NULL ? NULL : p->probes;
}
return p == NULL ? NULL : p->probes;
}
@@
-103,7
+103,7
@@
static inline void release_probes(void *old)
struct tp_probes, probes[0]);
//ust// call_rcu_sched(&tp_probes->u.rcu, rcu_free_old_probes);
synchronize_rcu();
struct tp_probes, probes[0]);
//ust// call_rcu_sched(&tp_probes->u.rcu, rcu_free_old_probes);
synchronize_rcu();
-
k
free(tp_probes);
+ free(tp_probes);
}
}
}
}
@@
-233,7
+233,7
@@
static struct tracepoint_entry *add_tracepoint(const char *name)
* Using kmalloc here to allocate a variable length element. Could
* cause some memory fragmentation if overused.
*/
* Using kmalloc here to allocate a variable length element. Could
* cause some memory fragmentation if overused.
*/
- e =
kmalloc(sizeof(struct tracepoint_entry) + name_len, GFP_KERNEL
);
+ e =
malloc(sizeof(struct tracepoint_entry) + name_len
);
if (!e)
return ERR_PTR(-ENOMEM);
memcpy(&e->name[0], name, name_len);
if (!e)
return ERR_PTR(-ENOMEM);
memcpy(&e->name[0], name, name_len);
@@
-250,7
+250,7
@@
static struct tracepoint_entry *add_tracepoint(const char *name)
static inline void remove_tracepoint(struct tracepoint_entry *e)
{
hlist_del(&e->hlist);
static inline void remove_tracepoint(struct tracepoint_entry *e)
{
hlist_del(&e->hlist);
-
k
free(e);
+ free(e);
}
/*
}
/*
@@
-501,7
+501,7
@@
void tracepoint_probe_update_all(void)
list_del(&pos->u.list);
//ust// call_rcu_sched(&pos->u.rcu, rcu_free_old_probes);
synchronize_rcu();
list_del(&pos->u.list);
//ust// call_rcu_sched(&pos->u.rcu, rcu_free_old_probes);
synchronize_rcu();
-
k
free(pos);
+ free(pos);
}
}
//ust// EXPORT_SYMBOL_GPL(tracepoint_probe_update_all);
}
}
//ust// EXPORT_SYMBOL_GPL(tracepoint_probe_update_all);
This page took
0.026074 seconds
and
4
git commands to generate.