otel-profiling-agent
otel-profiling-agent copied to clipboard
Clang 18 inline failure
Clang 18 fails to produce a working unwinder because the event_send_trigger function isn't inlined and the 5.4 kernels complain about bpf calls and bpf-tail calls both being present not being allowed. I guess "static inline" isn't strong enough and we need to break out the always_inline attribute?
Proposal:
- Use static inline attribute((always_inline))
- Create an OPTI_INLINE macro that expands to this use that everywhere
Can you give more details about your clang version and architecture? Because this issue is not reproducible here :)
$ clang-18 --version
Debian clang version 18.1.8 (12)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
$ uname -a
Linux P15v 6.11.4-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.4-1 (2024-10-20) x86_64 GNU/Linux