On Mon, 14 Feb 2022, Alexei Starovoitov wrote: > Alan, > can you demo your "okprobe" feature based on this api? > Any rough patches would do. sure; see below. Requires Andrii's v3 patches to be applied first, and demonstrates okprobe handling for a kprobe function that exists and one that doesn't - the important thing is skeleton attach can succeed even when a function is missing (as it would be if the associated module wasn't loaded). > The "o" handling will be done in which callback? > We set program type at init and do custom attach using the function name (specified in the program section after the "okprobe" prefix). However we make sure to catch -ENOENT attach failures and return 0 with a NULL link so skeleton attach can proceed.