X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Fhello%2Ftp.c;h=509f5a4912d625b687846403f185404a4ac1255e;hb=123881664dc99ef7817e8a3e7ca59d5eaa976d06;hp=e3d67618866e04e32f3e75ec3b0e07849f4e8697;hpb=93d0f2eaff675059588e958e3de74a1bb7dd4028;p=lttng-ust.git diff --git a/tests/hello/tp.c b/tests/hello/tp.c index e3d67618..509f5a49 100644 --- a/tests/hello/tp.c +++ b/tests/hello/tp.c @@ -1,17 +1,22 @@ -#include "tp.h" -#include -#include "usterr.h" +/* + * tp.c + * + * Copyright (c) 2011 Mathieu Desnoyers + * + * 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; version 2.1 of + * the License. + * + * 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 + */ -DEFINE_TRACE(hello_tptest); - -void tptest_probe(int anint) -{ - DBG("in tracepoint probe..."); - trace_mark(ust, tptest, "anint %d", anint); -} - -static void __attribute__((constructor)) init() -{ - DBG("connecting tracepoint..."); - register_trace_hello_tptest(tptest_probe); -} +#define TRACEPOINT_CREATE_PROBES +#include "ust_tests_hello.h"