Re: [PATCH 07/54] perf tools: Enable BPF object configure syntax

2016-02-17 Thread Wangnan (F)
On 2016/2/12 22:09, Jiri Olsa wrote: On Fri, Feb 05, 2016 at 02:01:32PM +, Wang Nan wrote: SNIP } | -PE_BPF_SOURCE +PE_BPF_SOURCE opt_event_config { struct parse_events_evlist *data = _data; struct list_head *list; ALLOC_LIST(list); - ABORT_ON(parse_eve

Re: [PATCH 07/54] perf tools: Enable BPF object configure syntax

2016-02-12 Thread Jiri Olsa
On Fri, Feb 05, 2016 at 02:01:32PM +, Wang Nan wrote: SNIP > } > | > -PE_BPF_SOURCE > +PE_BPF_SOURCE opt_event_config > { > struct parse_events_evlist *data = _data; > struct list_head *list; > > ALLOC_LIST(list); > - ABORT_ON(parse_events_load_bpf(data, list, $1, t

[PATCH 07/54] perf tools: Enable BPF object configure syntax

2016-02-05 Thread Wang Nan
This patch adds the final step for BPF map configuration. A new syntax is appended into parser so user can config BPF objects through '/' '/' enclosed config terms. After this patch, following syntax is available: # perf record -e ./test_bpf_map_1.c/maps:channel.value=10/ ... It would takes eff