X-Git-Url: http://git.lttng.org/?p=lttng-modules.git;a=blobdiff_plain;f=ltt-relay-lockless.c;h=db4362d45569801055c3f187720592146dd5e97c;hp=0c4c83c25b95631bf24e18fcf4856895397e78f4;hb=2e6246b4df9cdd984847183506f345ef92953f87;hpb=13c601172bb6ede4e4595c718d96410173f933af diff --git a/ltt-relay-lockless.c b/ltt-relay-lockless.c index 0c4c83c2..db4362d4 100644 --- a/ltt-relay-lockless.c +++ b/ltt-relay-lockless.c @@ -121,7 +121,7 @@ void ltt_chanbuf_free(struct ltt_chanbuf *buf) struct ltt_chan *chan = container_of(buf->a.chan, struct ltt_chan, a); ltt_relay_print_buffer_errors(chan, buf->a.cpu); -#ifdef CONFIG_LTT_VMCORE +#ifdef LTT_VMCORE kfree(buf->commit_seq); #endif kfree(buf->commit_count); @@ -157,7 +157,7 @@ int ltt_chanbuf_create(struct ltt_chanbuf *buf, struct ltt_chan_alloc *chana, goto free_chanbuf; } -#ifdef CONFIG_LTT_VMCORE +#ifdef LTT_VMCORE buf->commit_seq = kzalloc_node(ALIGN(sizeof(*buf->commit_seq) * chan->a.n_sb, 1 << INTERNODE_CACHE_SHIFT), @@ -208,7 +208,7 @@ int ltt_chanbuf_create(struct ltt_chanbuf *buf, struct ltt_chan_alloc *chana, /* Error handling */ free_init: -#ifdef CONFIG_LTT_VMCORE +#ifdef LTT_VMCORE kfree(buf->commit_seq); free_commit: #endif