Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754754AbbLPLZA (ORCPT ); Wed, 16 Dec 2015 06:25:00 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54902 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752854AbbLPLY7 (ORCPT ); Wed, 16 Dec 2015 06:24:59 -0500 Date: Wed, 16 Dec 2015 12:24:56 +0100 From: Jiri Olsa To: Wang Nan Cc: acme@kernel.org, masami.hiramatsu.pt@hitachi.com, jolsa@kernel.org, linux-kernel@vger.kernel.org, pi3orama@163.com, lizefan@huawei.com, Alexei Starovoitov , Arnaldo Carvalho de Melo , Namhyung Kim Subject: Re: [PATCH v5 10/14] perf tools: Enable indices setting syntax for BPF maps Message-ID: <20151216112456.GA6882@krava.brq.redhat.com> References: <1450089563-122430-1-git-send-email-wangnan0@huawei.com> <1450089563-122430-11-git-send-email-wangnan0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1450089563-122430-11-git-send-email-wangnan0@huawei.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2171 Lines: 54 On Mon, Dec 14, 2015 at 10:39:19AM +0000, Wang Nan wrote: SNIP > # cat /sys/kernel/debug/tracing/trace | grep usleep > usleep-405 [004] d... 2745423.547822: : 101 > usleep-655 [006] d... 2745434.122814: : 102 > usleep-904 [006] d... 2745439.916264: : 103 > # ./perf record -e './test_bpf_map_3.c/maps:channel.value[all]=104/' usleep 99 > # cat /sys/kernel/debug/tracing/trace | grep usleep > usleep-405 [004] d... 2745423.547822: : 101 > usleep-655 [006] d... 2745434.122814: : 102 > usleep-904 [006] d... 2745439.916264: : 103 > usleep-1537 [003] d... 2745538.053737: : 104 > > Error case: > # ./perf record -e './test_bpf_map_3.c/maps:channel.value[10...1000]=104/' usleep 99 > event syntax error: '..annel.value[10...1000]=104/' > \___ Index too large > Hint: Valid config terms: > maps:[].value=[value] > maps:[].event=[event] > > where is something like [0,3...5] or [all] > (add -v to see detail) > Run 'perf list' for a list of valid events > > Usage: perf record [] [] > or: perf record [] -- [] > > -e, --event event selector. use 'perf list' to list available events > > Signed-off-by: Wang Nan > Cc: Alexei Starovoitov > Cc: Arnaldo Carvalho de Melo > Cc: Jiri Olsa > Cc: Masami Hiramatsu > Cc: Namhyung Kim > Cc: Zefan Li > Cc: pi3orama@163.com > --- > tools/perf/util/parse-events.c | 5 ++- > tools/perf/util/parse-events.l | 13 ++++++- > tools/perf/util/parse-events.y | 85 ++++++++++++++++++++++++++++++++++++++++++ Acked-by: Jiri Olsa thanks, jirka -- 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/