X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libust%2Fmarker.h;h=ad813bc2c07537009bdb4719cf3849c2a9344a8f;hb=6af64c431c0a521fc927fa72b9f4015397ce11d4;hp=3a86ac3732c4e5924aa6bd776c77fda8edcf6616;hpb=872037bb1437ab961f97834a624eb2d9b0706ab2;p=ust.git diff --git a/libust/marker.h b/libust/marker.h index 3a86ac3..ad813bc 100644 --- a/libust/marker.h +++ b/libust/marker.h @@ -6,8 +6,19 @@ * (C) Copyright 2006 Mathieu Desnoyers * (C) Copyright 2009 Pierre-Marc Fournier * - * This file is released under the GPLv2. - * See the file COPYING for more details. + * 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 */ #ifndef _LINUX_MARKER_H @@ -18,8 +29,8 @@ #include "immediate.h" //ust// #include #include "kernelcompat.h" -#include "compiler.h" #include +#include "usterr.h" //ust// struct module; //ust// struct task_struct; @@ -292,9 +303,11 @@ extern struct marker __stop___markers[] __attribute__((visibility("hidden"))); \ static void __attribute__((constructor)) __markers__init(void) \ { \ + DBG("next registration in "__FILE__"\n");\ marker_register_lib(__start___markers, (((long)__stop___markers)-((long)__start___markers))/sizeof(struct marker));\ } -void marker_set_new_marker_cb(void (*cb)(struct marker *)); +extern void marker_set_new_marker_cb(void (*cb)(struct marker *)); +extern void init_markers(void); #endif