projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
instrumentation: btrfs: remove compatibility code
[lttng-modules.git]
/
lttng-context.c
diff --git
a/lttng-context.c
b/lttng-context.c
index 54fa447848177770d47e309d6eb52e60477cabb5..9f84172799c99f171f292ec00228a34393869fba 100644
(file)
--- a/
lttng-context.c
+++ b/
lttng-context.c
@@
-11,7
+11,6
@@
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/slab.h>
-#include <wrapper/vmalloc.h> /* for wrapper_vmalloc_sync_all() */
#include <lttng-events.h>
#include <lttng-tracer.h>
#include <lttng-events.h>
#include <lttng-tracer.h>
@@
-82,12
+81,13
@@
struct lttng_ctx_field *lttng_append_context(struct lttng_ctx **ctx_p)
struct lttng_ctx_field *new_fields;
ctx->allocated_fields = max_t(size_t, 1, 2 * ctx->allocated_fields);
struct lttng_ctx_field *new_fields;
ctx->allocated_fields = max_t(size_t, 1, 2 * ctx->allocated_fields);
- new_fields = lttng_kvzalloc(ctx->allocated_fields * sizeof(struct lttng_ctx_field), GFP_KERNEL);
+ new_fields = kvzalloc_node(ctx->allocated_fields * sizeof(struct lttng_ctx_field),
+ GFP_KERNEL, NUMA_NO_NODE);
if (!new_fields)
return NULL;
if (ctx->fields)
memcpy(new_fields, ctx->fields, sizeof(*ctx->fields) * ctx->nr_fields);
if (!new_fields)
return NULL;
if (ctx->fields)
memcpy(new_fields, ctx->fields, sizeof(*ctx->fields) * ctx->nr_fields);
-
lttng_
kvfree(ctx->fields);
+ kvfree(ctx->fields);
ctx->fields = new_fields;
}
field = &ctx->fields[ctx->nr_fields];
ctx->fields = new_fields;
}
field = &ctx->fields[ctx->nr_fields];
@@
-205,7
+205,7
@@
void lttng_destroy_context(struct lttng_ctx *ctx)
if (ctx->fields[i].destroy)
ctx->fields[i].destroy(&ctx->fields[i]);
}
if (ctx->fields[i].destroy)
ctx->fields[i].destroy(&ctx->fields[i]);
}
-
lttng_
kvfree(ctx->fields);
+ kvfree(ctx->fields);
kfree(ctx);
}
kfree(ctx);
}
This page took
0.023717 seconds
and
4
git commands to generate.