Hello,

please find attached a small patch which demonstrates the problem.

The patch simply renames the test file ust_tests_hello.h into
ust_tests-linux-hello.h. The build then fails on linux because the "linux"
in

    #define TRACEPOINT_INCLUDE_FILE ./ust_tests-linux-hello.h

gets expanded to "1", and it then tries to include ust_tests-1-hello.h.

I do not know if this can be fixed, hopefully you'll have a better idea.

I came into the problem because I generate the tracepoint definition file
(à la lttng-gen-tp) but define TRACEPOINT_INCLUDE_FILE to the full path of
the generated file, which happens to be in the build directory, something
like .../build-sys-linux-x86_64/..., So I'm more exposed.

Maybe a possible solution would involve __FILE__?

Cheers

-- Sébastien

Attachment: 0001-make-ust_tests_hello-fail-because-of-macro-expansion.patch
Description: Binary data

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Reply via email to