Re: [PATCH v4 perf, bpf-next 5/7] perf util: handle PERF_RECORD_BPF_EVENT

2018-12-18 Thread Song Liu
Please ignore this one. The other 5/7 is the right patch. Thanks, Song > On Dec 18, 2018, at 10:02 PM, Song Liu wrote: > > This patch handles PERF_RECORD_BPF_EVENT in perf record/report. > Specifically, map and symbol are created for PERF_BPF_EVENT_PROG_LOAD, > and removed for PERF_BPF_EVENT_P

[PATCH v4 perf, bpf-next 5/7] perf util: handle PERF_RECORD_BPF_EVENT

2018-12-18 Thread Song Liu
This patch handles PERF_RECORD_BPF_EVENT in perf record/report. Specifically, map and symbol are created for PERF_BPF_EVENT_PROG_LOAD, and removed for PERF_BPF_EVENT_PROG_UNLOAD. This patch also set perf_event_attr.bpf_event properly. The flag is ON by default. Signed-off-by: Song Liu --- tools