Re: [PATCH v2 perf,bpf 11/11] perf, bpf: save information about short living bpf programs

2019-02-15 Thread Song Liu
> On Feb 15, 2019, at 10:09 AM, Arnaldo Carvalho de Melo > wrote: > > Em Fri, Feb 15, 2019 at 05:13:01PM +, Song Liu escreveu: >>> On Feb 15, 2019, at 6:41 AM, Arnaldo Carvalho de Melo >>> wrote: >>> Em Thu, Feb 14, 2019 at 04:00:45PM -0800, Song Liu escreveu: +pthread_t

Re: [PATCH v2 perf,bpf 11/11] perf, bpf: save information about short living bpf programs

2019-02-15 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 15, 2019 at 05:13:01PM +, Song Liu escreveu: > > On Feb 15, 2019, at 6:41 AM, Arnaldo Carvalho de Melo > > wrote: > > Em Thu, Feb 14, 2019 at 04:00:45PM -0800, Song Liu escreveu: > >> +pthread_t poll_thread; > >> + > >> +int bpf_event__start_polling_thread(struct

Re: [PATCH v2 perf,bpf 11/11] perf, bpf: save information about short living bpf programs

2019-02-15 Thread Song Liu
> On Feb 15, 2019, at 6:41 AM, Arnaldo Carvalho de Melo wrote: > > Em Thu, Feb 14, 2019 at 04:00:45PM -0800, Song Liu escreveu: >> To annotate bpf programs in perf, it is necessary to save information in >> bpf_prog_info and btf. For short living bpf program, it is necessary to >> save these

Re: [PATCH v2 perf,bpf 11/11] perf, bpf: save information about short living bpf programs

2019-02-15 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 14, 2019 at 04:00:45PM -0800, Song Liu escreveu: > To annotate bpf programs in perf, it is necessary to save information in > bpf_prog_info and btf. For short living bpf program, it is necessary to > save these information before it is unloaded. > > This patch saves these information

[PATCH v2 perf,bpf 11/11] perf, bpf: save information about short living bpf programs

2019-02-14 Thread Song Liu
To annotate bpf programs in perf, it is necessary to save information in bpf_prog_info and btf. For short living bpf program, it is necessary to save these information before it is unloaded. This patch saves these information in a separate thread. This thread creates its own evlist, that only