NetBpfLoad: crash if we are reusing a map.
This is to identify if it actually happens. It is expected not to happen, because we now pin every map and are run only once on boot. Test: TreeHugger Flag: EXEMPT dead code Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Ie46ace40f20fb4b061a91cd53f8256caebdfa71f
This commit is contained in:
parent
649bbe6720
commit
b71cd4f8cf
1 changed files with 1 additions and 0 deletions
|
|
@ -986,6 +986,7 @@ static int createMaps(const char* elfPath, ifstream& elfFile, vector<unique_fd>&
|
|||
saved_errno = errno;
|
||||
ALOGD("bpf_create_map reusing map %s, ret: %d", mapNames[i].c_str(), fd.get());
|
||||
reuse = true;
|
||||
abort();
|
||||
} else {
|
||||
union bpf_attr req = {
|
||||
.map_type = type,
|
||||
|
|
|
|||
Loading…
Reference in a new issue