Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1279065
| From | "Wangnan (F)" <wangnan0@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: RFC Re: [PATCH v2 04/13] perf tools: Add API to config maps in bpf object |
| Date | 2015-11-28 02:30 +0100 |
| Message-ID | <qzCuU-20r-41@gated-at.bofh.it> (permalink) |
| References | <qzmT8-uQ-3@gated-at.bofh.it> <qzn2O-yf-5@gated-at.bofh.it> <qzClb-1X3-1@gated-at.bofh.it> <qzCuT-20r-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2015/11/28 9:20, Wangnan (F) wrote: > > > On 2015/11/28 9:10, Arnaldo Carvalho de Melo wrote: >> Em Fri, Nov 27, 2015 at 08:47:38AM +0000, Wang Nan escreveu: >>> bpf__config_obj() is introduced as a core API to config BPF object >>> after loading. One configuration option of maps is introduced. After >>> this patch BPF object can accept configuration like: >>> >>> maps:my_map:value=1234 >>> >>> (maps.my_map.value looks pretty. However, there's a small but hard >>> to fixed problem related to flex's greedy matching. Please see [1]. >>> Choose ':' to avoid it in a simpler way.) >> Understood the issues, but I would like to hear from Ingo, Jiri, >> Namhyung, Brian and others here, since we're setting up syntax, and yes, >> using: >> maps.my_map.value[0,3...6]=1234; >> >> or even: >> >> maps->my_map->value[0,3...6]=1234; >> >> Looks more natural than: >> >> maps:my_map:value[0,3...6]=1234; > > You don't mention maps::my_map::value. C++ use '::' this way, so I think > it is also a possible choice. > > Or we can use another character for example '|' to replace '/' in case we > have a map starting with 'c' or 'o'. For example: > > ./mybpf.c|maps.channel.value=1234| > > and in normal case still support '/': > > ./mybpf.c/maps.channel.value=1234/ Should be: ./mybpf.c/maps.mymap.value=1234/ > > like 'sed': > > # sed 's/a/b/g' > a > b > # sed 's+/+|+g' > / > | > > Thank you. -- 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 — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 04/13] perf tools: Add API to config maps in bpf object Wang Nan <wangnan0@huawei.com> - 2015-11-27 10:00 +0100
RFC Re: [PATCH v2 04/13] perf tools: Add API to config maps in bpf object Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-11-28 02:20 +0100
Re: RFC Re: [PATCH v2 04/13] perf tools: Add API to config maps in bpf object "Wangnan (F)" <wangnan0@huawei.com> - 2015-11-28 02:30 +0100
Re: RFC Re: [PATCH v2 04/13] perf tools: Add API to config maps in bpf object "Wangnan (F)" <wangnan0@huawei.com> - 2015-11-28 02:30 +0100
Re: RFC Re: [PATCH v2 04/13] perf tools: Add API to config maps in bpf object Namhyung Kim <namhyung@kernel.org> - 2015-11-29 17:30 +0100
csiph-web