X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=libust%2Fbuffers.c;h=374ec613240fde5028fbac694b9a4d49a22c20c8;hb=1dba3e6c054da18f238d051da5b1839bd5e4e4dd;hp=5d9bb8ec87ab566bdf58fe476e2b8a20f58407de;hpb=245d371ea1c17d6196af065a40dfcdc671b40f41;p=ust.git diff --git a/libust/buffers.c b/libust/buffers.c index 5d9bb8e..374ec61 100644 --- a/libust/buffers.c +++ b/libust/buffers.c @@ -777,11 +777,11 @@ static int ust_buffers_create_channel(const char *trace_name, struct ust_trace * ltt_chan->commit_count_mask = (~0UL >> ltt_chan->n_subbufs_order); ltt_chan->n_cpus = get_n_cpus(); //ust// ltt_chan->buf = percpu_alloc_mask(sizeof(struct ltt_channel_buf_struct), GFP_KERNEL, cpu_possible_map); - ltt_chan->buf = (void *) malloc(ltt_chan->n_cpus * sizeof(void *)); + ltt_chan->buf = (void *) zmalloc(ltt_chan->n_cpus * sizeof(void *)); if(ltt_chan->buf == NULL) { goto error; } - ltt_chan->buf_struct_shmids = (int *) malloc(ltt_chan->n_cpus * sizeof(int)); + ltt_chan->buf_struct_shmids = (int *) zmalloc(ltt_chan->n_cpus * sizeof(int)); if(ltt_chan->buf_struct_shmids == NULL) goto free_buf;