MCPcopy Create free account
hub / github.com/iovisor/bcc / pop

Method pop

src/python/bcc/table.py:1327–1332  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1325 raise Exception("Could not push to table: %s" % errstr)
1326
1327 def pop(self):
1328 leaf = self.Leaf()
1329 res = lib.bpf_lookup_and_delete(self.map_fd, None, ct.byref(leaf))
1330 if res < 0:
1331 raise KeyError("Could not pop from table")
1332 return leaf
1333
1334 def peek(self):
1335 leaf = self.Leaf()

Callers 15

itervaluesMethod · 0.95
print_eventFunction · 0.45
remove_nodeMethod · 0.45
_unblockFunction · 0.45
simple_cyclesFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45
test_brb2.pyFile · 0.45
test_trace3.pyFile · 0.45
test_xlate1.pyFile · 0.45
test_call1.pyFile · 0.45

Calls

no outgoing calls

Tested by 2

test_stackMethod · 0.36
test_queueMethod · 0.36