xemu/scripts/tracetool/format
Marc-André Lureau e32aaa5a19 trace: fix compilation with lttng-ust >= 2.13
On Fedora 36, with lttng-ust 2.13.1, compilation fails with:

In file included from trace/trace-ust-all.h:49085,
                 from trace/trace-ust-all.c:13:
/usr/include/lttng/tracepoint-event.h:67:10: error: #include expects "FILENAME" or <FILENAME>
   67 | #include LTTNG_UST_TRACEPOINT_INCLUDE
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

In lttng-ust commit 41858e2b6e8 ("Fix: don't do macro expansion in
tracepoint file name") from 2012, starting from lttng-ust 2.1, the API
was changed to expect TRACEPOINT_INCLUDE to be defined as a string.

In lttng-ust commit d2966b4b0b2 ("Remove TRACEPOINT_INCLUDE_FILE
macro"), in 2021, the compatibility macro was removed.

Use the "new" API from 2012, and bump the version requirement to 2.1 to
fix compilation with >= 2.13.

According to repology, all distributions we support have >= 2.1 (centos
8 has oldest with 2.8.1 afaict)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20220328084717.367993-2-marcandre.lureau@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2022-04-01 13:06:07 +02:00
..
__init__.py scripts/tracetool: Update maintainer email address 2020-06-24 11:21:00 +01:00
c.py trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
d.py scripts/tracetool: silence SystemTap dtrace(1) long long warnings 2020-11-11 13:10:38 +00:00
h.py scripts/tracetool: Update maintainer email address 2020-06-24 11:21:00 +01:00
log_stap.py tracetool: also strip %l and %ll from systemtap format strings 2021-02-01 10:50:55 +00:00
simpletrace_stap.py scripts/tracetool: Remove shebang header 2020-02-07 15:12:48 +01:00
stap.py scripts/tracetool: Update maintainer email address 2020-06-24 11:21:00 +01:00
ust_events_c.py scripts/tracetool: Remove shebang header 2020-02-07 15:12:48 +01:00
ust_events_h.py trace: fix compilation with lttng-ust >= 2.13 2022-04-01 13:06:07 +02:00