X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libust%2Ftracer.c;h=9c7e557aa050bc4a13f02a8cd2ecb6b51f8c63b0;hb=1e2944cb1e15d658b5991026e5604c56f551e2ab;hp=b807a508b0cb6120c1baeaedf9620674c343bf85;hpb=b4512257eb71d0432554047acf6278dc42a15a75;p=lttng-ust.git diff --git a/libust/tracer.c b/libust/tracer.c index b807a508..9c7e557a 100644 --- a/libust/tracer.c +++ b/libust/tracer.c @@ -4,6 +4,20 @@ * (C) Copyright 2005-2008 - * Mathieu Desnoyers (mathieu.desnoyers@polymtl.ca) * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * * Tracing management internal kernel API. Trace buffer allocation/free, tracing * start/stop. * @@ -38,6 +52,8 @@ //ust// #include //ust// #include //ust// #include +#include + #include "kernelcompat.h" #include "tracercore.h" #include "tracer.h" @@ -665,7 +681,7 @@ int ltt_trace_alloc(const char *trace_name) { int err = 0; struct ltt_trace_struct *trace; - int subbuf_size, subbuf_cnt; + unsigned int subbuf_size, subbuf_cnt; unsigned long flags; int chan; const char *channel_name;