[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151215131223.GA31734@krava.brq.redhat.com>
Date: Tue, 15 Dec 2015 14:12:23 +0100
From: Jiri Olsa <jolsa@...hat.com>
To: Wang Nan <wangnan0@...wei.com>
Cc: acme@...nel.org, masami.hiramatsu.pt@...achi.com, jolsa@...nel.org,
linux-kernel@...r.kernel.org, pi3orama@....com, lizefan@...wei.com,
He Kuang <hekuang@...wei.com>,
Alexei Starovoitov <ast@...nel.org>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Namhyung Kim <namhyung@...nel.org>
Subject: Re: [PATCH v5 05/14] perf tools: Enable BPF object configure syntax
On Mon, Dec 14, 2015 at 10:39:14AM +0000, Wang Nan wrote:
SNIP
> -e, --event <event> event selector. use 'perf list' to list available events
>
> # ./perf record -e './test_bpf_map_1.c/xmaps:channel.value=10/' usleep 10
> event syntax error: '..pf_map_1.c/xmaps:channel.value=10/'
> \___ Invalid object config option
> [SNIP]
>
> # ./perf record -e './test_bpf_map_1.c/maps:xchannel.value=10/' usleep 10
> event syntax error: '..p_1.c/maps:xchannel.value=10/'
> \___ Target map not exist
> [SNIP]
>
> # ./perf record -e './test_bpf_map_1.c/maps:channel.xvalue=10/' usleep 10
> event syntax error: '..ps:channel.xvalue=10/'
> \___ Invalid object maps config option
> [SNIP]
>
> # ./perf record -e './test_bpf_map_1.c/maps:channel.value=x10/' usleep 10
> event syntax error: '..nnel.value=x10/'
> \___ Incorrect value type for map
> [SNIP]
>
> Change BPF_MAP_TYPE_ARRAY to '1':
>
> # ./perf record -e './test_bpf_map_1.c/maps:channel.value=10/' usleep 10
> event syntax error: '..ps:channel.value=10/'
> \___ Can't use this config term to this type of map
>
> Hint: Valid config term:
> maps:[<arraymap>].value=[value]
> (add -v to see detail)
>
> Signed-off-by: Wang Nan <wangnan0@...wei.com>
> Signed-off-by: He Kuang <hekuang@...wei.com>
> Cc: Alexei Starovoitov <ast@...nel.org>
> Cc: Arnaldo Carvalho de Melo <acme@...hat.com>
> Cc: Jiri Olsa <jolsa@...nel.org>
> Cc: Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>
> Cc: Namhyung Kim <namhyung@...nel.org>
> Cc: Zefan Li <lizefan@...wei.com>
> Cc: pi3orama@....com
> ---
> tools/perf/util/parse-events.c | 56 +++++++++++++++++++++++++++++++++++++++---
> tools/perf/util/parse-events.h | 3 ++-
> tools/perf/util/parse-events.l | 2 +-
> tools/perf/util/parse-events.y | 23 ++++++++++++++---
> 4 files changed, 75 insertions(+), 9 deletions(-)
I don't understand the bpf stuff, but as far as config terms this
change look ok to me, so for bison/flex parser related changes:
Acked-by: Jiri Olsa <jolsa@...nel.org>
thanks,
jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists