X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Ffork%2Ffork2.c;h=49baba8a727e21bd19613b09eb58e5ff03e23da2;hb=476037d9a24fdd5e339e3565743aadb9cb8a0a96;hp=63659c47342aea16ee1766e821187662653f873b;hpb=aa08b4413291fabcbd1b1144377d37034ad361de;p=lttng-ust.git diff --git a/tests/fork/fork2.c b/tests/fork/fork2.c index 63659c47..49baba8a 100644 --- a/tests/fork/fork2.c +++ b/tests/fork/fork2.c @@ -1,15 +1,32 @@ +/* Copyright (C) 2009 Pierre-Marc Fournier + * + * 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 + */ + #include #include -#include +#define TRACEPOINT_DEFINE +#define TRACEPOINT_CREATE_PROBES +#include "ust_tests_fork.h" int main() { printf("IN FORK2\n"); - trace_mark(ust, after_exec, MARK_NOARGS); + tracepoint(ust_tests_fork, after_exec); return 0; } - -MARKER_LIB;