]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ebpf_maps'
authorDavid S. Miller <davem@davemloft.net>
Tue, 18 Nov 2014 18:44:06 +0000 (13:44 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Nov 2014 18:44:06 +0000 (13:44 -0500)
commita23564668920f0932edbb9c3614e0f0a9d994cf9
treec5694485117f718c42b0363d2c09c4c746bfe376
parent3ca2b5a0a4c70dc6015551b743b2b17fbc0df1d2
parent4c32304987ebc839c44d668c8eb7fb0d44f8e5a6
Merge branch 'ebpf_maps'

Alexei Starovoitov says:

====================
implementation of eBPF maps

v1->v2:
renamed flags for MAP_UPDATE_ELEM command to be more concise,
clarified commit logs and improved comments in patches 1,3,7
per discussions with Daniel

Old v1 cover:

this set of patches adds implementation of HASH and ARRAY types of eBPF maps
which were described in manpage in commit dcb801a79d8a("Merge branch 'bpf-next'")

The difference vs previous version of these patches from August:
- added 'flags' attribute to BPF_MAP_UPDATE_ELEM
- in HASH type implementation removed per-map kmem_cache.
  I was doing kmem_cache_create() for every map to enable selective slub
  debugging to check for overflows and leaks. Now it's not needed, so just
  use normal kmalloc() for map elements.
- added ARRAY type which was mentioned in manpage, but wasn't public yet
- added map testsuite and removed temporary bits from test_stubs

Note, eBPF programs cannot be attached to events yet.
It will come in the next set.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>