Commit 867c2c1b authored by Philippe Gerum's avatar Philippe Gerum
Browse files

copperplate/traceobj: use plain malloc/free for tracepoint array

The tracepoint array must be initialized early in essence, when no
real-time requirement exists yet. No need to pull such memory from the
real-time allocator, malloc is fine.
parent 8e606e68
......@@ -78,7 +78,7 @@ int traceobj_init(struct traceobj *trobj, const char *label, int nr_marks)
trobj->cur_mark = 0;
if (nr_marks > 0) {
trobj->marks = pvmalloc(sizeof(struct tracemark) * nr_marks);
trobj->marks = __STD(malloc(sizeof(struct tracemark) * nr_marks));
if (trobj->marks == NULL)
panic("cannot allocate mark table for tracing");
......@@ -177,7 +177,7 @@ fail:
void traceobj_destroy(struct traceobj *trobj)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment