X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-elf-binary%2Fuserspace-probe-elf-binary.c;h=8488c8a3940ffb9770ca94cba79f553db6d22c9d;hp=76f44027fadbd10a68a243b1877e9f3fe49e38df;hb=bcf66e7d327496653738061614900f9828553432;hpb=a9c2df2bfce7a27b53ee5d5101f259f3e1f506b1 diff --git a/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c b/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c index 76f44027f..8488c8a39 100644 --- a/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c +++ b/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c @@ -16,13 +16,18 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "foo.h" volatile int not_a_function = 0; -void __attribute__ ((noinline)) test_function() + +void __attribute__ ((noinline)) test_function(); +void __attribute__ ((noinline)) test_function() { not_a_function += 1; } + int main(int argc, char *argv[]) { test_function(); + dynamic_symbol(42); return 0; }