Lines Matching refs:LookupMap
78 from bpf import LookupMap
120 value = LookupMap(map_fd, next_key)
244 self.assertEqual(value, LookupMap(self.map_fd, key).value)
246 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, key)
259 self.assertEqual(value, LookupMap(self.map_fd, key).value)
269 self.assertEqual(value, LookupMap(self.map_fd, key).value)
270 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, 101)
290 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, key)
298 self.assertRaisesErrno(errno.EPERM, LookupMap, self.map_fd, key)
332 self.assertEqual(packet_count * 2, LookupMap(self.map_fd, key).value)
436 self.assertEqual(packet_count, LookupMap(self.map_fd, cookie).value)
457 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, uid)
459 self.assertEqual(packet_count, LookupMap(self.map_fd, uid).value)
462 self.assertEqual(packet_count, LookupMap(self.map_fd, uid).value)
553 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, uid)
555 self.assertEqual(packet_count, LookupMap(self.map_fd, uid).value)
558 self.assertEqual(packet_count, LookupMap(self.map_fd, uid).value)