Re: [PATCH v3 19/30] perf clang jit: Insignt BPF and JIT functions in a Module

2016-11-26 Thread Alexei Starovoitov
On Sat, Nov 26, 2016 at 07:03:43AM +, Wang Nan wrote: > Identify BPF functions, JIT functions and maps during init. Functions in > section starting with "perfhook:" are JIT functions. They will be JIT > compiled and hooked at perfhooks. > > During init of PerfModule, mark JIT functions as Avai

[PATCH v3 19/30] perf clang jit: Insignt BPF and JIT functions in a Module

2016-11-25 Thread Wang Nan
Identify BPF functions, JIT functions and maps during init. Functions in section starting with "perfhook:" are JIT functions. They will be JIT compiled and hooked at perfhooks. During init of PerfModule, mark JIT functions as AvailableExternallyLinkage. LLVM skips functions with linkage like this