X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fmulti-lib%2Fcallsites.c;fp=tests%2Fregression%2Fust%2Fmulti-lib%2Fcallsites.c;h=4b61ac203c47b46cec3215c819ce214663a48f2e;hp=0000000000000000000000000000000000000000;hb=3f7f208a0150d93363cbf7755e890a9839114ab5;hpb=c54b437e412758d71ee7cb61d1a60085009f3f90 diff --git a/tests/regression/ust/multi-lib/callsites.c b/tests/regression/ust/multi-lib/callsites.c new file mode 100644 index 000000000..4b61ac203 --- /dev/null +++ b/tests/regression/ust/multi-lib/callsites.c @@ -0,0 +1,34 @@ +/* + * Copyright (C) - 2018 Francis Deslauriers + * + * 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 TRACEPOINT_DEFINE +#define TRACEPOINT_PROBE_DYNAMIC_LINKAGE +#include "probes.h" + +#include +#include +#include +#include + +#ifndef VALUE +#define VALUE (-1) +#endif + +void call_tracepoint(void) { + tracepoint(multi, tp, VALUE); +} +