Closed skoehler-soocs closed 5 months ago
Fixed, there used to be a breaking change in the sched_switch tracepoint argument signature - and not all BPF client & compilation libraries agree apparently. This is possibly because on OEL8 you have UEK kernel but RedHat-supplied libraries (compatible with 4.18) interacting with these kernel functions. But I have previously made sure that all the libbpf, bcc libraries are installed from the UEK repo (by default yum/dnf may pick the wrong ones), but still got that error. I use a better way to get the prev_state now and works on my OEL8 with UEK 5.15 on ARM.
Anyone wondering about the tracepoint prev_state change (and the rabbithole leads deeper to the linux kernel task state vs __state), this:
https://lore.kernel.org/lkml/93a20759600c05b6d9e4359a1517c88e06b44834.camel@fb.com/