Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1254329
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | "Wangnan (F)" <wangnan0@huawei.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH 4/7] perf tools: Enable BPF object configure syntax |
| Date | Fri, 23 Oct 2015 06:50:02 +0200 |
| Message-ID | <qmCsG-7GF-3@gated-at.bofh.it> (permalink) |
| References | <qkxdM-3h1-15@gated-at.bofh.it> <qkxns-3sd-17@gated-at.bofh.it> |
| X-Original-To | <acme@kernel.org>, <ast@plumgrid.com>, <brendan.d.gregg@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="utf-8"; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Originating-IP | [10.111.66.109] |
| X-Cfilter-Loop | Reflected |
| X-Mirapoint-Virus-Rapid-Raw | score=unknown(0), refid=str=0001.0A020205.5629BC3B.00D4,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 |
| X-Mirapoint-Loop-ID | 2e29eddbbd7edbd4b27271857f21c5aa |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 62 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | <a.p.zijlstra@chello.nl>, <daniel@iogearbox.net>, <dsahern@gmail.com>, <hekuang@huawei.com>, <jolsa@kernel.org>, <lizefan@huawei.com>, <masami.hiramatsu.pt@hitachi.com>, <namhyung@kernel.org>, <paulus@samba.org>, <linux-kernel@vger.kernel.org>, <pi3orama@163.com>, <xiakaixu@huawei.com>, Arnaldo Carvalho de Melo <acme@redhat.com> |
| X-Original-Date | Fri, 23 Oct 2015 12:48:41 +0800 |
| X-Original-Message-ID | <5629BC29.9070601@huawei.com> |
| X-Original-References | <1445078910-73699-1-git-send-email-wangnan0@huawei.com> <1445078910-73699-5-git-send-email-wangnan0@huawei.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1254329 |
Show key headers only | View raw
On 2015/10/17 18:48, Wang Nan wrote:
[SNIP]
>
> event_bpf_file:
> -PE_BPF_OBJECT
> +PE_BPF_OBJECT event_bpf_config
> {
> struct parse_events_evlist *data = _data;
> struct parse_events_error *error = data->error;
> struct list_head *list;
>
> ALLOC_LIST(list);
> - ABORT_ON(parse_events_load_bpf(data, list, $1, false));
> + ABORT_ON(parse_events_load_bpf(data, list, $1, false, $2));
> + parse_events__free_terms($2);
Here found a bug that $2 is possible to be NULL, but parse_events_free_terms
can't accept NULL param.
Will be fixed in next version.
Thank you.
> $$ = list;
> }
> |
> -PE_BPF_SOURCE
> +PE_BPF_SOURCE event_bpf_config
> {
> struct parse_events_evlist *data = _data;
> struct list_head *list;
>
> ALLOC_LIST(list);
> - ABORT_ON(parse_events_load_bpf(data, list, $1, true));
> + ABORT_ON(parse_events_load_bpf(data, list, $1, true, $2));
> + parse_events__free_terms($2);
> $$ = list;
> }
>
> +event_bpf_config:
> +'/' event_config '/'
> +{
> + $$ = $2;
> +}
> +|
> +{
> + $$ = NULL;
> +}
> +
> start_terms: event_config
> {
> struct parse_events_terms *data = _data;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [RFC PATCH 4/7] perf tools: Enable BPF object configure syntax "Wangnan (F)" <wangnan0@huawei.com> - 2015-10-23 06:50 +0200
csiph-web