Searched refs:map_fd (Results 1 – 2 of 2) sorted by relevance
/kernel/tests/net/test/ |
D | bpf_test.py | 114 def PrintMapInfo(map_fd): argument 119 next_key = GetNextKey(map_fd, key).value 120 value = LookupMap(map_fd, next_key) 161 def BpfFuncCountPacketInit(map_fd): argument 168 BpfLoadMapFd(map_fd, BPF_REG_1), 174 BpfLoadMapFd(map_fd, BPF_REG_1), 226 self.map_fd = -1 233 if self.map_fd >= 0: 234 os.close(self.map_fd) 241 self.map_fd = CreateMap(BPF_MAP_TYPE_HASH, KEY_SIZE, VALUE_SIZE, [all …]
|
D | bpf.py | 216 def UpdateMap(map_fd, key, value, flags=0): argument 221 attr = BpfAttrOps((map_fd, key_ptr, value_ptr, flags)) 225 def LookupMap(map_fd, key): argument 229 (map_fd, ctypes.addressof(c_key), ctypes.addressof(c_value), 0)) 234 def GetNextKey(map_fd, key): argument 244 (map_fd, key_ptr, ctypes.addressof(c_next_key), 0)) 249 def GetFirstKey(map_fd): argument 250 return GetNextKey(map_fd, None) 253 def DeleteMap(map_fd, key): argument 255 attr = BpfAttrOps((map_fd, ctypes.addressof(c_key), 0, 0)) [all …]
|