X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-events.c;h=d02f4dff0596934ad256c92fe45c01fa3edf5b8c;hb=dd8227fab4fff032297b9df0560d408615b4a3da;hp=d8cf337de93bf75d92b81754a7325fc0e2d0d1ee;hpb=0e648dfbed54d26f95a302d62512517ae09c8315;p=lttng-modules.git diff --git a/lttng-events.c b/lttng-events.c index d8cf337d..d02f4dff 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -44,6 +44,7 @@ #include "lttng-events.h" #include "lttng-tracer.h" #include "lttng-abi-old.h" +#include "wrapper/vzalloc.h" #define METADATA_CACHE_DEFAULT_SIZE 4096 @@ -98,7 +99,7 @@ struct lttng_session *lttng_session_create(void) GFP_KERNEL); if (!metadata_cache) goto err_free_session; - metadata_cache->data = vzalloc(METADATA_CACHE_DEFAULT_SIZE); + metadata_cache->data = lttng_vzalloc(METADATA_CACHE_DEFAULT_SIZE); if (!metadata_cache->data) goto err_free_cache; metadata_cache->cache_alloc = METADATA_CACHE_DEFAULT_SIZE; @@ -688,7 +689,7 @@ int lttng_metadata_printf(struct lttng_session *session, tmp_cache_alloc_size = max_t(unsigned int, session->metadata_cache->cache_alloc + len, session->metadata_cache->cache_alloc << 1); - tmp_cache_realloc = vzalloc(tmp_cache_alloc_size); + tmp_cache_realloc = lttng_vzalloc(tmp_cache_alloc_size); if (!tmp_cache_realloc) goto err; if (session->metadata_cache->data) {