>> Specially the attach_kprobe_legacy() function: >> >> https://github.com/rafaeldtinoco/portablebpf/blob/master/mine.c#L31 >> >> I wanted to reply here in case others also face this. > > Great, glad it worked out. It would be great if you could contribute > legacy kprobe support for libbpf as a proper patch, since it probably > would be useful for a bunch of other people stuck with old kernels. Definitely! Will suggest a patch for this soon. Thanks for the feedback. -rafaeldtinoco