Re: [RFC 1/2] perf: support build BPF skeletons with perf
From: Jiri Olsa
Date: Wed Nov 25 2020 - 11:40:56 EST
On Tue, Nov 24, 2020 at 11:52:43PM +0000, Song Liu wrote:
>
>
> > On Nov 22, 2020, at 3:35 PM, Jiri Olsa <jolsa@xxxxxxxxxx> wrote:
> >
> > On Wed, Nov 18, 2020 at 08:50:45PM -0800, Song Liu wrote:
> >> BPF programs are useful in perf to profile BPF programs. BPF skeleton is
> >> by far the easiest way to write BPF tools. Enable building BPF skeletons
> >> in util/bpf_skel. A dummy bpf skeleton is added. More bpf skeletons will
> >> be added for different use cases.
> >
> > I was just in a place adding bpf program to perf as well,
> > so this will save me some time ;-) thanks!
>
> I'd love to learn about your plan. Maybe we have some similar ideas,
> and could collaborate on them.
the plan was to use skeleton as you did, because I agree it's the best
way to include bpf program in perf
I'm now using your patch and adding my bpf program on top of that ;-)
thanks,
jirka