Re: [PATCH v3 25/30] perf clang jit: Allow jitted perf hook access BPF maps

2016-11-26 Thread Alexei Starovoitov
On Sat, Nov 26, 2016 at 07:03:49AM +, Wang Nan wrote: > Newly introduced jit-helpers.[ch] defines a series of helpers which helps > jitted perf hook functions accessing BPF maps defined in their BPF scripts. > The helpers fetches fd of 'struct bpf_map' from 'struct bpf_object' and the > address

[PATCH v3 25/30] perf clang jit: Allow jitted perf hook access BPF maps

2016-11-25 Thread Wang Nan
Newly introduced jit-helpers.[ch] defines a series of helpers which helps jitted perf hook functions accessing BPF maps defined in their BPF scripts. The helpers fetches fd of 'struct bpf_map' from 'struct bpf_object' and the address of 'struct bpf_map_def' in jitted file. 'struct bpf_object' is th